:root {
    --ink: #172016;
    --forest: #173d2d;
    --cream: #f4efe5;
    --paper: #fffdf8;
    --orange: #f26b38;
    --sage: #dce4c8;
    --line: #d9cfbd;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    min-height: 100vh;
    color: var(--ink);
    background: var(--cream);
    font-family: "DM Sans", sans-serif;
}

.auth-shell {
    min-height: 100vh;
    display: grid;
    grid-template-columns: minmax(360px, .92fr) minmax(520px, 1.08fr);
}

.auth-story {
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    padding: clamp(28px, 5vw, 72px);
    color: #fff9ec;
    background:
        radial-gradient(circle at 92% 12%, rgba(242, 107, 56, .82) 0 9%, transparent 9.5%),
        linear-gradient(145deg, rgba(255,255,255,.07) 0 1px, transparent 1px 22px),
        var(--forest);
}

.auth-story::after {
    content: "";
    position: absolute;
    width: min(48vw, 620px);
    aspect-ratio: 1;
    left: -18%;
    bottom: -32%;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 50%;
    box-shadow: 0 0 0 48px rgba(255,255,255,.025), 0 0 0 96px rgba(255,255,255,.025);
}

.auth-brand, .auth-mobile-brand {
    font-family: "DM Serif Display", serif;
    font-size: 24px;
    color: inherit;
    text-decoration: none;
}

.auth-brand { display: flex; align-items: center; gap: 12px; }
.auth-brand-mark {
    display: grid;
    place-items: center;
    width: 42px;
    height: 42px;
    border: 1px solid rgba(255,255,255,.45);
    border-radius: 50%;
    font-family: "DM Sans", sans-serif;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: .08em;
}

.auth-story-copy { position: relative; z-index: 1; max-width: 600px; }
.auth-kicker, .auth-eyebrow {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .18em;
}

.auth-kicker { color: #ffd39f; }
.auth-story h1 {
    max-width: 12ch;
    margin: 16px 0 24px;
    font: 400 clamp(48px, 6vw, 86px)/.96 "DM Serif Display", serif;
    letter-spacing: -.035em;
}

.auth-story-copy p { max-width: 47ch; font-size: 18px; line-height: 1.65; color: #dce4d3; }
.auth-recipe { position: relative; z-index: 1; display: flex; align-items: center; gap: 12px; font-size: 11px; letter-spacing: .1em; }
.auth-recipe i { width: clamp(20px, 4vw, 70px); height: 1px; background: rgba(255,255,255,.35); }

.auth-panel { display: grid; place-items: center; padding: 38px clamp(20px, 6vw, 90px); }
.auth-card { width: min(100%, 520px); }
.auth-mobile-brand { display: none; color: var(--forest); margin-bottom: 42px; }
.auth-eyebrow { margin: 0 0 10px; color: #a84323; }
.auth-card h2 { margin: 0; font: 400 clamp(38px, 5vw, 58px)/1.05 "DM Serif Display", serif; letter-spacing: -.02em; }
.auth-subtitle { margin: 12px 0 32px; color: #667066; }

.auth-choice {
    position: relative;
    display: grid;
    grid-template-columns: 28px 1fr auto;
    align-items: center;
    gap: 12px;
    width: 100%;
    min-height: 58px;
    margin: 12px 0;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--paper);
    color: var(--ink);
    text-decoration: none;
    font-weight: 700;
    transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.auth-choice:hover { transform: translateY(-2px); border-color: var(--forest); box-shadow: 0 10px 28px rgba(23,32,22,.08); }
.auth-choice svg { width: 23px; height: 23px; }
.auth-choice-icon { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--sage); font-weight: 800; }
.auth-choice small { padding: 5px 8px; border-radius: 999px; background: var(--sage); font-size: 10px; color: var(--forest); }
.auth-divider { display: flex; align-items: center; gap: 12px; margin: 26px 0 18px; color: #7d837b; font-size: 12px; }
.auth-divider::before, .auth-divider::after { content: ""; flex: 1; height: 1px; background: var(--line); }

.auth-magic-form label { display: block; margin-bottom: 7px; font-size: 12px; font-weight: 700; }
.auth-input-row { display: grid; grid-template-columns: 1fr auto; gap: 9px; }
.auth-input-row input {
    min-width: 0;
    height: 52px;
    padding: 0 14px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--paper);
    font: inherit;
}
.auth-input-row input:focus { outline: 3px solid rgba(242,107,56,.2); border-color: var(--orange); }
.auth-input-row button {
    border: 0;
    border-radius: 12px;
    padding: 0 18px;
    background: var(--orange);
    color: var(--ink);
    font: 800 13px "DM Sans", sans-serif;
    cursor: pointer;
}

.auth-last-note { margin: 8px 0 0; color: #667066; font-size: 11px; }
.auth-alert, .auth-success { margin: 16px 0; padding: 14px 16px; border-radius: 12px; font-size: 13px; line-height: 1.5; }
.auth-alert { background: #fff0eb; border: 1px solid #f0b8a4; }
.auth-success { display: grid; gap: 5px; background: var(--sage); border: 1px solid #bbc7a2; }
.auth-switch { margin: 28px 0 10px; font-size: 14px; }
.auth-switch a, .auth-legal a { color: var(--forest); font-weight: 700; }
.auth-legal { color: #7b8179; font-size: 11px; line-height: 1.55; }

@media (max-width: 860px) {
    .auth-shell { grid-template-columns: 1fr; }
    .auth-story { display: none; }
    .auth-panel { min-height: 100vh; align-items: start; padding-top: 34px; }
    .auth-mobile-brand { display: block; }
}

@media (max-width: 480px) {
    .auth-panel { padding: 24px 18px 38px; }
    .auth-card { min-width: 0; }
    .auth-card h2 { font-size: 40px; }
    .auth-choice { grid-template-columns: 26px 1fr; }
    .auth-choice small { grid-column: 2; justify-self: start; }
    .auth-input-row { display: flex; flex-direction: column; }
    .auth-input-row button { width: 100%; height: 48px; }
}
