:root {
  color-scheme: dark;
  --night: #0b0c0c;
  --night-2: #131414;
  --paper: #f4f4f1;
  --paper-2: #e8e8e4;
  --ink: #111212;
  --muted-dark: rgba(244, 244, 241, .54);
  --muted-light: #686864;
  --line-dark: rgba(244, 244, 241, .15);
  --line-light: rgba(17, 18, 18, .18);
  --display: "Anton", "Arial Narrow", Impact, sans-serif;
  --body: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { min-height: 100%; }
body { margin: 0; background: var(--night); color: var(--paper); font-family: var(--body); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; }
button { color: inherit; }
a { color: inherit; text-decoration: none; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 4px; }
[hidden] { display: none !important; }

.login-shell { min-height: 100dvh; display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(420px, .78fr); overflow: hidden; }

.login-stage { position: relative; min-height: 100dvh; display: flex; flex-direction: column; justify-content: space-between; padding: clamp(24px, 3vw, 48px); overflow: hidden; isolation: isolate; background: var(--night); border-right: 1px solid var(--line-dark); }
.login-stage::before { content: ""; position: absolute; z-index: -1; inset: 0; opacity: .28; background: linear-gradient(115deg, transparent 0 58%, rgba(244,244,241,.035) 58% 58.2%, transparent 58.2% 100%); }
.login-stage::after { content: ""; position: absolute; z-index: 4; left: 0; right: 0; height: 1px; background: rgba(244,244,241,.22); transform: translateY(-1px); }

.stage-header { position: relative; z-index: 3; display: flex; align-items: center; justify-content: space-between; }
.stage-brand { display: inline-flex; align-items: center; gap: 9px; font-family: var(--display); font-size: 28px; line-height: 1; }
.stage-brand i { width: 8px; height: 8px; background: var(--paper); transform: rotate(45deg); }
.stage-access { color: var(--muted-dark); font-size: 10px; font-weight: 800; letter-spacing: .13em; text-transform: uppercase; }

.kinetic-mark { position: absolute; z-index: -1; top: 50%; left: 50%; width: min(82vw, 900px); display: grid; grid-template-columns: repeat(4, 1fr); transform: translate(-50%, -52%); color: var(--paper); font-family: var(--display); font-size: clamp(150px, 22vw, 390px); line-height: .72; letter-spacing: -.055em; white-space: nowrap; }
.kinetic-mark span { display: block; opacity: .92; transform: translateY(115%); }

.stage-copy { position: relative; z-index: 3; max-width: 620px; }
.stage-copy p { margin: 0 0 15px; color: var(--muted-dark); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.stage-copy h1 { margin: 0; font-family: var(--display); font-size: clamp(50px, 6.2vw, 96px); font-weight: 400; line-height: .92; letter-spacing: -.03em; text-transform: uppercase; }

.stage-perimeter { position: absolute; z-index: -1; top: 15%; right: -11%; width: clamp(230px, 31vw, 460px); aspect-ratio: 1; border: 1px solid var(--line-dark); transform: rotate(12deg); }
.stage-perimeter span { position: absolute; inset: 18%; border: 1px solid rgba(244,244,241,.09); }

.login-panel { min-height: 100dvh; display: grid; place-items: center; padding: clamp(28px, 5vw, 78px); color: var(--ink); background: var(--paper); }
.login-panel__inner { width: min(100%, 480px); display: flex; flex-direction: column; }
.login-mark { width: 52px; height: 52px; display: grid; place-items: center; margin-bottom: clamp(54px, 10vh, 104px); color: var(--paper); background: var(--ink); font-family: var(--display); font-size: 23px; }
.login-mark i { position: absolute; width: 6px; height: 6px; margin: -33px 0 0 34px; background: var(--paper); transform: rotate(45deg); }

.login-copy { max-width: 430px; }
.login-eyebrow { margin: 0 0 12px !important; color: var(--muted-light) !important; font-size: 9px !important; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.login-copy h2 { margin: 0 0 15px; font-family: var(--display); font-size: clamp(50px, 5vw, 74px); font-weight: 400; line-height: .92; letter-spacing: -.025em; text-transform: uppercase; }
.login-copy > p { max-width: 390px; margin: 0; color: var(--muted-light); font-size: 13px; line-height: 1.7; }

.login-form { margin-top: 40px; }
.login-form label { display: block; margin-bottom: 9px; color: #424340; font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.email-control { display: grid; grid-template-columns: minmax(0, 1fr) auto; border: 1px solid var(--ink); background: var(--paper); }
.email-control:focus-within { box-shadow: 0 0 0 2px var(--paper), 0 0 0 4px var(--ink); }
.email-control input { min-width: 0; height: 58px; padding: 0 17px; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 13px; }
.email-control input::placeholder { color: #777872; opacity: 1; }
.email-control button { min-width: 166px; height: 58px; display: inline-flex; align-items: center; justify-content: center; gap: 12px; padding: 0 18px; color: var(--paper); background: var(--ink); border: 0; cursor: pointer; font-size: 11px; font-weight: 800; white-space: nowrap; transition: color 240ms ease, background 240ms ease, transform 180ms var(--ease); }
.email-control button i { width: 7px; height: 7px; background: var(--paper); transform: rotate(45deg); transition: transform 260ms var(--ease); }
.email-control button:hover { color: var(--ink); background: var(--paper-2); }
.email-control button:hover i { background: var(--ink); transform: rotate(135deg); }
.email-control button:active { transform: scale(.985); }
.email-control button:disabled { cursor: wait; opacity: .66; }
.login-form > p { margin: 9px 0 0; color: var(--muted-light); font-size: 10px; line-height: 1.5; }
.form-message { min-height: 18px; color: #8e2f27 !important; font-weight: 700; }
.login-form.is-loading .email-control button i { animation: busy-turn .8s linear infinite; }

.sent-state { margin-top: 40px; padding-top: 29px; border-top: 1px solid var(--line-light); }
.sent-state__mark { width: 34px; height: 34px; display: block; margin-bottom: 18px; background: var(--ink); transform: rotate(45deg); }
.sent-state h3 { margin: 0 0 10px; font-family: var(--display); font-size: 34px; font-weight: 400; text-transform: uppercase; }
.sent-state p { max-width: 360px; margin: 0; color: var(--muted-light); font-size: 12px; line-height: 1.7; }
.sent-state .delivery-reference { margin-top: 12px; color: var(--ink); font-size: 10px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.sent-state button { margin-top: 20px; padding: 0 0 4px; color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--ink); cursor: pointer; font-size: 10px; font-weight: 800; }

.login-footer { display: flex; align-items: center; gap: 18px; margin-top: clamp(60px, 12vh, 122px); padding-top: 18px; color: var(--muted-light); border-top: 1px solid var(--line-light); font-size: 9px; font-weight: 700; }
.login-footer span + span { padding-left: 18px; border-left: 1px solid var(--line-light); }

@media (prefers-reduced-motion: no-preference) {
  .login-stage::after { animation: scan-stage 8s ease-in-out infinite; }
  .kinetic-mark span { animation: reveal-letter 1.1s var(--ease) forwards; animation-delay: calc(.14s + var(--order) * .08s); }
  .stage-header { animation: reveal-copy .7s var(--ease) .1s both; }
  .stage-copy { animation: reveal-copy .8s var(--ease) .52s both; }
  .stage-perimeter { animation: perimeter-drift 16s ease-in-out infinite alternate; }
  .login-panel__inner { animation: panel-in .8s var(--ease) .24s both; }
}

@keyframes reveal-letter { to { transform: translateY(0); } }
@keyframes reveal-copy { from { opacity: 0; transform: translateY(18px); } }
@keyframes panel-in { from { opacity: 0; transform: translateX(24px); } }
@keyframes scan-stage { 0%, 100% { transform: translateY(-1px); opacity: 0; } 16%, 84% { opacity: 1; } 50% { transform: translateY(100vh); } }
@keyframes perimeter-drift { to { transform: rotate(24deg) scale(1.05); } }
@keyframes busy-turn { to { transform: rotate(405deg); } }

@media (max-width: 920px) {
  .login-shell { grid-template-columns: 1fr; overflow: visible; }
  .login-stage { min-height: 42dvh; padding: 24px; border-right: 0; border-bottom: 1px solid var(--line-dark); }
  .kinetic-mark { top: 55%; width: 100%; font-size: clamp(115px, 31vw, 250px); }
  .stage-copy h1 { font-size: clamp(44px, 10vw, 70px); }
  .stage-copy p { display: none; }
  .stage-perimeter { display: none; }
  .login-panel { min-height: 58dvh; padding: 48px 24px; }
  .login-mark { margin-bottom: 48px; }
  .login-footer { margin-top: 64px; }
}

@media (max-width: 560px) {
  .login-stage { min-height: 34dvh; }
  .stage-access { font-size: 8px; }
  .stage-copy h1 { font-size: 42px; }
  .login-panel { min-height: 66dvh; padding: 40px 18px 30px; }
  .email-control { grid-template-columns: 1fr; }
  .email-control input, .email-control button { width: 100%; }
  .email-control button { min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .kinetic-mark span { transform: none; }
}
