/* ==========================================
   Login - Layout
   ========================================== */

.login-wrapper {
    display: flex;
    min-height: 100vh;
}

/* Pannello sinistro */
.login-pannello-sx {
    width: 380px;
    flex-shrink: 0;
    background: linear-gradient(180deg, var(--color-sidebar) 0%, #5a9fd4 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
}

.login-brand {
    display: flex;
    align-items: center;
    justify-content: center;
}

.login-logo {
    max-width: 180px;
    height: auto;
}

.login-nome-app {
    color: #fff;
    font-size: 28px;
    font-weight: 600;
    letter-spacing: -0.5px;
}

.login-tagline {
    color: rgba(255, 255, 255, 0.65);
    font-size: 13px;
    margin-top: 12px;
    text-align: center;
}

/* Pannello destro */
.login-pannello-dx {
    flex: 1;
    background: var(--color-bg);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 32px;
}

.login-form-box {
    width: 100%;
    max-width: 380px;
    background: #fff;
    border-radius: 10px;
    padding: 40px 36px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.login-titolo {
    font-size: 20px;
    font-weight: 600;
    color: #1a1a2e;
    margin-bottom: 4px;
}

.login-sottotitolo {
    font-size: 13px;
    color: #6b7280;
    margin-bottom: 28px;
}

.login-campi {
    display: flex;
    flex-direction: column;
}

.login-link-riga {
    margin-top: 8px;
    margin-bottom: 20px;
    text-align: right;
}

.login-btn {
    margin-top: 4px;
}

/* ==========================================
   Icone input
   ========================================== */

.icona-input {
    filter: brightness(0) opacity(0.3);
}

/* ==========================================
   Notifica errore
   ========================================== */

.notification.is-error {
    display: none;
    margin-bottom: 16px;
    background: var(--color-delete-bg);
    color: var(--color-delete-text);
    border: 1px solid var(--color-delete-border);
    border-radius: 6px;
    padding: 10px 14px;
    font-size: 13px;
}

/* ==========================================
   Link reset password
   ========================================== */

.resetpsw {
    color: var(--color-primary);
    text-decoration: none;
    font-size: 13px;
}

.resetpsw:hover {
    text-decoration: underline;
}

/* ==========================================
   Spinner bottone
   ========================================== */

.spinner {
    display: none;
    width: 13px;
    height: 13px;
    border: 2px solid rgba(255, 255, 255, 0.4);
    border-top-color: #fff;
    border-radius: 50%;
    animation: spin 0.6s linear infinite;
    margin-right: 6px;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.button.is-loading .spinner {
    display: inline-block;
}

/* ==========================================
   Responsive
   ========================================== */

@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
    }

    .login-pannello-sx {
        width: 100%;
        padding: 32px 24px;
        min-height: unset;
    }

    .login-pannello-dx {
        padding: 32px 20px;
    }

    .login-form-box {
        padding: 28px 24px;
    }
}
