/* The sign-in page of the Glyph Pro rental site, shown while the site is locked. It has its own small
   stylesheet so the lock depends on nothing behind the lock: the reverse proxy lets through only
   login.html, login.css, login.js, favicon.svg and fonts/. Same look as the black half of the site. */

@font-face { font-family: 'Geist'; font-weight: 400; font-style: normal; font-display: swap; src: url('fonts/geist-sans-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-weight: 500; font-style: normal; font-display: swap; src: url('fonts/geist-sans-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Geist'; font-weight: 600; font-style: normal; font-display: swap; src: url('fonts/geist-sans-latin-600-normal.woff2') format('woff2'); }

:root {
  color-scheme: dark;
  --bg: #000000;
  --card: #161617;
  --field: #0b0b0c;
  --text: #f5f5f7;
  --text-2: #a1a1a6;
  --text-3: #86868b;
  --hair: #424245;
  --caption: #ffe14d;
  --bad: #ff6961;
  --font: 'Geist', -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100dvh; display: grid; place-items: center;
  background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 17px; line-height: 1.5; letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
h1, p { margin: 0; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
button, input { font: inherit; letter-spacing: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--text); outline-offset: 3px; }

.gate { width: 100%; max-width: 440px; padding: 48px 20px 64px; }

.brand { display: flex; align-items: center; gap: 9px; font-size: 1.1875rem; line-height: 1; letter-spacing: -0.025em; }
.brand__icon { width: 24px; height: 17px; flex: none; }
.brand__screen { fill: #000; stroke: #56565a; }
.brand__line { fill: var(--caption); }
.brand__name { font-weight: 600; }
.brand__sub { opacity: 0.56; }

h1 { margin-top: 44px; font-size: clamp(2.5rem, 1.9rem + 3vw, 3.25rem); line-height: 1.05; font-weight: 600; letter-spacing: -0.045em; }
.lede { margin-top: 14px; color: var(--text-2); text-wrap: pretty; }

.card { margin-top: 32px; padding: 24px; border-radius: 22px; background: var(--card); }
.field + .field { margin-top: 18px; }
.field label { display: block; margin-bottom: 8px; font-size: 0.875rem; font-weight: 500; letter-spacing: -0.005em; color: var(--text-2); }
.field input {
  display: block; width: 100%; min-height: 52px; padding: 13px 16px;
  border: 1px solid var(--hair); border-radius: 12px; background: var(--field);
  font-size: 1.0625rem; line-height: 1.4; transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:hover { border-color: var(--text-3); }
.field input:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 4px rgba(255, 225, 77, 0.45); }
#f-code { font-variant-numeric: tabular-nums; letter-spacing: 0.08em; }
.hint { margin-top: 8px; font-size: 0.8125rem; color: var(--text-3); }

.status { margin-top: 16px; font-size: 0.9375rem; line-height: 1.4; color: var(--bad); text-wrap: pretty; }
.status:empty { display: none; }

.btn {
  display: flex; align-items: center; justify-content: center; width: 100%;
  min-height: 52px; margin-top: 22px; padding: 0 28px; border: 0; border-radius: 980px;
  background: #f5f5f7; color: #000;
  font-size: 1.0625rem; font-weight: 500; line-height: 1; letter-spacing: -0.015em;
  cursor: pointer; transition: background-color 0.2s, transform 0.1s;
}
.btn:hover { background: #fff; }
.btn:active { transform: scale(0.98); }
.btn[disabled] { opacity: 0.5; cursor: default; }
.back { display: block; margin: 16px auto 0; padding: 4px 8px; border: 0; background: none; font-size: 0.9375rem; color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; cursor: pointer; }
.back:hover { color: var(--text); }

.fine { margin-top: 28px; font-size: 0.875rem; line-height: 1.45; color: var(--text-2); }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
