/* ============================================================
   RatioChart - Stili Pagine Autenticazione
   ============================================================ */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    padding: 20px;
    position: relative;
    overflow: hidden;
}

/* Decorazioni sfondo */
.auth-page::before,
.auth-page::after {
    content: '';
    position: absolute;
    border-radius: 50%;
    opacity: 0.1;
}
.auth-page::before {
    width: 600px;
    height: 600px;
    background: #fff;
    top: -200px;
    right: -100px;
}
.auth-page::after {
    width: 400px;
    height: 400px;
    background: #fff;
    bottom: -150px;
    left: -100px;
}

.auth-container {
    width: 100%;
    max-width: 420px;
    position: relative;
    z-index: 1;
}

/* Logo */
.auth-logo {
    text-align: center;
    margin-bottom: 32px;
}

.auth-logo-icon {
    width: 56px;
    height: 56px;
    background: rgba(255,255,255,0.2);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    backdrop-filter: blur(10px);
}

.auth-logo-icon svg {
    width: 30px;
    height: 30px;
    color: #fff;
}

.auth-logo h1 {
    font-size: 1.75rem;
    font-weight: 700;
    color: #fff;
    letter-spacing: -0.5px;
}

.auth-logo p {
    color: rgba(255,255,255,0.8);
    font-size: 0.9375rem;
    margin-top: 4px;
}

/* Card */
.auth-card {
    background: var(--bg);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: 36px;
    animation: authCardIn 0.5s ease;
}

@keyframes authCardIn {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.auth-card h2 {
    font-size: 1.375rem;
    font-weight: 600;
    text-align: center;
    margin-bottom: 28px;
    color: var(--text);
}

/* Form speciali auth */
.auth-card .form-group {
    margin-bottom: 18px;
}

.auth-card .form-input {
    padding: 12px 14px;
    font-size: 0.9375rem;
    border-radius: var(--radius-md);
}

.auth-card .form-label {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.auth-submit {
    width: 100%;
    padding: 13px;
    font-size: 1rem;
    font-weight: 600;
    margin-top: 6px;
    border-radius: var(--radius-md);
}

.auth-divider {
    text-align: center;
    position: relative;
    margin: 24px 0;
    color: var(--text-muted);
    font-size: 0.8125rem;
}

.auth-divider::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    background: var(--border);
}

.auth-divider span {
    background: var(--bg);
    padding: 0 14px;
    position: relative;
}

.auth-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 0.9375rem;
    color: var(--text-secondary);
}

.auth-footer a {
    font-weight: 600;
}

/* Messaggio di errore globale */
.auth-alert {
    padding: 12px 16px;
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    margin-bottom: 20px;
    display: none;
    align-items: center;
    gap: 10px;
    animation: fadeIn 0.3s ease;
}

.auth-alert.active {
    display: flex;
}

.auth-alert.error {
    background: rgba(214, 48, 49, 0.08);
    color: var(--danger);
    border: 1px solid rgba(214, 48, 49, 0.2);
}

.auth-alert.success {
    background: rgba(0, 184, 148, 0.08);
    color: var(--accent);
    border: 1px solid rgba(0, 184, 148, 0.2);
}

/* Password strength */
.password-strength {
    display: flex;
    gap: 4px;
    margin-top: 8px;
}

.password-strength-bar {
    flex: 1;
    height: 3px;
    border-radius: 2px;
    background: var(--border);
    transition: background var(--transition);
}

.password-strength-bar.active.weak { background: var(--danger); }
.password-strength-bar.active.medium { background: var(--warning); }
.password-strength-bar.active.strong { background: var(--accent); }

/* Responsive */
@media (max-width: 480px) {
    .auth-card {
        padding: 28px 22px;
    }
    .auth-logo h1 {
        font-size: 1.5rem;
    }
}
