/* ════════════════════════════════════════
   LOGIN PAGE — layout a due pannelli
   ════════════════════════════════════════ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
    height: 100%;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Helvetica Neue", Arial, sans-serif;
}

body.login-page {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100vh;
    background: #f5faf9;
}

/* ═══════ PANNELLO SINISTRO ═══════ */
.panel-left {
    background-color: #0d3b35;
    display: flex;
    flex-direction: column;
    position: relative;
    overflow: hidden;
}

/* Griglia decorativa sottile */
.panel-left-grid {
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(46,196,182,0.06) 1px, transparent 1px),
        linear-gradient(90deg, rgba(46,196,182,0.06) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
}

/* Glow principale centrato */
.panel-left-glow {
    position: absolute;
    width: 560px;
    height: 560px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46,196,182,0.18) 0%, transparent 65%);
    top: 45%;
    left: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
}

/* Glow secondario in basso a sinistra */
.panel-left-glow::after {
    content: '';
    position: absolute;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(46,196,182,0.1) 0%, transparent 70%);
    bottom: -200px;
    left: -100px;
}

.left-inner {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
    padding: 40px 48px;
}

/* ─── Brand Kamaleonty in alto ─── */
.left-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.left-brand-logo {
    height: 16px !important;
    width: auto !important;
    max-width: 110px !important;
    opacity: 0.75;
    display: block;
}

.left-brand-sep {
    width: 1px;
    height: 11px;
    background: rgba(255,255,255,0.18);
    flex-shrink: 0;
}

.left-brand-label {
    font-size: 0.68rem;
    font-weight: 600;
    color: rgba(255,255,255,0.28);
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

/* ─── Centro: logo + testi ─── */
.left-center {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 0;
}

/* Logo prodotto SVG (AnswerAI) */
.product-logo-img {
    height: auto !important;
    width: 280px !important;
    max-width: 320px !important;
    display: block;
    margin-bottom: 28px;
}

/* Logo prodotto PNG quadrato (AnswerAI neg) */
.product-logo-img-sq {
    width: 360px !important;
    height: auto !important;
    max-height: 90px !important;
    object-fit: contain;
    object-position: left center;
    display: block;
    margin-bottom: 28px;
}

/* Tagline principale — grande, bold, alta visibilità */
.left-tagline {
    font-size: 1.45rem;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.35;
    max-width: 320px;
    letter-spacing: -0.015em;
    margin-bottom: 16px;
}

/* Accento teal sotto tagline */
.left-divider {
    width: 36px;
    height: 3px;
    background: #2ec4b6;
    border-radius: 2px;
    margin-bottom: 16px;
}

/* Descrizione — leggibile, non smorta */
.left-desc {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.65);
    line-height: 1.75;
    max-width: 310px;
    margin-bottom: 28px;
    font-weight: 400;
}

/* Pillole feature */
.left-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.left-pill {
    background: rgba(46,196,182,0.1);
    border: 1px solid rgba(46,196,182,0.25);
    border-radius: 999px;
    padding: 6px 14px;
    font-size: 0.77rem;
    font-weight: 500;
    color: rgba(255,255,255,0.75);
    display: flex;
    align-items: center;
    gap: 7px;
    transition: background 0.2s, border-color 0.2s;
}

.left-pill::before {
    content: '';
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: #2ec4b6;
    flex-shrink: 0;
}

/* ─── Footer copyright ─── */
.left-footer {
    font-size: 0.68rem;
    color: rgba(255,255,255,0.2);
    letter-spacing: 0.01em;
}

/* ═══════ PANNELLO DESTRO ═══════ */
.panel-right {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
    background: #f5faf9;
    position: relative;
}

.panel-right::before {
    content: '';
    position: absolute;
    left: 0;
    top: 12%;
    bottom: 12%;
    width: 1px;
    background: linear-gradient(to bottom,
        transparent,
        #d1e8e5 25%,
        #d1e8e5 75%,
        transparent);
}

.form-card {
    width: 100%;
    max-width: 340px;
}

/* Eyebrow prodotto */
.form-eyebrow {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 14px;
}

.eyebrow-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #2ec4b6;
    flex-shrink: 0;
}

.eyebrow-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.09em;
    text-transform: uppercase;
    color: #2ec4b6;
}

/* Titolo */
.form-title {
    font-size: 1.7rem;
    font-weight: 700;
    color: #0a2e29;
    letter-spacing: -0.025em;
    line-height: 1.2;
    margin-bottom: 6px;
}

.form-sub {
    font-size: 0.86rem;
    color: #5a7a75;
    line-height: 1.5;
    margin-bottom: 28px;
}

/* Campi form */
.login-field {
    margin-bottom: 15px;
}

.login-field label {
    display: block;
    font-size: 0.78rem;
    font-weight: 600;
    color: #0a2e29;
    margin-bottom: 7px;
    letter-spacing: 0.01em;
}

.login-field input {
    width: 100%;
    padding: 13px 16px;
    background: #ffffff;
    border: 1.5px solid #d1e8e5;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.93rem;
    color: #0a2e29;
    outline: none;
    transition: border-color 0.18s, box-shadow 0.18s;
}

.login-field input::placeholder {
    color: #a0bcb8;
}

.login-field input:focus {
    border-color: #2ec4b6;
    box-shadow: 0 0 0 4px rgba(46,196,182,0.12);
}

/* Bottone */
.btn-login-submit {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding: 14px 20px;
    background: #0d3b35;
    color: #ffffff;
    border: none;
    border-radius: 12px;
    font-family: inherit;
    font-size: 0.93rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s, box-shadow 0.2s;
    letter-spacing: 0.01em;
    box-shadow: 0 4px 14px rgba(13,59,53,0.2);
    text-align: center;
}

.btn-login-submit:hover {
    background: #155147;
    box-shadow: 0 6px 18px rgba(13,59,53,0.28);
}

.btn-login-submit:active {
    transform: translateY(1px);
}

/* Link footer */
.form-links {
    display: flex;
    justify-content: space-between;
    margin-top: 18px;
}

.form-links a {
    font-size: 0.8rem;
    color: #5a7a75;
    text-decoration: none;
    transition: color 0.18s;
}

.form-links a:hover {
    color: #0d3b35;
}

/* Errore */
.login-error {
    display: flex;
    align-items: center;
    gap: 9px;
    background: #fef2f2;
    border: 1px solid #fecaca;
    border-radius: 10px;
    padding: 11px 14px;
    font-size: 0.84rem;
    color: #b91c1c;
    margin-bottom: 16px;
}

/* ═══════ RESPONSIVE ═══════ */
@media (max-width: 820px) {
    body.login-page {
        grid-template-columns: 1fr;
    }
    .panel-left {
        display: none;
    }
    .panel-right::before {
        display: none;
    }
    .panel-right {
        padding: 40px 24px;
    }
}
