/* ============================================================
   Login — split-pane brand + form
   Depends on qs-base.css for tokens and primitives.
   ============================================================ */

html, body { height: 100%; }

.qs.qs-auth {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    background: var(--surface);
}

@media (max-width: 900px) {
    .qs.qs-auth { grid-template-columns: 1fr; }
}

/* ---------- Left pane: brand ---------- */

.qs .auth-brand {
    position: relative;
    background:
        radial-gradient(circle at 100% 0%, rgba(124, 179, 66, 0.18) 0%, transparent 55%),
        radial-gradient(circle at 0% 100%, rgba(181, 137, 90, 0.16) 0%, transparent 50%),
        linear-gradient(135deg, var(--brand) 0%, #122318 100%);
    color: #FFF;
    padding: clamp(2rem, 6vw, 5rem);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    min-height: 320px;
}

@media (max-width: 900px) {
    .qs .auth-brand {
        min-height: auto;
        padding: 2rem clamp(1.25rem, 5vw, 2rem) 1.75rem;
    }
}

.qs .auth-brand::before {
    content: "";
    position: absolute;
    top: -120px;
    right: -120px;
    width: 360px;
    height: 360px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(124, 179, 66, 0.18) 0%, transparent 65%);
    pointer-events: none;
}

.qs .auth-brand-mark {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.85);
}

.qs .auth-brand-mark-glyph {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--r-sm);
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.qs .auth-brand-body {
    margin: clamp(1.5rem, 5vw, 3rem) 0;
    position: relative;
    z-index: 1;
}

.qs .auth-brand-eyebrow {
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 0.875rem;
}

.qs .auth-brand-title {
    margin: 0 0 0.875rem;
    font-size: clamp(1.75rem, 4vw, 2.625rem);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1.1;
    color: #FFF;
}

.qs .auth-brand-lede {
    margin: 0;
    color: rgba(255, 255, 255, 0.78);
    font-size: 1rem;
    line-height: 1.55;
    max-width: 38ch;
}

.qs .auth-brand-points {
    list-style: none;
    padding: 0;
    margin: clamp(1.5rem, 4vw, 2.5rem) 0 0;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    position: relative;
    z-index: 1;
}

.qs .auth-brand-points li {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    color: rgba(255, 255, 255, 0.9);
    font-size: 0.9375rem;
    line-height: 1.4;
}

.qs .auth-brand-points li svg {
    flex: none;
    margin-top: 0.1875rem;
    color: var(--accent);
}

.qs .auth-brand-foot {
    position: relative;
    z-index: 1;
    color: rgba(255, 255, 255, 0.55);
    font-size: 0.75rem;
    letter-spacing: 0.04em;
}

@media (max-width: 900px) {
    .qs .auth-brand-foot { display: none; }
    .qs .auth-brand-points { gap: 0.5rem; }
}

/* ---------- Right pane: form ---------- */

.qs .auth-form {
    background: var(--surface);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: clamp(2rem, 5vw, 3rem);
}

.qs .auth-form-inner {
    width: 100%;
    max-width: 380px;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.qs .auth-form-head h1 {
    margin: 0 0 0.375rem;
    font-size: 1.625rem;
    font-weight: 700;
    color: var(--text);
    letter-spacing: -0.015em;
}

.qs .auth-form-head p {
    margin: 0;
    color: var(--text-3);
    font-size: 0.9375rem;
}

.qs .auth-form form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.qs .auth-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-2);
    margin-bottom: 0.375rem;
    text-transform: none;
}

.qs .auth-field input {
    width: 100%;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-sm);
    padding: 0.75rem 0.875rem;
    font: inherit;
    font-size: 0.9375rem;
    line-height: 1.4;
    transition: border-color 160ms var(--ease), box-shadow 160ms var(--ease);
}

.qs .auth-field input:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px var(--brand-soft);
}

.qs .auth-submit {
    width: 100%;
    justify-content: center;
    margin-top: 0.25rem;
}

.qs .auth-demo {
    margin-top: 0.5rem;
    padding-top: 1rem;
    border-top: 1px dashed var(--border);
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.qs .auth-demo-head {
    display: flex;
    flex-direction: column;
    gap: 0.125rem;
}

.qs .auth-demo-label {
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--text-3);
}

.qs .auth-demo-sub {
    font-size: 0.8125rem;
    color: var(--text-3);
    line-height: 1.4;
}

.qs .auth-demo-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.5rem;
}

.qs .auth-demo-form {
    margin: 0;
    display: flex;
}

.qs .auth-demo-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.6875rem 0.75rem;
    background: var(--surface);
    color: var(--text);
    border: 1px solid var(--border-strong);
    border-radius: var(--r-md);
    cursor: pointer;
    font: inherit;
    text-align: left;
    transition: background 160ms var(--ease), border-color 160ms var(--ease), box-shadow 160ms var(--ease), transform 100ms var(--ease);
}

.qs .auth-demo-btn:hover {
    background: var(--surface-2);
    border-color: var(--brand);
}

.qs .auth-demo-btn:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px var(--brand-soft);
    border-color: var(--brand);
}

.qs .auth-demo-btn:active { transform: translateY(1px); }

.qs .auth-demo-btn-icon {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    border-radius: var(--r-sm);
    background: var(--brand-soft);
    color: var(--brand);
}

.qs .auth-demo-btn-text {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 0.0625rem;
}

.qs .auth-demo-btn-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--text);
    line-height: 1.2;
}

.qs .auth-demo-btn-email {
    font-size: 0.75rem;
    color: var(--text-3);
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.qs .auth-demo-btn-chevron {
    flex: none;
    color: var(--text-3);
    transition: transform 200ms var(--ease), color 160ms var(--ease);
}

.qs .auth-demo-btn:hover .auth-demo-btn-chevron {
    transform: translateX(2px);
    color: var(--brand);
}
