/* =============================================
   its-login.css — v2
   Layout due colonne: pannello art navy +
   form editoriale. Aesthetic: luxury serif.
   ============================================= */

/* ── Root: griglia due colonne ── */
.lp-root {
    min-height: 100vh;
    display: grid;
    grid-template-columns: 1fr 1fr;
    background: var(--its-bg);
}

/* ══════════════════════════════════════════════
   PANNELLO SINISTRO — navy editorial
══════════════════════════════════════════════ */

.lp-panel {
    background-color: var(--its-text);
    background-image:
        linear-gradient(180deg, rgba(20, 26, 46, .82) 0%, rgba(20, 26, 46, .50) 40%, rgba(20, 26, 46, .88) 100%),
        url('/img/login-bg.jpg');
    background-size: cover;
    background-position: center;
    color: var(--its-bg);
    padding: 48px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    position: relative;
    overflow: hidden;
}

/* Cerchi decorativi sottili in oro */
.lp-panel::before {
    content: "";
    position: absolute;
    width: 540px;
    height: 540px;
    border-radius: 50%;
    border: 1px solid rgba(200, 168, 120, .28);
    top: -180px;
    right: -180px;
    pointer-events: none;
}

.lp-panel::after {
    content: "";
    position: absolute;
    width: 760px;
    height: 760px;
    border-radius: 50%;
    border: 1px solid rgba(200, 168, 120, .18);
    bottom: -380px;
    left: -200px;
    pointer-events: none;
}

/* Top: logo + eyebrow stagionale */
.lp-panel__top {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 36px;
}

/* Logo brand */
.lp-panel__logo {
    display: flex;
    align-items: center;
    gap: 14px;
}

.lp-panel__logo-mark {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    border: 1px solid rgba(200, 168, 120, .5);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.lp-panel__logo-mark img {
    width: 36px;
    height: 36px;
    object-fit: contain;
    border-radius: 50%;
}

.lp-panel__logo-text {
    font-family: var(--its-serif);
    font-weight: 500;
    font-size: 16px;
    line-height: 1.15;
    color: var(--its-bg);
}

.lp-panel__logo-text small {
    display: block;
    font-family: var(--its-sans);
    font-size: 9.5px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--its-gold);
    margin-top: 3px;
}

/* Eyebrow stagionale */
.lp-art-eyebrow {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--its-gold);
}

/* Citazione editoriale */
.lp-panel__quote {
    position: relative;
    z-index: 1;
    font-family: var(--its-serif);
    font-size: 36px;
    line-height: 1.18;
    font-weight: 300;
    letter-spacing: -.01em;
    max-width: 14ch;
    margin: 0;
    color: var(--its-bg);
}

.lp-panel__quote em {
    font-style: italic;
    color: var(--its-gold);
    font-weight: 300;
}

/* Attribution sotto la citazione */
.lp-art-attr {
    display: block;
    margin-top: 22px;
    font-family: var(--its-sans);
    font-size: 11px;
    font-style: normal;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: rgba(250, 247, 242, .55);
}

/* Meta-list: 3 statistiche */
.lp-meta-list {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-top: 28px;
    border-top: 1px solid rgba(200, 168, 120, .20);
}

.lp-ml-v {
    font-family: var(--its-serif);
    font-size: 28px;
    line-height: 1;
    font-weight: 400;
    color: var(--its-bg);
}

.lp-ml-v sup {
    font-size: 14px;
    color: var(--its-gold);
    margin-left: 2px;
}

.lp-ml-l {
    font-size: 9.5px;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: rgba(250, 247, 242, .55);
    font-weight: 600;
    margin-top: 8px;
}

/* Footer del pannello art */
.lp-art-foot {
    position: relative;
    z-index: 1;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 28px;
    border-top: 1px solid rgba(200, 168, 120, .18);
    font-size: 10.5px;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(250, 247, 242, .55);
    font-weight: 600;
}

/* ══════════════════════════════════════════════
   PANNELLO DESTRO: form
══════════════════════════════════════════════ */

