/* ===== PAGINI AUTENTIFICARE ===== */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.auth-card {
    background: var(--white);
    border-radius: var(--border-radius-xl);
    box-shadow: var(--shadow-lg);
    width: 100%;
    max-width: 450px;
    overflow: hidden;
    animation: fadeIn 0.5s ease;
}

.auth-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: var(--white);
    padding: 40px 30px;
    text-align: center;
}

.auth-header h1 {
    font-size: 2rem;
    margin-bottom: 10px;
    font-weight: 600;
}

.auth-header p {
    opacity: 0.9;
    margin-bottom: 0;
}

.auth-body {
    padding: 40px 30px;
}

.auth-footer {
    background: var(--gray-100);
    padding: 20px 30px;
    text-align: center;
    border-top: 1px solid var(--gray-200);
}

.auth-footer a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 500;
}

.auth-footer a:hover {
    text-decoration: underline;
}

/* ===== LANGUAGE SELECTOR ===== */
.language-selector {
    position: absolute;
    top: 20px;
    right: 20px;
    display: flex;
    gap: 10px;
}

.lang-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 2px solid transparent;
    padding: 3px 5px;
    border-radius: 6px;
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition);
    text-decoration: none;
}

.lang-btn:hover,
.lang-btn.active {
    opacity: 1;
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.15);
}

/* ===== FORM SPECIFIC ===== */
.auth-body .form-group:last-child {
    margin-bottom: 0;
}

.auth-body .btn {
    width: 100%;
    margin-top: 20px;
}

.auth-body .forgot-password {
    text-align: right;
    margin-top: 10px;
}

.auth-body .forgot-password a {
    color: var(--gray-600);
    text-decoration: none;
    font-size: 0.9rem;
}

.auth-body .forgot-password a:hover {
    color: var(--primary);
    text-decoration: underline;
}

/* ===== REGISTER FORM ===== */
.register-form {
    max-width: 500px;
}

.password-strength {
    margin-top: 5px;
}

.strength-bar {
    height: 5px;
    border-radius: 5px;
    margin-top: 5px;
    transition: var(--transition);
}

.strength-weak { background: var(--danger); width: 33.33%; }
.strength-medium { background: var(--warning); width: 66.66%; }
.strength-strong { background: var(--success); width: 100%; }

.password-requirements {
    font-size: 0.875rem;
    color: var(--gray-600);
    margin-top: 5px;
}

.password-requirements ul {
    list-style: none;
    padding-left: 0;
    margin-top: 5px;
}

.password-requirements li {
    margin-bottom: 3px;
}

.password-requirements li.valid {
    color: var(--success);
}

.password-requirements li.invalid {
    color: var(--danger);
}

/* ===== PASSWORD VISIBILITY TOGGLE ===== */
.pwd-wrapper { position: relative; }
.pwd-toggle {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    cursor: pointer;
    color: #6c757d;
    padding: 0;
    font-size: 1rem;
    line-height: 1;
    -webkit-tap-highlight-color: transparent;
}
.pwd-toggle:hover { color: var(--primary, #667eea); }
.pwd-wrapper .form-control { padding-right: 40px; }

/* ===== 2FA ===== */
.two-factor {
    text-align: center;
}

.two-factor input {
    text-align: center;
    font-size: 2rem;
    letter-spacing: 10px;
    padding: 15px;
}

.two-factor .help-text {
    color: var(--gray-600);
    font-size: 0.9rem;
    margin-top: 10px;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 576px) {
    .auth-header {
        padding: 30px 20px;
    }
    
    .auth-header h1 {
        font-size: 1.5rem;
    }
    
    .auth-body {
        padding: 30px 20px;
    }
    
    .language-selector {
        top: 10px;
        right: 10px;
    }
    
    .lang-btn {
        padding: 2px 4px;
    }
}
/* ===== GOOGLE BUTTON ===== */
.btn-google {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    background: #fff;
    border: 2px solid #dadce0;
    border-radius: 8px;
    color: #3c4043;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    margin-bottom: 5px;
}
.btn-google:hover {
    background: #f8f9fa;
    border-color: #aaa;
    color: #333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}
.btn-google svg {
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* ===== FACEBOOK BUTTON ===== */
.btn-facebook {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 12px 20px;
    background: #1877F2;
    border: 2px solid #1877F2;
    border-radius: 8px;
    color: #fff;
    font-size: 0.95rem;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    margin-bottom: 5px;
}
.btn-facebook:hover {
    background: #166fe5;
    border-color: #166fe5;
    color: #fff;
    box-shadow: 0 2px 8px rgba(24,119,242,0.3);
}

.auth-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 20px 0;
    color: #aaa;
    font-size: 0.85rem;
}
.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: #e0e0e0;
}

/* ===== GDPR BANNER ===== */
#gdpr-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a2e;
    color: #e0e0e0;
    z-index: 9999;
    padding: 16px 20px;
    box-shadow: 0 -4px 20px rgba(0,0,0,0.3);
    transition: opacity 0.3s;
}
.gdpr-content {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    gap: 24px;
    flex-wrap: wrap;
}
.gdpr-text {
    flex: 1;
    min-width: 220px;
}
.gdpr-text strong {
    display: block;
    margin-bottom: 4px;
    color: #fff;
    font-size: 1rem;
}
.gdpr-text p {
    margin: 0;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #bbb;
}
.gdpr-text a {
    color: #7eb3ff;
    text-decoration: underline;
}
.gdpr-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.gdpr-btn-link {
    color: #aaa;
    text-decoration: underline;
    font-size: 0.85rem;
    white-space: nowrap;
}
.gdpr-btn-accept {
    background: linear-gradient(135deg, #4CAF50, #2e7d32);
    color: #fff;
    border: none;
    padding: 10px 24px;
    border-radius: 6px;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: opacity 0.2s;
}
.gdpr-btn-accept:hover {
    opacity: 0.9;
}
