/* The platform's design system (platform-mono apps/app: globals.css and
   components/ui), written out by hand: the same tokens, type and measures as
   its Log In column. Square corners, 0.5px hairlines, no shadows. */

@font-face {
  font-family: Saans;
  src: url(/fonts/Saans-Regular.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  ascent-override: 101%;
  descent-override: 11.5%;
  line-gap-override: 0%;
}
@font-face {
  font-family: Saans;
  src: url(/fonts/Saans-Medium.woff2) format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  ascent-override: 101%;
  descent-override: 11.5%;
  line-gap-override: 0%;
}
@font-face {
  font-family: "Saans Mono";
  src: url(/fonts/SaansMono-Regular.woff2) format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  ascent-override: 101%;
  descent-override: 11.5%;
  line-gap-override: 0%;
}

:root {
  color-scheme: light;
  --background: #ffffff;
  --foreground: #000000;
  --muted: #8c8c8c;
  --hairline: #8c8c8c;
  --surface-inset: #f5f5f5;
  --accent: #ffcf22;
  --accent-hover: #ffdc5e;
  --disabled: #d9d9d9;
  --secondary-hover: #454545;
  --secondary-foreground: #ebecf2;
  --error: oklch(57.7% 0.245 27.325);
  --font-sans: Saans, ui-sans-serif, system-ui, sans-serif;
  --font-mono: "Saans Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    color-scheme: dark;
    --background: #0a0a0a;
    --foreground: #ededed;
    --hairline: #4a4a4a;
    --surface-inset: #161616;
    --disabled: #3f3f3f;
    --secondary-hover: #cfcfcf;
    --secondary-foreground: #0a0a0a;
    --error: oklch(70.4% 0.191 22.216);
  }
}

