/**
 * NORMIFY - Auth Page Styles
 * Stili specifici per le pagine di autenticazione
 */

.auth-page {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--spacing-md);
}

.auth-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    width: 100%;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

/* ========================================
   LATO SINISTRO - INFORMAZIONI
   ======================================== */
.auth-left {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--secondary-color) 100%);
    padding: var(--spacing-xl);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}

.auth-left::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(circle, rgba(255,255,255,0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: moveGrid 20s linear infinite;
}

@keyframes moveGrid {
    0% {
        transform: translate(0, 0);
    }
    100% {
        transform: translate(30px, 30px);
    }
}

.auth-left-content {
    position: relative;
    z-index: 1;
}

.logo-container {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-lg);
}

.brand-name {
    font-size: 2rem;
    font-weight: 700;
    color: white;
    margin: 0;
}

.welcome-title {
    font-size: 1.75rem;
    font-weight: 700;
    color: white;
    margin-bottom: var(--spacing-sm);
    line-height: 1.3;
}

.welcome-subtitle {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: var(--spacing-xl);
}

.features-list {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.feature-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    color: white;
    font-size: 1rem;
}

.feature-item svg {
    width: 24px;
    height: 24px;
    flex-shrink: 0;
    color: rgba(255, 255, 255, 0.9);
}

/* ========================================
   LATO DESTRO - FORM
   ======================================== */
.auth-right {
    padding: var(--spacing-xl);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.auth-forms {
    width: 100%;
    max-width: 450px;
    margin: 0 auto;
}

.auth-form {
    display: none;
}

.auth-form.active {
    display: block;
    animation: fadeIn 0.4s ease-out;
}

.form-title {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--spacing-xs);
    color: var(--text-primary);
}

.form-subtitle {
    color: var(--text-secondary);
    margin-bottom: var(--spacing-lg);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-md);
}

.form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--spacing-md);
}

.forgot-password {
    font-size: 0.875rem;
    color: var(--primary-light);
}

.forgot-password:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.form-divider {
    text-align: center;
    margin: var(--spacing-lg) 0;
    position: relative;
}

.form-divider::before,
.form-divider::after {
    content: '';
    position: absolute;
    top: 50%;
    width: calc(50% - 40px);
    height: 1px;
    background: rgba(255, 255, 255, 0.1);
}

.form-divider::before {
    left: 0;
}

.form-divider::after {
    right: 0;
}

.form-divider span {
    background: var(--bg-card);
    padding: 0 var(--spacing-sm);
    color: var(--text-muted);
    font-size: 0.875rem;
}

.switch-form {
    text-align: center;
    color: var(--text-secondary);
    margin-top: var(--spacing-md);
}

.switch-form a {
    color: var(--primary-light);
    font-weight: 600;
}

.switch-form a:hover {
    color: var(--primary-color);
    text-decoration: underline;
}

.auth-footer {
    text-align: center;
    margin-top: var(--spacing-lg);
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.auth-footer p {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin: 0;
}

/* ========================================
   ALERT MESSAGGI
   ======================================== */
#alert-container {
    margin-bottom: var(--spacing-md);
}

#alert-container .alert {
    animation: slideIn 0.3s ease-out;
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 968px) {
    .auth-container {
        grid-template-columns: 1fr;
        max-width: 550px;
    }
    
    .auth-left {
        padding: var(--spacing-lg);
        min-height: 300px;
    }
    
    .welcome-title {
        font-size: 1.5rem;
    }
    
    .features-list {
        display: none;
    }
}

@media (max-width: 768px) {
    .auth-page {
        padding: var(--spacing-sm);
    }
    
    .auth-right {
        padding: var(--spacing-md);
    }
    
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 480px) {
    .logo-container {
        flex-direction: column;
        text-align: center;
    }
    
    .brand-name {
        font-size: 1.5rem;
    }
    
    .welcome-title {
        font-size: 1.25rem;
    }
    
    .welcome-subtitle {
        font-size: 1rem;
    }
    
    .form-options {
        flex-direction: column;
        gap: var(--spacing-sm);
        align-items: flex-start;
    }
}

/* ========================================
   ANIMAZIONI PASSWORD STRENGTH
   ======================================== */
.password-strength {
    height: 4px;
    border-radius: 2px;
    margin-top: var(--spacing-xs);
    background: rgba(255, 255, 255, 0.1);
    overflow: hidden;
}

.password-strength-bar {
    height: 100%;
    transition: var(--transition);
    border-radius: 2px;
}

.password-strength-bar.weak {
    width: 33%;
    background: var(--error);
}

.password-strength-bar.medium {
    width: 66%;
    background: var(--warning);
}

.password-strength-bar.strong {
    width: 100%;
    background: var(--success);
}

