/* =====================================================================
   GENZLO - authentication pages (login, register, password reset)
   Split-screen auth shell built on base.css tokens.
   ===================================================================== */

.auth-wrap {
    display: grid;
    grid-template-columns: 1.05fr 1fr;
    max-width: 1000px;
    margin: 8px auto 24px;
    background: var(--c-surface);
    border: 1px solid var(--c-border);
    border-radius: var(--r-xl);
    overflow: hidden;
    box-shadow: var(--sh-md);
    min-height: 580px;
}

/* ---------- marketing panel ---------- */
.auth-panel {
    position: relative;
    overflow: hidden;
    background: radial-gradient(120% 120% at 0% 0%, #3a3540 0%, #2a272c 55%, #1c1a1e 100%);
    color: #fff;
    padding: 40px 38px;
    display: flex;
    flex-direction: column;
    gap: 22px;
}
.auth-panel::after {
    content: "";
    position: absolute;
    right: -90px;
    bottom: -110px;
    width: 280px;
    height: 280px;
    border-radius: 50%;
    background: var(--c-brand-grad);
    opacity: .16;
    filter: blur(6px);
}
.auth-panel .brand { color: #fff; }
.auth-panel-copy h2 {
    color: #fff;
    font-size: 1.55rem;
    letter-spacing: -.02em;
    margin-bottom: 8px;
}
.auth-panel-copy .lead {
    color: #c3ccdb;
    font-size: .9rem;
    margin: 0;
    max-width: 34ch;
}
.auth-features {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 13px;
}
.auth-features li {
    display: flex;
    align-items: flex-start;
    gap: 11px;
    font-size: .85rem;
    color: #dbe3ee;
}
.auth-features li svg {
    width: 18px;
    height: 18px;
    flex: none;
    color: var(--c-brand);
    margin-top: 1px;
}
.auth-stats {
    margin-top: auto;
    display: flex;
    gap: 26px;
    padding-top: 20px;
    border-top: 1px solid rgba(255, 255, 255, .12);
}
.auth-stats strong {
    display: block;
    font-size: 1.3rem;
    letter-spacing: -.02em;
}
.auth-stats span {
    font-size: .7rem;
    color: #93a1b8;
    text-transform: uppercase;
    letter-spacing: .06em;
}

/* ---------- form side ---------- */
.auth-form-side {
    padding: 38px 34px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--c-surface);
}
.auth-card { width: 100%; max-width: 400px; }

.auth-head { margin-bottom: 18px; }
.auth-head h1 { font-size: 1.45rem; margin-bottom: 3px; }
.auth-head p { color: var(--c-muted); font-size: .86rem; margin: 0; }

.auth-demo {
    display: flex;
    gap: 10px;
    margin-bottom: 18px;
}
.auth-demo > svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.auth-demo p { margin: 0; }
.auth-demo strong { display: block; margin-bottom: 1px; }

.auth-form {
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.auth-form .form-group { gap: 6px; }

.auth-links {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    flex-wrap: wrap;
    font-size: .82rem;
}
.auth-links a { color: var(--c-brand); font-weight: 600; }

.auth-sep {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 18px 0 12px;
    color: var(--c-muted);
    font-size: .74rem;
    text-transform: uppercase;
    letter-spacing: .08em;
}
.auth-sep::before,
.auth-sep::after { content: ""; flex: 1; height: 1px; background: var(--c-border); }

.auth-alt {
    text-align: center;
    font-size: .85rem;
    color: var(--c-text-2);
    margin: 0;
}
.auth-alt a { color: var(--c-brand); font-weight: 600; }

.reset-link {
    display: inline-block;
    word-break: break-all;
    font-size: .76rem;
    color: var(--c-info);
    background: rgba(11, 107, 203, .08);
    border-radius: var(--r-sm);
    padding: 4px 8px;
    margin-top: 2px;
}

/* ---------- responsive ---------- */
@media (max-width: 880px) {
    .auth-wrap {
        grid-template-columns: 1fr;
        min-height: 0;
    }
    .auth-panel { padding: 26px 22px; gap: 16px; }
    .auth-features { display: none; }
    .auth-stats { margin-top: 4px; padding-top: 14px; }
    .auth-form-side { padding: 26px 20px 30px; }
}
@media (max-width: 480px) {
    .auth-stats { gap: 18px; }
    .auth-stats strong { font-size: 1.12rem; }
}
