@charset "UTF-8";
.auth-container {
    width: 100%;
    max-width: 500px;
    padding: 2rem;
}

.auth-card {
    background-color: white;
    border-radius: 1.5rem;
    padding: 2.5rem 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.auth-header h1 {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--dark-color);
    margin-bottom: 0.3rem;
}

.auth-header p {
    color: #999;
    font-size: 0.9rem;
}

.form-group {
    margin-bottom: 0.8rem;
}

.form-group label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--dark-color);
    font-size: 0.85rem;
}

.input-group {
    position: relative;
}

.input-group > i {
    position: absolute;
    left: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    font-size: 1.1rem;
    pointer-events: none;
    z-index: 1;
}

.input-group input {
    width: 100%;
    border: 1px solid #e0e0e0;
    border-radius: 0.6rem !important;
    padding: 0.65rem 1rem 0.65rem 3rem;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    background-color: #fafafa;
}

.input-group input[type="password"],
.input-group:has(.password-toggle) input {
    padding-right: 2.8rem;
}

.input-group input[disabled] {
    background-color: #ebebeb;
}

.input-group input:focus {
    outline: none;
    border-color: var(--primary-color);
    box-shadow: 0 0 0 3px rgba(255, 122, 61, 0.1);
}

.input-group input::placeholder {
    color: #ccc;
}

.password-toggle {
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-50%);
    color: #999;
    cursor: pointer;
    font-size: 1.1rem;
    background: none;
    border: none;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 24px;
    height: 24px;
    line-height: 1;
    z-index: 2;
}

.password-toggle:hover {
    color: var(--primary-color);
}

.password-toggle:focus {
    outline: none;
}

.password-toggle i {
    position: static;
    left: auto;
    top: auto;
    transform: none;
    font-size: 1.1rem;
    color: inherit;
    line-height: 1;
}

.submit-btn {
    width: 100%;
    background-color: var(--primary-color);
    color: white;
    border: none;
    border-radius: 0.5rem;
    padding: 0.85rem;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: all 0.3s ease;
    margin-top: 0.8rem;
}

.submit-btn:hover {
    background-color: #E56A2D;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 122, 61, 0.3);
}

.divider {
    display: flex;
    align-items: center;
    margin: 1.5rem 0;
}

.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background-color: #ddd;
}

.divider span {
    padding: 0 1rem;
    color: #999;
    font-size: 0.9rem;
}

.form-footer {
    text-align: center;
}

.form-footer p {
    color: #999;
    font-size: 0.9rem;
    margin-bottom: 0.6rem;
}

.form-footer a {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.form-footer a:hover {
    color: #E56A2D;
}

.terms-text {
    text-align: center;
    color: #999;
    font-size: 0.8rem;
    margin-top: 1.5rem;
    line-height: 1.5;
}

.terms-text a {
    color: var(--primary-color);
    text-decoration: none;
}

.terms-text a:hover {
    text-decoration: underline;
}

/* Desktop Layout */
@media (min-width: 1024px) {
    .auth-container {
        max-width: 500px;
        padding: 0;
        margin: 20px auto !important;
    }

    .auth-card {
        background-color: white;
        border-radius: 1.5rem;
        padding: 3rem 2rem;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
    }
}

/* Mobile Layout */
@media (max-width: 1023px) {
    .auth-container {
        max-width: 100%;
        padding: 1rem;
    }

    .auth-card {
        padding: 2rem 1.5rem;
    }

    .auth-header h1 {
        font-size: 1.8rem;
    }
}


/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
    animation: fadeIn 0.3s ease;
}

.modal.show {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes slideIn {
    from {
        transform: translateY(-50px);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

/* ===================================================
   2FA-STYLE EMAIL VERIFICATION MODAL
   =================================================== */
.twofa-modal-box {
    background: #ffffff;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.15);
    width: 90%;
    max-width: 440px;
    padding: 36px 28px 30px;
    text-align: center;
    border: 1px solid #f1f5f9;
    position: relative;
    animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.close-btn {
    position: absolute;
    top: 14px;
    right: 18px;
    color: #94a3b8;
    font-size: 28px;
    font-weight: 300;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
    line-height: 1;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
}

.close-btn:hover {
    color: #1e293b;
    background: #f1f5f9;
    transform: rotate(90deg);
}

.twofa-icon-badge {
    width: 68px;
    height: 68px;
    border-radius: 50%;
    background: linear-gradient(135deg, rgba(255, 122, 61, 0.12) 0%, rgba(238, 9, 121, 0.1) 100%);
    color: #ff7a3d;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    margin: 0 auto 18px;
}

.twofa-title {
    font-size: 22px;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 6px;
}

.twofa-subtitle {
    font-size: 14px;
    color: #64748b;
    margin-bottom: 22px;
    line-height: 1.5;
}

.email-highlight {
    color: #ff7a3d;
    font-weight: 600;
    word-break: break-all;
}

.otp-input-group {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 22px;
}

.otp-digit {
    width: 52px;
    height: 58px;
    text-align: center;
    font-size: 24px;
    font-weight: 700;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    background: #f8fafc;
    color: #1e293b;
    transition: all 0.2s ease;
}

.otp-digit:focus {
    border-color: #ff7a3d;
    background: #ffffff;
    outline: none;
    box-shadow: 0 0 0 4px rgba(255, 122, 61, 0.18);
}

.btn-verify-otp {
    width: 100%;
    padding: 13px;
    background: linear-gradient(135deg, #ff7a3d 0%, #ee0979 100%);
    color: #ffffff;
    font-weight: 700;
    font-size: 15px;
    border: none;
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(255, 122, 61, 0.25);
    display: flex;
    align-items: center;
    justify-content: center;
}

.btn-verify-otp:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(255, 122, 61, 0.35);
}

.btn-verify-otp:disabled {
    background: #cbd5e1;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.resend-section {
    margin-top: 20px;
    font-size: 13px;
    color: #64748b;
}

.btn-resend {
    background: none;
    border: none;
    color: #ff7a3d;
    font-weight: 600;
    cursor: pointer;
    padding: 0 4px;
    text-decoration: underline;
    font-size: 13px;
}

.btn-resend:disabled {
    color: #94a3b8;
    cursor: not-allowed;
    text-decoration: none;
}

/* Responsive */
@media (max-width: 600px) {
    .twofa-modal-box {
        padding: 28px 18px 24px;
    }
    .otp-digit {
        width: 44px;
        height: 50px;
        font-size: 20px;
    }
    .twofa-icon-badge {
        width: 58px;
        height: 58px;
        font-size: 24px;
    }
}