/* Login — layout split full-screen (mock "New layout"). I token stanno in site.css. */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { cursor: pointer; font-family: inherit; border: none; background: none; }

/* ============ LAYOUT (SPLIT) ============ */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; }

/* ===== LEFT PANEL (BRAND) ===== */
.brand-panel {
    background: linear-gradient(135deg, var(--navy-900) 0%, var(--navy-800) 50%, var(--navy-700) 100%);
    color: var(--white); position: relative; overflow: hidden; padding: 3rem 4rem;
    display: flex; flex-direction: column; justify-content: space-between;
}
.brand-panel::before {
    content: ''; position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 80% 25%, rgba(245,183,0,.18) 0%, transparent 55%),
        radial-gradient(circle at 15% 80%, rgba(46,106,168,.3) 0%, transparent 55%);
    pointer-events: none;
}
.brand-panel::after {
    content: ''; position: absolute; inset: 0;
    background-image: linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
    background-size: 60px 60px;
    mask-image: radial-gradient(circle at center, black 0%, transparent 75%);
    -webkit-mask-image: radial-gradient(circle at center, black 0%, transparent 75%);
}
.brand-panel > * { position: relative; z-index: 1; }

.brand-top { display: flex; align-items: center; gap: 1rem; }
.brand-logo img { height: 64px; width: auto; }

.brand-mid { padding: 2rem 0; }
.brand-eyebrow {
    display: inline-flex; align-items: center; gap: .6rem;
    font-family: 'Outfit'; font-size: .78rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase;
    color: var(--yellow-400); margin-bottom: 1.5rem;
}
.brand-eyebrow::before { content: ''; width: 32px; height: 2px; background: var(--yellow-400); }
.brand-mid h1 {
    font-size: clamp(2rem, 3.4vw, 3rem); color: var(--white);
    margin-bottom: 1.25rem; line-height: 1.1;
}
.brand-mid h1 .accent { color: var(--yellow-400); }
.brand-mid p { color: rgba(255,255,255,.82); font-size: 1.05rem; line-height: 1.7; max-width: 520px; }

.brand-features { display: flex; flex-direction: column; gap: 1rem; margin-top: 2rem; }
.brand-feature {
    display: flex; align-items: flex-start; gap: .85rem;
    padding: .9rem 1.1rem; background: rgba(255,255,255,.04);
    border: 1px solid rgba(255,255,255,.08); border-radius: 10px;
    backdrop-filter: blur(6px);
}
.brand-feature .icon {
    width: 32px; height: 32px; flex-shrink: 0;
    background: rgba(245,183,0,.15); color: var(--yellow-400);
    border-radius: 8px; display: flex; align-items: center; justify-content: center;
    font-family: 'Outfit'; font-weight: 700; font-size: .78rem; letter-spacing: .04em;
}
.brand-feature .txt { font-size: .92rem; color: rgba(255,255,255,.88); line-height: 1.5; }
.brand-feature .txt strong { color: var(--white); font-weight: 600; }

.brand-bottom { display: flex; justify-content: space-between; align-items: center; font-size: .82rem; color: rgba(255,255,255,.5); flex-wrap: wrap; gap: .75rem; }
.brand-bottom a { color: rgba(255,255,255,.7); transition: color .2s; }
.brand-bottom a:hover { color: var(--yellow-400); }

/* ===== RIGHT PANEL (FORM) ===== */
.form-panel {
    display: flex; align-items: center; justify-content: center;
    padding: 3rem 2rem; background: var(--white);
}
.form-card { width: 100%; max-width: 440px; }

.form-header { margin-bottom: 2.5rem; }
.form-eyebrow {
    display: inline-flex; align-items: center; gap: .6rem;
    font-family: 'Outfit'; font-size: .74rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase;
    color: var(--yellow-600); margin-bottom: .85rem;
}
.form-eyebrow::before { content: ''; width: 24px; height: 2px; background: var(--yellow-500); }
.form-card h2 { font-size: 2rem; letter-spacing: -.025em; margin-bottom: .5rem; }
.form-card h2 .accent { color: var(--yellow-500); }
.form-card .sub { color: var(--text-soft); font-size: .95rem; line-height: 1.6; }

