/* Login page. Flat paper tile, hairlines, mono uppercase labels, no accent colour. */
* { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--font-sans); line-height: 1.5; }
.shell { min-height: 100dvh; display: grid; align-content: center; justify-items: center; gap: 16px; padding: 32px 16px; }
.tile { width: 100%; max-width: 420px; background: var(--paper-2); border: var(--hairline) solid var(--rule); border-radius: var(--radius-tile); padding: 32px 28px; }
h1 { font-family: var(--font-display); font-weight: 500; font-size: 28px; margin: 0 0 16px; letter-spacing: -0.01em; }
.label, label .label { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-2); margin: 0; }
.note { color: var(--ink-2); margin: 0 0 16px; }
.field { display: grid; gap: 6px; margin-bottom: 16px; }
input { font: inherit; color: var(--ink); background: var(--paper); border: var(--hairline) solid var(--rule); border-radius: 12px; padding: 8px 12px; min-height: 40px; width: 100%; transition: border-color var(--dur-1) var(--ease); }
input:hover { border-color: var(--rule-strong); }
input:focus { border-color: var(--ink); }
/* The one primary action on the page: same face as every .btn.solid, full width. */
.tile button { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; line-height: 1.3; cursor: pointer; width: 100%; min-height: 44px; padding: 12px 16px; border-radius: 999px; border: var(--hairline) solid var(--ink); background: var(--ink); color: var(--paper); margin-top: 4px;
  transition: border-color var(--dur-1) var(--ease), background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease), opacity var(--dur-1) var(--ease), scale var(--dur-1) var(--ease); }
.tile button:hover:not(:disabled) { opacity: .88; }
.tile button:active:not(:disabled) { scale: .98; }
.tile button.quiet { background: transparent; color: var(--ink); border-color: var(--rule); margin-top: 12px; }
.tile button.quiet:hover:not(:disabled) { opacity: 1; border-color: var(--ink); }
.tile button:disabled { opacity: .45; cursor: default; }
.error { border: var(--hairline) solid var(--ink); border-radius: 12px; padding: 10px 12px; margin: 0 0 16px; }
/* The theme switch sits in the corner, like the header on every other page, instead of floating above the card. */
.shell > [data-theme-toggle] { position: fixed; top: 12px; right: 16px; }
.mono { font-family: var(--font-mono); word-break: break-all; margin: 4px 0 16px; }
.small { font-size: 11px; color: var(--ink-2); }
.codes { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
[hidden] { display: none !important; }
@media (prefers-reduced-motion: reduce) { .tile button { transition: none; } .tile button:active:not(:disabled) { scale: none; } }
