/* ==================== AUTHENTICATION STYLES ==================== */

.auth-modal {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    justify-content: center;
    align-items: center;
    backdrop-filter: blur(5px);
}

.auth-form {
    background: rgb(159, 153, 230);
    padding: 40px;
    border-radius: 20px;
    width: 400px;
    max-width: 90%;
    box-shadow: var(--shadow);
    animation: scaleIn 0.3s ease;
}

@keyframes scaleIn {
    from { transform: scale(0.9); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.auth-tabs {
    display: flex;
    margin-bottom: 30px;
    border-radius: 12px;
    overflow: hidden;
    background: rgb(224, 192, 255);
}

.auth-tab {
    flex: 1;
    padding: 15px;
    text-align: center;
    background: rgb(255, 194, 232);
    border: none;
    cursor: pointer;
    font-size: 16px;
    transition: all 0.3s ease;
}

.auth-tab.active {
    background: var(--primary-color);
    color: white;
}

.auth-content {
    display: none;
}

.auth-content.active {
    display: block;
}

/* 2FA Modal */
#twoFactorModal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 10000;
}

#twoFactorModal .modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 30px;
    border-radius: 8px;
    max-width: 400px;
    width: 90%;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
}

#twoFactorModal .auth-header {
    text-align: center;
    margin-bottom: 25px;
}

#twoFactorModal .auth-header h2 {
    margin: 0 0 8px 0;
    color: #333;
    font-size: 24px;
}

#twoFactorModal .modal-subtitle {
    color: #666;
    font-size: 14px;
    margin: 0;
}

.twofa-info {
    background: #f5f5f5;
    border-radius: 6px;
    padding: 15px;
    margin-bottom: 20px;
    border: 1px solid #ddd;
}

.twofa-info .info-box p {
    margin: 10px 0;
    display: flex;
    justify-content: space-between;
    font-size: 14px;
}

.twofa-info .info-box p strong {
    color: #555;
}

.twofa-info .timer {
    color: #e74c3c;
    font-weight: bold;
    font-family: monospace;
    font-size: 16px;
}

#twofaCode {
    width: 100%;
    padding: 15px;
    font-size: 24px;
    text-align: center;
    font-family: monospace;
    letter-spacing: 8px;
    border: 2px solid #ddd;
    border-radius: 6px;
    margin-bottom: 5px;
    box-sizing: border-box;
}

#twofaCode:focus {
    outline: none;
    border-color: #3498db;
}

.form-hint {
    text-align: center;
    color: #888;
    font-size: 13px;
    margin-top: 5px;
    margin-bottom: 20px;
}

#verify2FABtn, #cancel2FABtn {
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    cursor: pointer;
    margin-bottom: 10px;
}

#verify2FABtn {
    background: #3498db;
    color: white;
}

#verify2FABtn:hover {
    background: #2980b9;
}

#verify2FABtn:disabled {
    background: #95a5a6;
    cursor: not-allowed;
}

#cancel2FABtn {
    background: #ecf0f1;
    color: #333;
    border: 1px solid #bdc3c7;
}

#cancel2FABtn:hover {
    background: #bdc3c7;
}

#resend2FALink {
    display: block;
    text-align: center;
    color: #3498db;
    text-decoration: none;
    font-size: 14px;
    margin-top: 15px;
}

#resend2FALink:hover:not(.disabled) {
    text-decoration: underline;
}

#resend2FALink.disabled {
    color: #95a5a6;
    cursor: not-allowed;
}

@media (max-width: 480px) {
    #twoFactorModal .modal-content {
        padding: 20px;
    }
    
    #twoFactorModal .auth-header h2 {
        font-size: 20px;
    }
    
    #twofaCode {
        font-size: 20px;
        padding: 12px;
        letter-spacing: 6px;
    }
}

