@import url("/site.css");
/* Sign-in pages (login, register, reset, status, admin): one card per page on the tokens of site.css. */
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100svh; background: var(--bg); color: var(--ink);
  font: 16px/1.55 var(--font-body); -webkit-font-smoothing: antialiased;
  background-image:
    linear-gradient(rgba(245, 158, 11, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(245, 158, 11, 0.05) 1px, transparent 1px);
  background-size: 48px 48px;
  display: flex; flex-direction: column;
}
a { color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.top { padding: 20px max(16px, env(safe-area-inset-left, 0px)); display: flex; justify-content: space-between; align-items: center; gap: 12px; max-width: 1200px; width: 100%; margin: 0 auto; }
.top img { height: 36px; width: auto; display: block; }
.top-links { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }

.center { flex: 1; display: grid; place-items: center; padding: 24px 16px 64px; }
/* The landing's assembly scene behind the page (public/scene.js); on wide screens the card stands left and the
   model assembles to the right of it, on narrow ones the scene is dimmed behind the card. */
#scene { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
body:has(#scene) .top, body:has(#scene) main { position: relative; z-index: 1; }
@media (min-width: 860px) {
  body:has(#scene) .center { justify-items: start; width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: max(24px, env(safe-area-inset-left, 0px)); }
}
@media (max-width: 859px) { #scene { opacity: 0.3; } }
.card {
  width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--rule);
  border-radius: 16px; padding: 32px 28px; display: flex; flex-direction: column; gap: 18px;
}
.card h1 { margin: 0; font-size: 26px; line-height: 1.2; letter-spacing: -0.015em; }
.card p { margin: 0; color: var(--muted); }
.card p b { color: var(--ink); font-weight: 500; }
.eyebrow { font: 500 12px/1.3 var(--font-mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); margin: 0; }

form { display: flex; flex-direction: column; gap: 14px; }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; font-weight: 500; }
.hint { font-weight: 400; color: var(--muted); font-size: 14px; }
input {
  font: 16px/1.3 var(--font-body); color: var(--ink); background: var(--field);
  border: 1px solid var(--rule); border-radius: 10px; padding: 12px 14px; min-height: 48px; width: 100%;
}
input:focus { border-color: var(--accent); outline: none; box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 20px;
  border-radius: 10px; font: 600 16px/1 var(--font-body); text-decoration: none; cursor: pointer;
  border: 1.5px solid transparent; transition: transform .15s ease, background-color .15s, border-color .15s, opacity .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .55; cursor: progress; transform: none; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: #fbb53a; }
.btn-ghost { border-color: rgba(243, 241, 236, 0.3); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-small { min-height: 36px; padding: 0 12px; font-size: 14px; border-radius: 8px; }
.btn-danger { border-color: rgba(248, 113, 113, 0.5); color: var(--danger); background: transparent; }
.btn-danger:hover { border-color: var(--danger); }
.link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 8px; text-decoration: none; font-weight: 500; }
.link:hover { background: rgba(243, 241, 236, 0.08); }
.inline-link { color: var(--accent); text-underline-offset: 3px; }

.alt { font-size: 15px; color: var(--muted); display: flex; flex-direction: column; gap: 8px; }
.msg { border-radius: 10px; padding: 12px 14px; font-size: 15px; margin: 0; }
.msg:empty { display: none; }
.pw-hint { margin: 6px 0 0; font-size: 14px; color: #fcd34d; }
.pw-hint:empty { display: none; }
.msg-error { background: rgba(248, 113, 113, 0.12); color: #fecaca; }
.msg-ok { background: rgba(74, 222, 128, 0.12); color: #bbf7d0; }
[hidden] { display: none !important; }

@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* «Увійти через Google» above the form, «або» between them. */
.google { display: flex; flex-direction: column; gap: 14px; }
.google[hidden] { display: none; }
.btn-google { gap: 10px; }
.or { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--muted); font-size: 14px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--rule); }