/* messaggi (no Bootstrap su questa pagina) */
.form-card .alert { padding: .85rem 1rem; border-radius: 10px; font-size: .9rem; line-height: 1.5; margin-bottom: 1.25rem; border: 1px solid; }
.form-card .alert-danger { background: rgba(214,69,69,.08); border-color: rgba(214,69,69,.35); color: #A32F2F; }
.form-card .alert-warning { background: rgba(245,183,0,.1); border-color: rgba(217,152,0,.4); color: var(--yellow-600); }

.form-field { margin-bottom: 1.25rem; }
.form-field label {
    display: block; font-size: .82rem; font-weight: 600; color: var(--navy-800);
    margin-bottom: .45rem; letter-spacing: .005em;
}
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap .input-icon {
    position: absolute; left: 1rem; color: var(--text-muted);
    display: flex; align-items: center; pointer-events: none;
}
.form-field input {
    width: 100%; padding: .92rem 1rem .92rem 2.85rem;
    border: 1.5px solid var(--border); border-radius: 10px;
    font-family: inherit; font-size: .96rem; color: var(--navy-800); background: var(--white);
    transition: border-color .15s, box-shadow .15s, background .15s;
}
.form-field input::placeholder { color: var(--text-muted); }
.form-field input:hover { border-color: var(--grey-200); }
.form-field input:focus {
    outline: none; border-color: var(--yellow-500);
    box-shadow: 0 0 0 4px rgba(245,183,0,.15); background: #FFFCF2;
}
.form-field.has-toggle input { padding-right: 3rem; }
.input-toggle {
    position: absolute; right: .65rem;
    width: 34px; height: 34px; display: flex; align-items: center; justify-content: center;
    color: var(--text-muted); border-radius: 6px; transition: all .15s;
}
.input-toggle:hover { color: var(--navy-800); background: var(--navy-050); }

.form-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.5rem; flex-wrap: wrap; gap: .75rem; }
.remember { display: inline-flex; align-items: center; gap: .55rem; cursor: pointer; user-select: none; }
.remember input { position: absolute; opacity: 0; pointer-events: none; }
.remember .checkbox {
    width: 18px; height: 18px; border: 1.5px solid var(--border); border-radius: 4px;
    display: flex; align-items: center; justify-content: center; transition: all .15s;
    background: var(--white);
}
.remember:hover .checkbox { border-color: var(--yellow-500); }
.remember input:checked ~ .checkbox { background: var(--yellow-500); border-color: var(--yellow-500); }
.remember input:checked ~ .checkbox::after { content: '✓'; color: var(--navy-800); font-size: .82rem; font-weight: 700; line-height: 1; }
.remember .lbl { font-size: .86rem; color: var(--text-soft); }
.forgot-link { font-size: .86rem; color: var(--navy-700); font-weight: 500; transition: color .2s; }
.forgot-link:hover { color: var(--yellow-600); }

.btn-submit {
    width: 100%; display: flex; align-items: center; justify-content: center; gap: .55rem;
    padding: 1rem 1.25rem; font-size: .96rem; font-weight: 600;
    background: var(--yellow-500); color: var(--navy-900);
    border-radius: 10px; transition: all .2s;
}
.btn-submit:hover { background: var(--yellow-400); transform: translateY(-1px); box-shadow: 0 8px 20px rgba(245,183,0,.4); }
.btn-submit .arrow { transition: transform .2s; }
.btn-submit:hover .arrow { transform: translateX(4px); }

.divider {
    display: flex; align-items: center; gap: 1rem; margin: 1.75rem 0 1.25rem;
    font-size: .78rem; color: var(--text-muted); letter-spacing: .04em;
}
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--border); }

.signup-cta { text-align: center; font-size: .9rem; color: var(--text-soft); }
.signup-cta a { color: var(--navy-800); font-weight: 600; transition: color .2s; }
.signup-cta a:hover { color: var(--yellow-600); }

.mobile-logo { display: none; text-align: center; margin-bottom: 2rem; }
.mobile-logo img { height: 44px; width: auto; margin: 0 auto; }

/* ===== RESPONSIVE ===== */
@media (max-width: 960px) {
    .auth { grid-template-columns: 1fr; min-height: auto; }
    .brand-panel { padding: 2rem 1.5rem; min-height: auto; }
    .brand-mid { padding: 1.25rem 0; }
    .brand-mid h1 { font-size: 1.6rem; }
    .brand-mid p { font-size: .95rem; }
    .brand-features { display: none; }
    .brand-bottom { display: none; }
    .form-panel { padding: 2rem 1.5rem 3rem; }
    .mobile-logo { display: block; }
    .brand-top { display: none; }
}
@media (max-width: 480px) {
    .form-card h2 { font-size: 1.65rem; }
    .form-panel { padding: 1.5rem 1rem 2.5rem; }
}
