@font-face {
  font-family: "Geist";
  src: url("console/fonts/geist-sans/Geist-Variable.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}

@font-face {
  font-family: "Geist Mono";
  src: url("console/fonts/geist-mono/GeistMono-Variable.woff2") format("woff2");
  font-display: swap;
  font-style: normal;
  font-weight: 100 900;
}

:root {
  color-scheme: light;
  --auth-ink: #151715;
  --auth-muted: #666b67;
  --auth-faint: #898e8a;
  --auth-line: #dfe2dd;
  --auth-soft: #f2f5f1;
  --auth-green: #116149;
  --auth-green-hover: #0c4f3b;
  --auth-green-soft: #e8f3ed;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-width: 320px;
  min-height: 100%;
  margin: 0;
}

body.api-auth {
  min-height: 100vh;
  background: #fafbf9;
  color: var(--auth-ink);
  font-family: "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

button,
input {
  font: inherit;
}

a {
  color: inherit;
}

.auth-shell {
  width: min(1120px, calc(100% - 48px));
  margin-inline: auto;
}

.auth-header {
  border-bottom: 1px solid rgba(223, 226, 221, 0.88);
  background: rgba(250, 251, 249, 0.92);
  backdrop-filter: blur(16px);
}

.auth-header-inner,
.auth-footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.auth-header-inner {
  min-height: 68px;
}

.auth-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--auth-ink);
  font-weight: 650;
  letter-spacing: -0.02em;
  text-decoration: none;
}

.auth-brand img {
  width: 30px;
  height: 30px;
  border-radius: 8px;
}

.auth-brand small {
  margin-left: 2px;
  padding-left: 10px;
  border-left: 1px solid #cfd2cd;
  color: var(--auth-faint);
  font-family: "Geist Mono", monospace;
  font-size: 0.68rem;
  font-weight: 500;
  letter-spacing: 0;
}

.auth-nav {
  display: flex;
  gap: 26px;
}

.auth-nav a,
.auth-footer a,
.auth-footnote a {
  color: #555a56;
  font-size: 0.86rem;
  font-weight: 540;
  text-decoration: none;
}

.auth-nav a:hover,
.auth-footer a:hover,
.auth-footnote a:hover {
  color: var(--auth-ink);
}

.auth-main {
  display: flex;
  min-height: calc(100vh - 137px);
  align-items: center;
  padding: 64px 0;
}

.auth-layout {
  display: grid;
  align-items: center;
  gap: clamp(64px, 10vw, 140px);
  grid-template-columns: minmax(0, 1fr) minmax(360px, 430px);
}

.auth-intro {
  max-width: 560px;
}

.auth-kicker,
.auth-card-label {
  margin: 0 0 18px;
  color: var(--auth-green);
  font-family: "Geist Mono", monospace;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.auth-intro h1 {
  max-width: 550px;
  margin: 0;
  font-size: clamp(2.7rem, 5vw, 4.5rem);
  font-weight: 640;
  letter-spacing: -0.055em;
  line-height: 0.98;
}

.auth-lede {
  max-width: 510px;
  margin: 24px 0 0;
  color: var(--auth-muted);
  font-size: 1.04rem;
}

.auth-capabilities {
  margin-top: 42px;
  border-top: 1px solid var(--auth-line);
}

.auth-capabilities > div {
  display: grid;
  padding: 17px 0;
  border-bottom: 1px solid var(--auth-line);
  gap: 18px;
  grid-template-columns: 28px 1fr;
}

.auth-capabilities span {
  padding-top: 2px;
  color: var(--auth-faint);
  font-family: "Geist Mono", monospace;
  font-size: 0.68rem;
}

.auth-capabilities p {
  margin: 0;
  color: var(--auth-muted);
  font-size: 0.88rem;
}

.auth-capabilities strong {
  display: inline-block;
  min-width: 112px;
  color: var(--auth-ink);
  font-weight: 600;
}

.auth-footnote {
  margin: 22px 0 0;
  color: var(--auth-muted);
  font-size: 0.86rem;
}

.auth-footnote a {
  border-bottom: 1px solid #abb0ab;
}

.auth-card {
  padding: 32px;
  border: 1px solid var(--auth-line);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 20px 60px rgba(28, 39, 32, 0.08);
}

.auth-card-header {
  margin-bottom: 26px;
}

.auth-card-label {
  margin-bottom: 10px;
}

.auth-card h2 {
  margin: 0;
  font-size: 1.45rem;
  font-weight: 640;
  letter-spacing: -0.035em;
}

.auth-card-header > p:last-child {
  margin: 8px 0 0;
  color: var(--auth-muted);
  font-size: 0.9rem;
}

.tabs {
  display: grid;
  margin-bottom: 24px;
  padding: 3px;
  border: 1px solid var(--auth-line);
  border-radius: 8px;
  background: var(--auth-soft);
  grid-template-columns: 1fr 1fr;
}

.tabs button {
  min-height: 38px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--auth-muted);
  cursor: pointer;
  font-size: 0.84rem;
  font-weight: 580;
}

.tabs button.active {
  background: #fff;
  color: var(--auth-ink);
  box-shadow: 0 1px 3px rgba(25, 34, 28, 0.1);
}

.field {
  margin-bottom: 17px;
}

.field label,
.field-label-row span {
  font-size: 0.78rem;
  font-weight: 570;
}

.field label {
  display: block;
  margin-bottom: 7px;
  color: #353a36;
}

.field-label-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.field-label-row span {
  color: var(--auth-faint);
  font-weight: 450;
}

.field input {
  width: 100%;
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid #d5d9d4;
  border-radius: 7px;
  outline: none;
  background: #fff;
  color: var(--auth-ink);
  font-size: 0.93rem;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.field input::placeholder {
  color: #a0a49f;
}

.field input:focus {
  border-color: var(--auth-green);
  box-shadow: 0 0 0 3px rgba(17, 97, 73, 0.1);
}

.auth-submit {
  width: 100%;
  min-height: 46px;
  margin-top: 4px;
  border: 1px solid var(--auth-green);
  border-radius: 7px;
  background: var(--auth-green);
  color: #fff;
  cursor: pointer;
  font-size: 0.88rem;
  font-weight: 620;
  transition: background 140ms ease, border-color 140ms ease;
}

.auth-submit:hover {
  border-color: var(--auth-green-hover);
  background: var(--auth-green-hover);
}

.auth-submit:disabled {
  cursor: wait;
  opacity: 0.7;
}

.msg {
  display: none;
  margin-top: 14px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-size: 0.82rem;
}

.msg.err {
  display: block;
  border-color: #f1c8ce;
  background: #fff4f5;
  color: #9b2739;
}

.msg.ok {
  display: block;
  border-color: #bfdccb;
  background: var(--auth-green-soft);
  color: var(--auth-green-hover);
}

.auth-privacy {
  margin: 20px 0 0;
  padding-top: 18px;
  border-top: 1px solid var(--auth-line);
  color: var(--auth-faint);
  font-size: 0.75rem;
}

.auth-footer {
  border-top: 1px solid var(--auth-line);
}

.auth-footer-inner {
  min-height: 69px;
}

.auth-footer-inner > div {
  display: flex;
  gap: 22px;
}

@media (max-width: 820px) {
  .auth-main {
    min-height: auto;
    padding: 42px 0 56px;
  }

  .auth-layout {
    gap: 38px;
    grid-template-columns: 1fr;
  }

  .auth-intro {
    max-width: 620px;
  }

  .auth-intro h1 {
    max-width: 620px;
    font-size: clamp(2.35rem, 10vw, 3.5rem);
  }

  .auth-lede {
    margin-top: 18px;
  }

  .auth-capabilities,
  .auth-footnote {
    display: none;
  }

  .auth-card {
    width: 100%;
    max-width: 520px;
  }
}

@media (max-width: 560px) {
  .auth-shell {
    width: min(100% - 32px, 1120px);
  }

  .auth-nav a:first-child {
    display: none;
  }

  .auth-main {
    padding-top: 34px;
  }

  .auth-intro h1 {
    font-size: 2.45rem;
  }

  .auth-card {
    padding: 24px 20px;
  }

  .auth-footer-inner {
    align-items: flex-start;
    padding: 22px 0;
  }
}

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