/* The reset the platform's components are written against. */
*,
::before,
::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  border: 0 solid;
}
html {
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
  -webkit-tap-highlight-color: transparent;
}
body {
  background: var(--background);
  color: var(--foreground);
  font-family: var(--font-sans);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
h1 {
  font-size: inherit;
  font-weight: inherit;
}
button,
input {
  font: inherit;
  font-feature-settings: inherit;
  letter-spacing: inherit;
  color: inherit;
  border-radius: 0;
  background-color: transparent;
  opacity: 1;
}
button {
  cursor: pointer;
  appearance: button;
}
code {
  font-family: var(--font-mono);
  font-size: 1em;
}
::placeholder {
  opacity: 1;
}
[hidden] {
  display: none !important;
}
:focus-visible {
  outline: 1px solid var(--foreground);
  outline-offset: 1px;
}
input:focus-visible {
  outline: none;
}

/* The 360px column between two full-height hairlines, the band a quarter
   of the way down. */
.page {
  display: flex;
  min-height: 100dvh;
  justify-content: center;
}
.column {
  display: flex;
  width: 360px;
  max-width: 100%;
  flex-direction: column;
  border-left: 0.5px solid var(--hairline);
  border-right: 0.5px solid var(--hairline);
}
/* On a phone the centring can put the column's edge on a half pixel, and
   WebKit then drops the left hairline: nudge it onto a whole one. */
@media (max-width: 480px) {
  .column {
    --auth-gutter: calc((100% - 360px) / 2);
    --auth-nudge: calc(round(down, var(--auth-gutter), 1px) - var(--auth-gutter));
    margin-left: var(--auth-nudge);
    margin-right: calc(-1 * var(--auth-nudge));
  }
}
.spacer {
  height: 26vh;
  flex-shrink: 0;
}
.band {
  display: flex;
  height: 44px;
  flex-shrink: 0;
  align-items: center;
  gap: 7px;
  border-top: 0.5px solid var(--hairline);
  border-bottom: 0.5px solid var(--hairline);
  padding-left: 10px;
  padding-right: 16px;
}
.mark {
  display: block;
  height: 9px;
  width: auto;
  flex-shrink: 0;
}
.band h1,
.band span {
  align-self: flex-start;
  padding-top: 13.5px;
  font-size: 14px;
  line-height: normal;
  letter-spacing: 0.28px;
}
.band span {
  color: var(--muted);
}
.steps {
  padding-top: 5px;
}
section,
form {
  display: flex;
  flex-direction: column;
}

/* Copy. */
.intro {
  padding: 0 8px 38px;
  font-size: 12px;
  line-height: 1.28;
  letter-spacing: 0.36px;
}
.back {
  padding: 0 8px 4px;
  font-size: 12px;
  line-height: 1.28;
  letter-spacing: 0.36px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.change {
  color: var(--foreground);
  text-underline-offset: 2px;
}
.change:hover {
  text-decoration: underline;
}
.prompt {
  padding: 12px 8px 0;
  font-size: 12px;
  line-height: 1.28;
  letter-spacing: 0.36px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.strong {
  color: var(--foreground);
}
.error {
  padding: 12px 8px 0;
  font-size: 12px;
  letter-spacing: 0.36px;
  color: var(--error);
}

/* Input: no box, a hairline base that darkens on focus. */
.field {
  width: 100%;
  border-bottom: 0.5px solid var(--hairline);
  background: transparent;
  padding: 20px 8px 8px;
  font-size: 12px;
  line-height: 1.28;
  letter-spacing: 0.36px;
  transition: border-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.field::placeholder {
  font-size: 10px;
  color: var(--muted);
}
.field:focus {
  border-color: var(--foreground);
}

/* The only links are a button and a text action. */
a {
  color: inherit;
  text-decoration: none;
}

/* Button. */
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  font-size: 12px;
  line-height: 1.28;
  letter-spacing: 0.36px;
  transition: color, background-color, border-color;
  transition-duration: 150ms;
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}
.button:disabled {
  cursor: not-allowed;
}
.button.primary {
  background: var(--accent);
  color: #000000;
}
.button.primary:hover {
  background: var(--accent-hover);
}
.button.primary:disabled {
  background: var(--disabled);
  color: var(--muted);
}
.button.secondary {
  background: var(--foreground);
  color: var(--secondary-foreground);
}
.button.secondary:hover {
  background: var(--secondary-hover);
}
.button.lg {
  height: 40px;
}
.button.wide {
  margin-top: 40px;
  width: 100%;
}
/* A second button sits flush under the first. */
.button.wide.below {
  margin-top: 0;
}

/* Text action: muted, dims on hover. */
.under {
  padding-top: 16px;
  text-align: center;
}
.text-action {
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.2px;
  color: var(--muted);
  transition: opacity 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.text-action:hover {
  opacity: 0.4;
}
.text-action:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Icon button (tertiary): hairline sides only. */
.icon-button {
  display: flex;
  width: 24px;
  height: 24px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-left: 0.5px solid var(--hairline);
  border-right: 0.5px solid var(--hairline);
  background: var(--background);
  font-size: 16px;
  letter-spacing: 0.32px;
  transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
}
.icon-button:hover {
  background: var(--surface-inset);
}

/* The key, shown once: the platform's reveal row, then one row a fact. */
.reveal {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 8px;
  margin-top: -5px;
  border-bottom: 0.5px solid var(--hairline);
  padding-left: 8px;
}
.reveal .icon-button {
  height: auto;
  min-height: 36px;
  width: 36px;
  border-right: 0;
}
.note {
  align-self: center;
  padding: 8px 0;
  font-size: 10px;
  letter-spacing: 0.8px;
  color: var(--muted);
}
.row {
  display: flex;
  align-items: baseline;
  gap: 12px;
  border-bottom: 0.5px solid var(--hairline);
  padding: 8px;
}
.label {
  width: 72px;
  flex-shrink: 0;
  font-size: 10px;
  letter-spacing: 0.8px;
  color: var(--muted);
}
.value {
  min-width: 0;
  flex: 1;
  font-family: var(--font-mono);
  font-size: 10px;
  line-height: 1.5;
  letter-spacing: 0.2px;
  overflow-wrap: anywhere;
  user-select: all;
}
.value.plain {
  font-family: var(--font-sans);
  letter-spacing: 0.36px;
  user-select: text;
}
