/* 2Factor OTP Verify Modal */
.tfov-otp-modal {
    position: fixed;
    inset: 0;
    z-index: 999999;
    display: none;
    align-items: center;
    justify-content: center;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.tfov-otp-modal.is-open {
    display: flex;
    animation: tfov-otp-fade-in 0.2s ease-out;
}

.tfov-otp-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(24, 35, 57, 0.6);
    backdrop-filter: blur(4px);
}

.tfov-otp-dialog {
    position: relative;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.25);
    width: 90%;
    max-width: 420px;
    padding: 32px 28px;
    animation: tfov-otp-slide-up 0.25s ease-out;
}

.tfov-otp-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 24px;
    line-height: 1;
    color: #818181;
    cursor: pointer;
    transition: background 0.15s;
}

.tfov-otp-close:hover {
    background: #f5f5f5;
    color: #111111;
}

.tfov-otp-title {
    margin: 0 0 8px;
    font-size: 20px;
    font-weight: 600;
    color: #111111;
    line-height: 1.3;
}

.tfov-otp-desc {
    margin: 0 0 20px;
    font-size: 14px;
    color: #818181;
    line-height: 1.5;
}

.tfov-otp-desc strong {
    color: #111111;
    font-weight: 600;
}

.tfov-otp-input-group {
    margin-bottom: 12px;
}

.tfov-otp-input {
    width: 100%;
    padding: 14px 16px;
    font-size: 22px;
    letter-spacing: 8px;
    text-align: center;
    border: 2px solid #e5e5e5;
    border-radius: 8px;
    outline: none;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
    font-variant-numeric: tabular-nums;
    color: #111111;
    background: #fff;
}

.tfov-otp-input:focus {
    border-color: #c39d00;
    box-shadow: 0 0 0 3px rgba(195, 157, 0, 0.2);
}

.tfov-otp-input:disabled {
    background: #f5f5f5;
    cursor: not-allowed;
}

.tfov-otp-message {
    min-height: 20px;
    margin-bottom: 16px;
    font-size: 13px;
    line-height: 1.4;
    color: #818181;
}

.tfov-otp-message.is-error {
    color: #dc2626;
}

.tfov-otp-message.is-success {
    color: #16a34a;
}

.tfov-otp-actions {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.tfov-otp-btn {
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 600;
    border-radius: 8px;
    border: 0;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

.tfov-otp-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.tfov-otp-btn-primary {
    background: #182339;
    color: #fff;
}

.tfov-otp-btn-primary:hover:not(:disabled) {
    background: #0e1727;
}

.tfov-otp-btn-link {
    background: transparent;
    color: #182339;
    text-decoration: underline;
    padding: 8px;
}

.tfov-otp-btn-link:hover:not(:disabled) {
    color: #0e1727;
}

@keyframes tfov-otp-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes tfov-otp-slide-up {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

@media (max-width: 480px) {
    .tfov-otp-dialog {
        padding: 24px 20px;
        max-width: calc(100% - 32px);
    }
    .tfov-otp-input {
        font-size: 20px;
        letter-spacing: 6px;
    }
}
