/* ================== Auth v2 — split editorial ================== */

.auth-split {
    min-height: calc(100vh - 84px);
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0;
}

/* ---- Brand panel (left) ---- */
.auth-aside {
    position: relative;
    padding: 60px 56px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    border-right: 1px solid var(--line-soft);
    background:
        radial-gradient(600px 400px at 20% 30%, rgba(184,143,77,.14), transparent 60%),
        radial-gradient(500px 350px at 80% 80%, rgba(90,120,220,.08), transparent 60%),
        linear-gradient(180deg, rgba(255,255,255,.025), rgba(255,255,255,.005));
}
.auth-aside::before {
    content: '';
    position: absolute; inset: 0;
    background-image:
        linear-gradient(rgba(214,192,138,.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(214,192,138,.04) 1px, transparent 1px);
    background-size: 56px 56px;
    mask-image: radial-gradient(ellipse at center, black, transparent 70%);
    pointer-events: none;
}

.aside-brand {
    display: inline-flex; align-items: center; gap: 12px;
    font-family: var(--font-display);
    font-size: 1.5rem;
    color: var(--text);
    position: relative;
}
.aside-brand .mark {
    width: 36px; height: 36px;
    border-radius: 10px;
    background: var(--grad-gold);
    color: #1a1206;
    display: grid; place-items: center;
    font-weight: 700;
    box-shadow: var(--sh-gold);
}
.aside-brand em { font-style: italic; color: var(--gold-100); }

.aside-pitch { position: relative; max-width: 460px; }
.aside-pitch .eyebrow { margin-bottom: 22px; }
.aside-pitch h2 {
    font-size: clamp(2rem, 3.2vw, 2.8rem);
    line-height: 1.05;
    margin-bottom: 22px;
}
.aside-pitch h2 .accent { display: inline-block; }
.aside-pitch p { color: var(--text-soft); font-size: 1rem; line-height: 1.65; }

.aside-feats {
    list-style: none;
    padding: 0;
    margin: 32px 0 0;
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.aside-feats li {
    display: flex; align-items: center; gap: 14px;
    color: var(--text-soft);
    font-size: .94rem;
}
.aside-feats li::before {
    content: '';
    width: 22px; height: 22px;
    border-radius: 50%;
    background:
        radial-gradient(circle at center, var(--gold-200), transparent 60%);
    border: 1px solid var(--line-2);
    flex-shrink: 0;
    display: grid; place-items: center;
}
.aside-feats li {
    position: relative; padding-left: 0;
}
.aside-feats li svg { width: 12px; height: 12px; color: var(--gold-100); margin-right: 6px; }

.aside-bottom {
    position: relative;
    display: flex; align-items: center; gap: 18px;
    color: var(--text-muted);
    font-size: .85rem;
    padding-top: 32px;
    border-top: 1px solid var(--line-soft);
}
.aside-bottom .av {
    display: flex;
}
.aside-bottom .av span {
    width: 30px; height: 30px;
    border-radius: 50%;
    border: 2px solid var(--bg);
    background: var(--grad-gold);
    margin-left: -10px;
}
.aside-bottom .av span:first-child { margin-left: 0; }
.aside-bottom strong { color: var(--text); }

/* ---- Form panel (right) ---- */
.auth-main {
    display: grid;
    place-items: center;
    padding: 60px 28px;
    position: relative;
}

.auth-card {
    position: relative;
    width: 100%;
    max-width: 440px;
    padding: 8px;
    animation: float-in-blur .8s var(--ease-out) both;
}

.auth-card-inner {
    position: relative;
    padding: 44px 40px;
    border-radius: var(--r-xl);
    background: rgba(16,19,30,.6);
    border: 1px solid var(--line);
    backdrop-filter: blur(20px);
    box-shadow: var(--sh-3);
}
.auth-card-inner::before {
    content: '';
    position: absolute; inset: 0;
    border-radius: inherit;
    padding: 1px;
    background: linear-gradient(140deg, rgba(214,192,138,.4), transparent 40%, transparent 60%, rgba(214,192,138,.2));
    -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
    -webkit-mask-composite: xor; mask-composite: exclude;
    pointer-events: none;
}

.auth-card .auth-title {
    font-family: var(--font-display);
    font-size: 2rem;
    letter-spacing: -0.025em;
    margin: 0 0 8px;
    font-weight: 500;
    line-height: 1.1;
}
.auth-card .auth-title .accent { display: inline-block; }
.auth-sub {
    color: var(--text-muted);
    font-size: .95rem;
    margin: 0 0 32px;
}

.auth-form .form-group { margin-bottom: 18px; }
.auth-form label {
    font-size: .8rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--gold-200);
    margin-bottom: 8px;
    font-weight: 500;
}
.auth-form input {
    padding: 14px 16px;
    font-size: .98rem;
}

.form-error {
    display: block;
    color: var(--err);
    font-size: .8rem;
    margin-top: 6px;
    min-height: 1em;
}

.form-row {
    display: flex; align-items: center; justify-content: space-between;
    gap: 12px;
    margin: 4px 0 24px;
}
.form-check {
    display: inline-flex; align-items: center; gap: 10px;
    font-size: .88rem;
    color: var(--text-soft);
    cursor: pointer;
}
.form-check input {
    width: 16px; height: 16px;
    margin: 0;
    accent-color: var(--gold-400);
}
.form-row .forgot {
    font-size: .85rem;
    color: var(--gold-100);
}

.form-feedback {
    margin-top: 18px;
    font-size: .88rem;
    text-align: center;
    color: var(--err);
    min-height: 1em;
}
.form-feedback.success { color: var(--ok); }

.auth-divider {
    margin: 28px 0;
    display: flex; align-items: center; gap: 14px;
    color: var(--text-faint);
    font-size: .78rem;
    letter-spacing: .1em;
}
.auth-divider::before, .auth-divider::after {
    content: ''; flex: 1; height: 1px;
    background: linear-gradient(90deg, transparent, var(--line));
}
.auth-divider::after { background: linear-gradient(-90deg, transparent, var(--line)); }

.auth-footer {
    text-align: center;
    margin-top: 28px;
    color: var(--text-muted);
    font-size: .92rem;
}
.auth-footer a { font-weight: 600; }

/* ---- Responsive ---- */
@media (max-width: 920px) {
    .auth-split { grid-template-columns: 1fr; }
    .auth-aside {
        padding: 40px 28px;
        border-right: 0;
        border-bottom: 1px solid var(--line-soft);
        min-height: auto;
    }
    .aside-pitch { margin: 28px 0; }
    .aside-bottom { padding-top: 24px; }
    .auth-main { padding: 40px 20px; }
}
@media (max-width: 480px) {
    .auth-card-inner { padding: 32px 24px; border-radius: var(--r-lg); }
    .aside-feats { gap: 10px; }
}

/* ===== Password input + eye toggle ===== */
.input-pw {
    position: relative;
    display: block;
}
.input-pw input {
    width: 100%;
    padding-right: 46px;
}
.pw-toggle {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    width: 34px;
    height: 34px;
    display: grid;
    place-items: center;
    background: transparent;
    border: 0;
    border-radius: 8px;
    color: var(--text-muted);
    cursor: pointer;
    transition: color .2s, background .2s;
}
.pw-toggle:hover { color: var(--gold-100); background: rgba(214,192,138,.08); }
.pw-toggle:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 2px; }
.pw-toggle.is-on { color: var(--gold-200); }
