/* The door: sign-in, claim and reset pages. One card, centred, same palette as the shell. */
:root {
  color-scheme: dark;
  --bg: #121211;
  --screen: #151513;
  --surface: #1F1F1D;
  --line: rgba(255,255,255,0.08);
  --line-strong: rgba(255,255,255,0.18);
  --text: #ECEAE3;
  --dim: #98968E;
  --faint: #61605A;
  --accent: #D6B36A;
  --accent-line: rgba(214,179,106,0.45);
  --bad: #E2766B;
  --font: 'Nohemi', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { height: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 14px;
  line-height: 1.45;
  -webkit-font-smoothing: antialiased;
  display: flex; align-items: center; justify-content: center;
  min-height: 100vh; min-height: 100dvh;
  /* Saved to the home screen the status bar is see-through (black-translucent): the card
     keeps clear of it and of the home indicator. */
  padding: calc(24px + env(safe-area-inset-top, 0px)) calc(24px + env(safe-area-inset-right, 0px))
           calc(24px + env(safe-area-inset-bottom, 0px)) calc(24px + env(safe-area-inset-left, 0px));
}

.door { width: 100%; max-width: 360px; }
.brand { display: flex; align-items: center; justify-content: center; gap: 10px; margin-bottom: 28px; }
.brand .word { font-size: 20px; font-weight: 600; letter-spacing: -0.02em; }
.brand .word .one { color: #6E6C66; }
.brand .dot {
  width: 22px; height: 22px; border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, #fff 0, #ECEAE3 25%, #6E6C66 70%, #2a2a28 100%);
  box-shadow: 0 0 0 1px var(--line);
}

.card {
  background: var(--screen); border: 1px solid var(--line); border-radius: 16px;
  padding: 28px 26px; box-shadow: 0 30px 60px -30px #000;
}
.card h1 { margin: 0 0 6px; font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.card p.hint { margin: 0 0 22px; color: var(--dim); }

label { display: block; font-size: 12px; color: var(--dim); margin: 0 0 6px; }
.field { margin-bottom: 16px; }
input[type="email"], input[type="password"], input[type="text"] {
  width: 100%; height: 42px; padding: 0 13px; border-radius: 10px;
  border: 1px solid var(--line-strong); background: var(--surface); color: var(--text);
  font: inherit; outline: none;
}
input:focus-visible { border-color: var(--accent-line); }

button.submit {
  width: 100%; height: 44px; margin-top: 6px; border: 0; border-radius: 10px;
  background: var(--accent); color: #1a1708; font-weight: 600; font-size: 14px; cursor: pointer;
}
button.submit:disabled { opacity: .6; cursor: default; }

.error {
  margin: 0 0 16px; padding: 10px 12px; border-radius: 10px; font-size: 13px;
  background: rgba(226,118,107,0.12); border: 1px solid rgba(226,118,107,0.35); color: #F2A79E;
}
.notice {
  margin: 0 0 16px; padding: 10px 12px; border-radius: 10px; font-size: 13px;
  background: rgba(214,179,106,0.1); border: 1px solid var(--accent-line); color: var(--accent);
}

.below { margin-top: 18px; text-align: center; font-size: 13px; color: var(--dim); }
.below a, .link-button {
  color: var(--text); text-decoration: underline; text-underline-offset: 2px; cursor: pointer;
  background: none; border: 0; font: inherit; padding: 0;
}

@media (prefers-reduced-motion: no-preference) {
  .card { animation: settle-in 420ms cubic-bezier(.2,.8,.2,1) both; }
  @keyframes settle-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
  button.submit { transition: transform 150ms cubic-bezier(.34,1.56,.64,1); }
  button.submit:active { transform: scale(.97); }
}