.lp-form-wrap {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    padding: 56px 64px;
    background: var(--its-bg);
}

/* Form centrato */
.lp-form {
    max-width: 420px;
    width: 100%;
    margin: 0 auto;
    padding: 0;
    animation: lpFadeUp .5s .1s ease both;
}

/* Eyebrow */
.lp-eyebrow {
    font-size: 10px;
    font-weight: 600;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--its-gold-deep);
    margin-bottom: 14px;
}

/* H2 */
.lp-form-h2 {
    font-family: var(--its-serif);
    font-weight: 400;
    font-size: 36px;
    line-height: 1.18;
    letter-spacing: -.01em;
    color: var(--its-text);
    margin: 0 0 8px;
}

.lp-form-h2 em {
    font-style: italic;
    color: var(--its-gold-deep);
    font-weight: 400;
}

/* Subtitle */
.lp-subt {
    font-size: 13px;
    color: var(--its-text-dim);
    margin: 0 0 32px;
    line-height: 1.5;
}

/* Field wrap */
.lp-field-wrap {
    margin-bottom: 16px;
}

/* Label uppercase sopra il campo */
.lp-field-label {
    display: block;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--its-text-muted);
    margin-bottom: 6px;
}

/* Errore */
.lp-error {
    display: flex;
    align-items: center;
    gap: 7px;
    background: rgba(181, 72, 72, .07);
    border: 1px solid rgba(181, 72, 72, .22);
    border-radius: var(--its-radius-sm);
    padding: 9px 13px;
    font-size: 13px;
    color: var(--its-danger);
    margin-bottom: 16px;
    animation: lpFadeUp .2s ease both;
}

/* Forgot row */
.lp-forgot-row {
    display: flex;
    justify-content: flex-end;
    margin: 12px 0 24px;
}

.lp-forgot {
    font-size: 12.5px;
    color: var(--its-text-dim);
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color .12s, color .12s;
}

.lp-forgot:hover {
    border-bottom-color: var(--its-gold);
    color: var(--its-text);
}

/* Pulsante accedi */
.lp-btn {
    border-radius: var(--its-radius-sm) !important;
    height: 44px !important;
    font-size: 13.5px !important;
    font-weight: 500 !important;
    letter-spacing: .01em !important;
    background: var(--its-text) !important;
    color: var(--its-bg) !important;
    border-color: var(--its-text) !important;
    box-shadow: none !important;
    transition: background .12s ease !important;
}

.lp-btn:not(:disabled):hover {
    background: #2a3251 !important;
}

/* ── Stato successo (PasswordReset / PasswordResetComplete) ── */
.lp-sent {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.lp-sent .lp-eyebrow { margin-bottom: 14px; }
.lp-sent .lp-subt    { margin-bottom: 28px; }

.lp-sent-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--its-gold-soft);
    border: 1px solid var(--its-gold);
    color: var(--its-gold-deep);
    display: grid;
    place-items: center;
    margin-bottom: 28px;
}

/* ── Stato disconnessione (Logout) ── */
.lp-logout {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.lp-logout .lp-eyebrow { margin-bottom: 14px; }

.lp-logout-spinner { margin-bottom: 32px; }

/* ══════════════════════════════════════════════
   ANIMAZIONE
══════════════════════════════════════════════ */

@keyframes lpFadeUp {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */

@media (max-width: 880px) {
    .lp-root {
        grid-template-columns: 1fr;
    }

    .lp-panel {
        padding: 32px;
        min-height: auto;
    }

    .lp-panel__quote {
        font-size: 26px;
    }

    .lp-meta-list {
        gap: 14px;
        padding-top: 18px;
    }

    .lp-ml-v {
        font-size: 22px;
    }

    .lp-art-foot {
        padding-top: 18px;
    }

    .lp-form-wrap {
        min-height: auto;
        padding: 32px 24px;
    }

    .lp-form {
        max-width: none;
    }
}

@media (max-width: 480px) {
    .lp-panel__quote {
        font-size: 22px;
        max-width: none;
    }

    .lp-form-h2 {
        font-size: 28px;
    }
}
