/* Sign-in page: a two-panel layout that collapses to one on small screens. */

.auth {
    min-height: 100vh;
    min-height: 100dvh;
    display: grid;
    grid-template-columns: 1.05fr 1fr;
}

/* ── Brand panel ───────────────────────────────────────────────────────── */

.auth-brand {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: 44px;
    border-right: 1px solid var(--line);
    background:
        radial-gradient(ellipse 90% 70% at 20% 10%, rgba(232, 176, 75, 0.13), transparent 62%),
        radial-gradient(ellipse 70% 60% at 85% 90%, rgba(167, 139, 250, 0.13), transparent 60%),
        var(--surface);
}

/* Faint concentric rune rings, drawn in CSS so there is no image to load. */
.auth-brand::after {
    content: '';
    position: absolute;
    right: -180px;
    top: 50%;
    width: 620px;
    height: 620px;
    transform: translateY(-50%);
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.5;
    background:
        repeating-radial-gradient(circle at center,
            transparent 0 58px,
            rgba(232, 176, 75, 0.08) 58px 59px);
    mask-image: radial-gradient(circle at center, #000 40%, transparent 72%);
}

.auth-mark {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
    z-index: 1;
}
.auth-sigil {
    width: 40px; height: 40px; flex: none;
    display: grid; place-items: center;
    border-radius: 12px;
    background: linear-gradient(160deg, var(--gold-bright), var(--gold));
    color: #1a1206;
    font-size: 19px;
    box-shadow: 0 8px 22px rgba(232, 176, 75, 0.3);
}
.auth-mark-name { font-family: var(--font-display); font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
.auth-mark-sub  { font-size: 11.5px; color: var(--text-faint); letter-spacing: 0.05em; text-transform: uppercase; font-weight: 600; }

.auth-pitch { position: relative; z-index: 1; max-width: 440px; }
.auth-pitch h1 {
    font-family: var(--font-display);
    font-size: clamp(30px, 3.6vw, 42px);
    font-weight: 680;
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 16px;
}
.auth-pitch h1 em {
    font-style: normal;
    background: linear-gradient(120deg, var(--gold-bright), var(--arcane));
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}
.auth-pitch p { color: var(--text-dim); font-size: 15px; line-height: 1.65; }

.auth-points {
    position: relative;
    z-index: 1;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    list-style: none;
}
.auth-points li {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 7px 13px;
    border-radius: 999px;
    border: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.02);
    font-size: 12.5px;
    color: var(--text-dim);
    font-weight: 550;
}
.auth-points svg { width: 14px; height: 14px; color: var(--gold); flex: none; }

/* ── Form panel ────────────────────────────────────────────────────────── */

.auth-panel {
    display: grid;
    place-items: center;
    padding: 40px 28px;
}

.auth-form {
    width: 100%;
    max-width: 372px;
    animation: fade-up 0.42s var(--ease) both;
}

.auth-form-head { margin-bottom: 26px; }
.auth-form-head h2 {
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 660;
    letter-spacing: -0.02em;
    margin-bottom: 5px;
}
.auth-form-head p { color: var(--text-dim); font-size: 13.5px; }

.auth-fields { display: flex; flex-direction: column; gap: 15px; }

.auth-form .input { padding: 11px 13px; font-size: 14px; }

.password-wrap { position: relative; }
.password-wrap .input { padding-right: 44px; }
.password-toggle {
    position: absolute;
    right: 5px;
    top: 50%;
    transform: translateY(-50%);
    width: 32px; height: 32px;
    display: grid; place-items: center;
    border-radius: var(--r-sm);
    color: var(--text-faint);
    transition: color 0.15s, background 0.15s;
}
.password-toggle:hover { color: var(--text); background: var(--surface-3); }
.password-toggle svg { width: 17px; height: 17px; }

.auth-error {
    display: none;
    align-items: flex-start;
    gap: 9px;
    padding: 11px 13px;
    border-radius: var(--r-md);
    background: var(--rose-dim);
    border: 1px solid var(--rose);
    color: var(--rose);
    font-size: 13px;
    font-weight: 550;
    line-height: 1.45;
}
.auth-error.show { display: flex; animation: fade-up 0.24s var(--ease); }
.auth-error svg { width: 16px; height: 16px; flex: none; margin-top: 1px; }

.auth-submit { margin-top: 4px; padding: 11px 18px; font-size: 14px; }

.auth-foot {
    margin-top: 22px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
    font-size: 12px;
    color: var(--text-faint);
    line-height: 1.6;
}

/* ── Responsive ────────────────────────────────────────────────────────── */

@media (max-width: 900px) {
    .auth { grid-template-columns: 1fr; }
    .auth-brand {
        border-right: none;
        border-bottom: 1px solid var(--line);
        padding: 26px 22px;
        gap: 22px;
    }
    .auth-brand::after { display: none; }
    .auth-pitch h1 { font-size: 27px; }
    .auth-pitch p { font-size: 14px; }
    .auth-points { display: none; }
    .auth-panel { padding: 32px 22px 48px; align-items: start; }
}

@media (max-width: 420px) {
    .auth-brand { padding: 20px 18px; }
    .auth-pitch h1 { font-size: 23px; }
}
