﻿
/* ===== AUTH METHOD STEP ===== */
.mfa-heading {
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a2e;
    margin: 0 0 4px;
    letter-spacing: -0.5px;
    font-family: var(--DashboardBodyFont) !important;
}

.mfa-subtext {
    font-size: 0.875rem;
    color: #6b7280;
    margin: 0 0 24px;
    font-family: var(--DashboardBodyFont) !important;
}

.radioGroup {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 24px !important;
    font-family: var(--DashboardBodyFont) !important;
}

.radioCard {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 16px 18px;
    border: 1.5px solid #e5e7eb;
    border-radius: 14px;
    cursor: pointer;
    transition: all 0.2s ease;
    background: #fff;
    position: relative;
    overflow: hidden;
}

    .radioCard::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(135deg, rgba(99,102,241,0.04), rgba(139,92,246,0.04));
        opacity: 0;
        transition: opacity 0.2s;
    }

    .radioCard:hover {
        border-color: #a5b4fc;
        box-shadow: 0 2px 12px rgba(99,102,241,0.1);
    }

        .radioCard:hover::before {
            opacity: 1;
        }

    .radioCard.active {
        border-color: #2e77f2;
        background: linear-gradient(135deg, #eef2ff, #f5f3ff);
        box-shadow: 0 0 0 3px rgba(99,102,241,0.12), 0 2px 12px rgba(99,102,241,0.15);
    }

    .radioCard input[type="radio"] {
        display: none;
    }

.radio-indicator {
    width: 20px;
    height: 20px;
    border-radius: 50%;
    border: 2px solid #d1d5db;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.2s ease;
    background: #fff;
    font-family: var(--DashboardBodyFont) !important;
}

.radioCard.active .radio-indicator {
    border-color: #2e77f2;
}

.radio-indicator::after {
    content: '';
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #2e77f2;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.2s ease;
}

.radioCard.active .radio-indicator::after {
    opacity: 1;
    transform: scale(1);
}

.radio-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
    transition: all 0.2s ease;
    font-family: var(--DashboardBodyFont) !important;
}

    .radio-icon.email-icon {
        background: #4788F4;
        color: #fff;
    }

    .radio-icon.phone-icon {
        background: #d1fae5;
        color: #059669;
    }

.radioCard.active .radio-icon.phone-icon {
    background: #a7f3d0;
}

.radioContent {
    flex: 1;
    font-family: var(--DashboardBodyFont) !important;
}

.radioTitle {
    font-size: 0.9375rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
    font-family: var(--DashboardBodyFont) !important;
}

.radioSubtitle {
    font-size: 0.8125rem;
    color: #6b7280;
    letter-spacing: 0.3px;
    font-family: var(--DashboardBodyFont) !important;
}

.radioCard.active .radioTitle {
    color: #2e77f2;
}

.radioCard.active .radioSubtitle {
    color: #2e77f2;
}

.mfa-badge {
    font-size: 0.6875rem;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 20px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-family: var(--DashboardBodyFont) !important;
}

.badge-recommended {
    background: #ecfdf5;
    color: #065f46;
    border: 1px solid #a7f3d0;
}

