/*
 * The page follows the app's design system (.claude/skills/umdie-design):
 * white or black ground, one purple for the one action, pill buttons,
 * 12px inputs with a hairline, Poppins. Values are copied from
 * src/global.css — there is no build step here to share them.
 */

@font-face {
  font-family: "Poppins";
  font-weight: 400;
  font-display: swap;
  src: url("/fonts/Poppins_400Regular.ttf") format("truetype");
}
@font-face {
  font-family: "Poppins";
  font-weight: 600;
  font-display: swap;
  src: url("/fonts/Poppins_600SemiBold.ttf") format("truetype");
}
@font-face {
  font-family: "Poppins";
  font-weight: 700;
  font-display: swap;
  src: url("/fonts/Poppins_700Bold.ttf") format("truetype");
}

:root {
  --page: #ffffff;
  --ink: #0a0a0b;
  --muted: #6b6b75;
  --field: #ffffff;
  --border: #e6e6eb;
  --border-strong: #c9c9d1;
  --brand: #9400d3;
  --danger: #e11d48;
  --shadow-brand: 0 6px 18px rgba(148, 0, 211, 0.28);
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #000000;
    --ink: #ffffff;
    --muted: #9a9aa5;
    --field: #0a0a0b;
    --border: rgba(255, 255, 255, 0.12);
    --border-strong: rgba(255, 255, 255, 0.22);
  }
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font-family: "Poppins", -apple-system, "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}

main {
  max-width: 440px;
  margin: 0 auto;
  padding: max(24px, env(safe-area-inset-top)) 20px max(32px, env(safe-area-inset-bottom));
}

.wordmark {
  margin: 0 0 40px;
  color: var(--brand);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.04em;
}

h1 {
  margin: 0 0 8px;
  font-size: 28px;
  line-height: 1.2;
  font-weight: 600;
}

p {
  margin: 0 0 24px;
}

.muted {
  color: var(--muted);
}

.address {
  color: var(--ink);
  font-weight: 600;
  overflow-wrap: anywhere;
}

label {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
}

input[type="password"] {
  display: block;
  width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--field);
  color: var(--ink);
  font: inherit;
}

input[type="password"]:focus {
  outline: none;
  border-color: var(--brand);
}

.error {
  margin: 12px 0 0;
  color: var(--danger);
}

.button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 52px;
  margin-top: 24px;
  padding: 0 24px;
  border: 0;
  border-radius: 999px;
  background: var(--brand);
  box-shadow: var(--shadow-brand);
  color: #ffffff;
  font: inherit;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: transform 90ms ease-out;
}

.button:active {
  transform: scale(0.97);
}

.button:disabled {
  opacity: 0.38;
  cursor: default;
  transform: none;
}

.button[aria-busy="true"] {
  opacity: 0.66;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  padding: 0;
}
