/* The login page's own styles (decision 27). This file, login.js, the icon and the font are the
   only files anyone can reach without a session, so they hold no client data, no shop name and no
   figures. The self-hosted Host Grotesk, nothing from elsewhere. */
@font-face {
  font-family: "Host Grotesk"; font-weight: 300 800; font-display: swap;
  src: url(/login-assets/host-grotesk-latin-wght-normal.woff2) format("woff2");
}
:root {
  --ink: #0B0B0B; --y: #FBC114; --y-hi: #FFCF3A;
  --text: #F4F2EA; --muted: #A8A499; --faint: #8A867B; --risk: #FF8A57;
  --field: rgba(26, 26, 24, .86); --field-hi: rgba(34, 34, 31, .92); --line: rgba(255, 255, 255, .14);
  --f: "Host Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
}
* { box-sizing: border-box; }
html, body { height: 100%; }
html { font-feature-settings: "calt" 0; font-variant-ligatures: no-contextual; }
body { margin: 0; background: var(--ink); color: var(--text); font-family: var(--f); font-size: 15px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow: hidden; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 2.5px solid var(--y); outline-offset: 3px; border-radius: 10px; }
.ph { width: 1em; height: 1em; flex: none; display: block; }
[hidden] { display: none !important; }
html:not(.js) .lang, html:not(.js) .eye { display: none; }