/* ===== OTP STEP ===== */
.otp-channel-banner {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 20px;
    border: 1px solid;
    font-family: var(--DashboardBodyFont) !important;
}

    .otp-channel-banner.email-banner {
        background: linear-gradient(135deg, #eef2ff, #f5f3ff);
        border-color: #c7d2fe;
    }

    .otp-channel-banner.sms-banner {
        background: linear-gradient(135deg, #ecfdf5, #f0fdf4);
        border-color: #a7f3d0;
    }

.channel-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.email-banner .channel-icon {
    background: #4788F4;
    color: #fff;
}

.sms-banner .channel-icon {
    background: #bbf7d0;
    color: #059669;
}

.channel-info {
    flex: 1;
    font-family: var(--DashboardBodyFont) !important;
}

.channel-label {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1px;
    font-family: var(--DashboardBodyFont) !important;
}

.email-banner .channel-label {
    color: #2e77f2;
}

.sms-banner .channel-label {
    color: #059669;
}

.channel-value {
    font-size: 0.875rem;
    color: #374151;
    letter-spacing: 0.3px;
    font-family: var(--DashboardBodyFont) !important;
}

.change-method-link {
    font-size: 0.75rem;
    color: #2e77f2;
    cursor: pointer;
    font-weight: 600;
    white-space: nowrap;
    background: none;
    border: none;
    padding: 0;
    font-family: var(--DashboardBodyFont) !important;
}

    .change-method-link:hover {
        text-decoration: underline;
    }

/* Resend */
.resend-row {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 6px;
    float: left;
    width: 100%;
    font-family: var(--DashboardBodyFont) !important;
}

.resend-text {
    font-size: 0.8125rem;
    color: #9ca3af;
}

.resend-link {
    font-size: 0.8125rem;
    color: #2e77f2;
    cursor: pointer;
    font-weight: 600;
    background: none;
    border: none;
    padding: 0;
    font-family: var(--DashboardBodyFont) !important;
}

    .resend-link:hover {
        text-decoration: underline;
    }

.sms-note {
    font-size: 0.75rem;
    color: #F59E0B;
    margin-top: 8px;
    display: flex;
    align-items: center;
    gap: 4px;
    float: left;
    width: 100%;
    font-family: var(--DashboardBodyFont) !important;
    font-weight: 700;
}

/* ===== MODAL OVERLAY ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.45);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.modal-box {
    background: #fff;
    border-radius: 20px;
    padding: 28px 28px 24px;
    width: 100%;
    max-width: 420px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    position: relative;
    font-family: var(--DashboardBodyFont) !important;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: none;
    background: #f3f4f6;
    color: #6b7280;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
}

    .modal-close:hover {
        background: #e5e7eb;
    }

.modal-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: #111827;
    margin: 0 0 6px;
    font-family: var(--DashboardBodyFont) !important;
}

.modal-sub {
    font-size: 0.8125rem;
    color: #6b7280;
    margin: 0 0 20px;
    line-height: 1.5;
    font-family: var(--DashboardBodyFont) !important;
}

.modal-option {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    padding: 14px 16px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    margin-bottom: 10px;
    cursor: pointer;
    transition: all 0.15s ease;
    background: #fff;
    width: 100%;
    text-align: left;
}

    .modal-option:hover {
        border-color: #2e77f2;
        background: #eef2ff;
    }

.modal-option-icon {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 17px;
    flex-shrink: 0;
}

.icon-email {
    background: linear-gradient(135deg, #2E77F2, #59C7FA);
}

.icon-phone {
    background: #d1fae5;
}

.modal-option-content {
    flex: 1;
}

.modal-option-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 2px;
    font-family: var(--DashboardBodyFont) !important;
}

.modal-option-desc {
    font-size: 0.75rem;
    color: #6b7280;
    line-height: 1.4;
    font-family: var(--DashboardBodyFont) !important;
}

.modal-option-arrow {
    font-size: 14px;
    color: #9ca3af;
    align-self: center;
}

.phone-update-panel {
    margin-top: 4px;
}

    .phone-update-panel .InputRow {
        margin-bottom: 10px !important;
    }

.modal-back-btn {
    background: none;
    border: none;
    color: #6b7280;
    font-size: 0.8125rem;
    cursor: pointer;
    padding: 0;
    margin-bottom: 14px;
    display: flex;
    align-items: center;
    gap: 4px;
    font-family: var(--DashboardBodyFont) !important;
}

    .modal-back-btn:hover {
        color: #374151;
    }

.modal-verify-banner {
    padding: 10px 14px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 10px;
    font-size: 0.8rem;
    color: #065f46;
    margin-bottom: 14px;
    font-family: var(--DashboardBodyFont) !important;
}

.modal-error-banner {
    padding: 10px 14px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    font-size: 0.8rem;
    color: #991b1b;
    margin-bottom: 14px;
    font-family: var(--DashboardBodyFont) !important;
}

.modal-primary-btn {
    width: 100%;
    padding: 11px;
    background: linear-gradient(135deg, #2e77f2, #59C7FA);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    margin-top: 6px;
    font-family: var(--DashboardBodyFont) !important;
    transition: opacity 0.15s ease;
}

    .modal-primary-btn:hover {
        opacity: 0.9;
    }

    .modal-primary-btn:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.cant-access-link {
    font-size: 0.8125rem;
    color: #2e77f2;
    cursor: pointer;
    font-weight: 600;
    background: none;
    border: none;
    padding: 0;
    font-family: var(--DashboardBodyFont) !important;
}

    .cant-access-link:hover {
        text-decoration: underline;
    }

/* ===== SECURITY STEP ===== */
.security-step-banner {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    background: linear-gradient(135deg, #fffbeb, #fefce8);
    border: 1px solid #fde68a;
    border-radius: 10px;
    margin-bottom: 16px;
    font-family: var(--DashboardBodyFont) !important;
}

.security-step-icon {
    font-size: 18px;
    flex-shrink: 0;
    margin-top: 1px;
}

.security-step-text {
    font-size: 0.8rem;
    color: #78350f;
    line-height: 1.5;
    font-family: var(--DashboardBodyFont) !important;
}

    .security-step-text strong {
        color: #92400e;
        font-weight: 700;
    }

/* ===== STEP INDICATOR ===== */
.step-indicator {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 18px;
}

.step-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
    font-family: var(--DashboardBodyFont) !important;
}

    .step-dot.active {
        background: #2e77f2;
        color: #fff;
    }

    .step-dot.done {
        background: #d1fae5;
        color: #059669;
    }

    .step-dot.pending {
        background: #f3f4f6;
        color: #9ca3af;
    }

.step-line {
    flex: 1;
    height: 2px;
    background: #e5e7eb;
    border-radius: 1px;
}

    .step-line.done {
        background: #6ee7b7;
    }

/* ===== PHONE PREFERENCE STEP (NEW) ===== */
.pref-success-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 30px 14px !important;
}

.pref-numbers-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}

