/* =====================================================================
   HAULAT - THE DOORWAY            (assets/css/auth.css)

   Layout only. Every colour comes from the surface each pane declares:
   the story pane is .sf-rail, the form pane is .sf-canvas. Nothing here
   names a colour, so there is no dark-mode block and nothing to keep in
   sync.
   ===================================================================== */

.au {
    display: grid;
    grid-template-columns: 1fr 1fr;
    min-height: 100svh;
}

/* ------------------------------------------------------------- STORY */
.au__story {
    display: flex; flex-direction: column; justify-content: space-between;
    gap: var(--sp-10);
    padding: clamp(var(--sp-6), 4vw, var(--sp-16));
    position: relative; overflow: hidden;
}
/* the dot matrix, which is the part of the old treatment that actually
   read as Haulat. A background-image, so it costs nothing to draw. */
.au__story::after {
    content: ''; position: absolute; inset: 0; pointer-events: none;
    background-image: radial-gradient(currentColor 1.3px, transparent 1.3px);
    background-size: 30px 30px;
    color: var(--ink-3);
    opacity: .16;
}
.au__story > * { position: relative; z-index: 1; }

.au__brand { display: inline-flex; align-items: center; }
.au__h1 {
    font-family: var(--f-display);
    font-size: clamp(1.9rem, 3.4vw, 3.1rem);
    line-height: 1.02; letter-spacing: var(--track-tight);
    text-transform: uppercase; color: var(--ink);
    margin: var(--sp-3) 0 var(--sp-4);
}
.au__lede {
    font-family: var(--f-sans); font-size: var(--t-sm); line-height: 1.7;
    color: var(--ink-2); max-width: 34ch;
}
.au__rail {
    display: flex; align-items: center; gap: var(--sp-2);
    font-family: var(--f-mono); font-size: var(--t-2xs);
    letter-spacing: var(--track-widest); text-transform: lowercase;
    color: var(--ink-3);
}

/* -------------------------------------------------------------- FORM */
.au__form {
    display: flex; flex-direction: column; align-items: center; justify-content: center;
    gap: var(--sp-5);
    padding: clamp(var(--sp-5), 4vw, var(--sp-12));
}
.au__card {
    width: 100%; max-width: 27rem;
    display: flex; flex-direction: column; gap: var(--sp-4);
}
.au__tabs { width: 100%; margin-bottom: var(--sp-2); }
.au__tabs .hx-seg__opt { flex: 1; }
.au__h2 {
    font-family: var(--f-display); font-size: var(--t-xl);
    text-transform: uppercase; letter-spacing: var(--track-tight);
    color: var(--ink); margin-bottom: var(--sp-1);
}
.au__hr { flex: 1; height: 1px; background: var(--line); }
.au__switch {
    display: flex; flex-direction: column; align-items: center; gap: var(--sp-1);
    padding-top: var(--sp-5); border-top: 1px solid var(--line);
    width: 100%; max-width: 27rem; text-align: center;
}

/* the mode switch the auth script drives */
.auth-form { display: none; }
.auth-form.active { display: flex; }

/* ------------------------------------------------------------ MOBILE
   The story pane becomes a header band rather than half the screen: on
   a phone the only thing that matters here is the form. */
@media (max-width: 860px) {
    .au { grid-template-columns: 1fr; }
    .au__story {
        min-height: auto; gap: var(--sp-5);
        padding: var(--sp-5) var(--sp-5) var(--sp-8);
    }
    .au__h1 { font-size: clamp(1.6rem, 7vw, 2.2rem); }
    .au__rail { display: none; }
    .au__form { padding: var(--sp-6) var(--sp-5) var(--sp-10); }
}

/* the third-party sign-in block */
.au__social { display: flex; flex-direction: column; gap: var(--sp-4); margin-top: var(--sp-2); }
.au__google { display: flex; justify-content: center; }
.au__oauth { display: grid; grid-template-columns: 1fr; gap: var(--sp-3); }
.au__oauth--two { grid-template-columns: 1fr 1fr; }
.au__oauth .hx-btn { width: 100%; }
