@font-face {
  font-family: "Unbounded";
  font-style: normal;
  font-weight: 400 900;
  font-display: swap;
  src: url("/assets/fonts/unbounded-latin.woff2") format("woff2");
}

:root {
  --paper: #f1f3f0;
  --paper-deep: #e5e9e7;
  --paper-bright: #fafbf8;
  --ink: #171b22;
  --ink-soft: #565e68;
  --rule: #aeb5b8;
  --cobalt: #174fc9;
  --cobalt-dark: #103a94;
  --cobalt-wash: #dbe5ff;
  --vermilion: #df432f;
  --vermilion-wash: #f8ded8;
  --success: #176d53;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

html {
  min-width: 320px;
  min-height: 100%;
  color: var(--ink);
  background: var(--paper);
  font-family: "Segoe UI Variable", Aptos, "Segoe UI", sans-serif;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    linear-gradient(90deg, rgba(23, 27, 34, 0.028) 1px, transparent 1px) 0 0 / 46px 100%,
    var(--paper);
}

button,
input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: wait; opacity: 0.55; }

:focus-visible {
  outline: 2px solid var(--cobalt);
  outline-offset: 3px;
}

::selection { color: #fff; background: var(--cobalt); }

.auth-shell {
  display: grid;
  grid-template-columns: minmax(340px, 1.05fr) minmax(420px, 0.95fr);
  min-height: 100vh;
}

.auth-brand,
.auth-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(30px, 5vw, 72px);
}

.auth-brand {
  color: #fff;
  background: var(--ink);
}

.auth-wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  font-family: "Unbounded", sans-serif;
  font-size: 15px;
  font-weight: 720;
  letter-spacing: -0.025em;
}

.auth-wordmark img { filter: brightness(0) invert(1); }

.auth-kicker,
.auth-proof,
.auth-panel-head span,
.auth-form label {
  margin: 0;
  font-family: "Cascadia Mono", Consolas, monospace;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.auth-kicker { color: #87a9ff; }

.auth-brand h1 {
  max-width: 650px;
  margin: 16px 0 22px;
  font-size: clamp(42px, 6vw, 82px);
  line-height: 0.98;
  letter-spacing: -0.04em;
}

.auth-intro {
  max-width: 560px;
  margin: 0;
  color: #cbd1d3;
  font-size: clamp(15px, 1.4vw, 20px);
  line-height: 1.5;
}

.auth-proof { color: #aeb5b8; }

.auth-panel {
  justify-content: center;
  gap: 28px;
  border-left: 1px solid var(--ink);
  background: rgba(250, 251, 248, 0.92);
}

.auth-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  max-width: 520px;
  padding-bottom: 14px;
  border-bottom: 2px solid var(--ink);
}

.auth-panel-head h2 {
  margin: 0;
  font-size: 28px;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.auth-panel-head span { color: var(--cobalt); }

.auth-form {
  display: grid;
  gap: 18px;
  width: 100%;
  max-width: 520px;
}

.auth-form > div { display: grid; gap: 7px; }
.auth-form label { color: var(--ink-soft); }

.auth-form input {
  width: 100%;
  min-height: 52px;
  padding: 10px 12px;
  border: 1px solid var(--rule);
  border-radius: 0;
  color: var(--ink);
  background: var(--paper-bright);
  font-size: 17px;
}

.auth-form input:focus { border-color: var(--cobalt); }

.auth-form button[type="submit"] {
  min-height: 52px;
  border: 1px solid var(--ink);
  border-radius: 0;
  color: #fff;
  background: var(--ink);
  font-weight: 800;
}

.auth-form button[type="submit"]:hover:not(:disabled) { background: var(--cobalt); }

.auth-link {
  width: fit-content;
  padding: 0 0 3px;
  border: 0;
  border-bottom: 1px solid currentColor;
  border-radius: 0;
  color: var(--cobalt-dark);
  background: transparent;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
}

.auth-result {
  min-height: 22px;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}

.auth-result[data-tone="error"] {
  padding: 9px 11px;
  color: #7f2015;
  background: var(--vermilion-wash);
}

.auth-result[data-tone="success"] {
  padding: 9px 11px;
  color: var(--success);
  background: #dcece6;
}

@media (max-width: 760px) {
  .auth-shell { grid-template-columns: 1fr; }
  .auth-brand { min-height: 38vh; padding: 28px 24px 34px; }
  .auth-brand h1 { margin-block: 44px 16px; font-size: clamp(40px, 12vw, 58px); }
  .auth-proof { display: none; }
  .auth-panel { min-height: 62vh; padding: 34px 24px; border-top: 1px solid var(--ink); border-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; }
}