.pref-num-card {
    padding: 11px 14px;
    border: 1.5px solid #e5e7eb;
    border-radius: 12px;
    background: #f9fafb;
}

    .pref-num-card.highlight {
        border-color: #2e77f2;
        background: linear-gradient(135deg, #eef2ff, #f5f3ff);
    }

.pref-num-label {
    font-size: 10px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #9ca3af;
    margin-bottom: 4px;
    font-family: var(--DashboardBodyFont) !important;
}

.pref-num-card.highlight .pref-num-label {
    color: #2e77f2;
}

.pref-num-value {
    font-size: 13px;
    font-weight: 600;
    color: #111827;
    font-family: monospace;
}

.pref-num-card.highlight .pref-num-value {
    color: #2e77f2;
}

.pref-question {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 12px;
    font-family: var(--DashboardBodyFont) !important;
}

.pref-btn-yes {
    width: 100%;
    padding: 11px;
    background: linear-gradient(135deg, #2e77f2, #59C7FA);
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 0.875rem;
    cursor: pointer;
    margin-bottom: 8px;
    font-family: var(--DashboardBodyFont) !important;
    transition: opacity 0.15s ease;
}

    .pref-btn-yes:hover {
        opacity: 0.9;
    }

    .pref-btn-yes:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.pref-btn-no {
    width: 100%;
    padding: 11px;
    background: #fff;
    color: #374151;
    border: 1.5px solid #e5e7eb;
    border-radius: 10px;
    font-size: 0.875rem;
    cursor: pointer;
    font-family: var(--DashboardBodyFont) !important;
    transition: background 0.15s ease;
}

    .pref-btn-no:hover {
        background: #f9fafb;
    }

    .pref-btn-no:disabled {
        opacity: 0.6;
        cursor: not-allowed;
    }

.pref-info-note {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    margin-top: 12px;
}

.pref-info-note-icon {
    font-size: 13px;
    flex-shrink: 0;
    margin-top: 1px;
}

.pref-info-note-text {
    font-size: 0.75rem;
    color: #92400e;
    line-height: 1.5;
    font-family: var(--DashboardBodyFont) !important;
}