/* the dawn behind the form */
.sky { position: fixed; inset: 0; overflow: hidden; background: radial-gradient(120% 90% at 50% 112%, #2A1E05 0%, #141006 38%, #0B0B0B 68%); }
.dots { position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .15) 1px, transparent 1.2px); background-size: 24px 24px; -webkit-mask-image: radial-gradient(62% 62% at 50% 62%, #000 8%, transparent 74%); mask-image: radial-gradient(62% 62% at 50% 62%, #000 8%, transparent 74%); }
.sun { position: absolute; left: 50%; bottom: -52vmin; width: 104vmin; height: 104vmin; margin-left: -52vmin; border-radius: 50%; background: radial-gradient(circle, rgba(255, 190, 40, .62) 0%, rgba(251, 193, 20, .32) 34%, rgba(255, 158, 27, .13) 56%, transparent 71%); animation: rise 1.6s cubic-bezier(.2, .8, .2, 1) both, breathe 9s 1.6s ease-in-out infinite; }
.rings { position: absolute; left: 50%; bottom: 0; width: 0; height: 0; }
.rings i { position: absolute; left: 0; top: 0; border-radius: 50%; border: 1px solid rgba(251, 193, 20, .26); transform: translate(-50%, -50%); }
.rings i:nth-child(1) { width: 62vmin; height: 62vmin; border-color: rgba(255, 207, 58, .42); }
.rings i:nth-child(2) { width: 88vmin; height: 88vmin; border-color: rgba(251, 193, 20, .28); }
.rings i:nth-child(3) { width: 116vmin; height: 116vmin; border-color: rgba(251, 193, 20, .18); }
.rings i:nth-child(4) { width: 148vmin; height: 148vmin; border-color: rgba(251, 193, 20, .1); }
.rings i:nth-child(5) { width: 186vmin; height: 186vmin; border-color: rgba(251, 193, 20, .06); }
.pulse { position: absolute; left: 0; top: 0; width: 62vmin; height: 62vmin; border-radius: 50%; border: 1.5px solid rgba(255, 207, 58, .45); transform: translate(-50%, -50%); animation: pulse 7s 1.2s cubic-bezier(.2, .6, .3, 1) infinite; opacity: 0; }
.vig { position: absolute; inset: 0; background: radial-gradient(90% 80% at 50% 44%, transparent 50%, rgba(0, 0, 0, .55) 100%); }

/* the language, top right */
.corner { position: fixed; top: 22px; right: 26px; z-index: 3; }
.lang { display: flex; background: rgba(255, 255, 255, .07); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.lang button { border: 0; background: none; color: var(--muted); font-size: 12.5px; font-weight: 600; padding: 4px 11px; border-radius: 999px; cursor: pointer; }
.lang button.on { background: #fff; color: var(--ink); }

/* the form */
main { position: relative; z-index: 2; min-height: 100%; display: grid; place-items: center; padding: 24px 20px 64px; }
.box { width: 100%; max-width: 372px; animation: up .8s .15s cubic-bezier(.2, .8, .2, 1) both; }
.logo { display: flex; flex-direction: column; align-items: center; text-align: center; margin-bottom: 30px; }
.logo svg { width: 68px; height: auto; display: block; filter: drop-shadow(0 12px 30px rgba(251, 193, 20, .28)); }
.logo h1 { margin: 16px 0 0; font-size: 31px; font-weight: 800; letter-spacing: -.02em; line-height: 1; color: #fff; }
.logo small { display: block; margin-top: 7px; font-size: 13px; font-weight: 500; color: var(--muted); }
.hi { margin: 0 0 20px; text-align: center; font-size: 16px; color: var(--muted); }
label { display: block; font-size: 13px; font-weight: 550; color: var(--muted); margin: 0 0 7px; }
.f { position: relative; margin-bottom: 14px; }
.f > .ph { position: absolute; z-index: 1; left: 14px; top: 50%; transform: translateY(-50%); font-size: 19px; color: var(--faint); pointer-events: none; transition: color .15s; }
.f input { width: 100%; height: 50px; padding: 0 44px; border-radius: 13px; border: 1px solid var(--line); background: var(--field); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); color: #fff; font-size: 15.5px; outline: none; transition: border-color .15s, background .15s, box-shadow .15s; }
.f input:hover { background: var(--field-hi); }
.f input:focus { border-color: var(--y); background: var(--field-hi); box-shadow: 0 0 0 4px rgba(251, 193, 20, .16); }
.f:focus-within > .ph { color: var(--y); }
.eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 38px; height: 38px; border: 0; background: none; color: var(--faint); border-radius: 10px; cursor: pointer; display: flex; align-items: center; justify-content: center; font-size: 19px; }
.eye:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.err { display: none; align-items: center; gap: 9px; margin: 2px 0 14px; padding: 10px 12px; border-radius: 11px; background: rgba(255, 138, 87, .12); border: 1px solid rgba(255, 138, 87, .32); color: #FFC3A8; font-size: 13.5px; }
.err .ph { font-size: 18px; color: var(--risk); }
.err:target, .err.on { display: flex; animation: shake .38s ease both; }
.go { width: 100%; height: 52px; margin-top: 6px; border: 0; border-radius: 13px; background: var(--y); color: var(--ink); font-size: 16px; font-weight: 700; letter-spacing: -.01em; display: flex; align-items: center; justify-content: center; gap: 9px; cursor: pointer; transition: background .15s, transform .1s, box-shadow .2s; box-shadow: 0 14px 34px -14px rgba(251, 193, 20, .65); }
.go:hover { background: var(--y-hi); box-shadow: 0 18px 40px -14px rgba(251, 193, 20, .8); }
.go:active { transform: translateY(1px); }
.go .ph { font-size: 19px; transition: transform .2s; }
.go:hover .ph { transform: translateX(3px); }
.go.busy { opacity: .8; cursor: progress; }
.go.busy > * { display: none; }
.go.busy::after { content: ""; width: 19px; height: 19px; border-radius: 50%; border: 2.5px solid rgba(11, 11, 11, .25); border-top-color: var(--ink); animation: spin .7s linear infinite; }
.help { margin: 18px 0 0; text-align: center; font-size: 13.5px; color: var(--muted); }
.help a { color: #fff; font-weight: 600; text-decoration: none; border-bottom: 1px solid rgba(255, 255, 255, .3); }
.help a:hover { border-color: var(--y); color: var(--y); }
.foot { position: fixed; left: 0; right: 0; bottom: 18px; z-index: 2; display: flex; justify-content: center; gap: 7px; align-items: center; font-size: 12.5px; color: rgba(255, 255, 255, .62); text-align: center; padding: 0 16px; }
.foot .ph { font-size: 15px; }

@keyframes rise { from { transform: translateY(14vmin); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes breathe { 0%, 100% { opacity: 1; } 50% { opacity: .82; } }
@keyframes pulse { 0% { transform: translate(-50%, -50%) scale(1); opacity: 0; } 12% { opacity: .8; } 100% { transform: translate(-50%, -50%) scale(3); opacity: 0; } }
@keyframes up { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shake { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(-6px); } 50% { transform: translateX(5px); } 75% { transform: translateX(-3px); } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .pulse { display: none; }
}
@media (max-height: 680px) {
  body { overflow: auto; }
  .logo { margin-bottom: 18px; }
  .logo svg { width: 52px; }
  .logo h1 { font-size: 26px; }
  .hi { margin-bottom: 12px; }
  .foot { position: static; padding: 0 16px 16px; }
  main { padding-bottom: 16px; min-height: auto; }
}
@media (max-width: 520px) { .corner { right: 14px; top: 14px; } }
