/* Pages outside the staff frame and the customer portal: the sign-in page
   (/login) and the error page (/404). One centred card on Home's glow, through
   the app.css / theme.css tokens, so they follow the theme like every other
   page. Loaded after app.css and theme.css. */

body.standalone {
  /* Same glow as Home (staff/index.php), at the same strength per theme */
  --glow-a: 20%; --glow-b: 11%;
  min-height: 100vh; min-height: 100dvh;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 32px 16px;
  background:
    radial-gradient(1000px 560px at -5% -12%, color-mix(in srgb, var(--glow-1, var(--accent)) var(--glow-a), transparent), transparent 70%),
    radial-gradient(760px 460px at 105% 112%, color-mix(in srgb, var(--glow-2, #22c3e6) var(--glow-b), transparent), transparent 70%),
    var(--bg);
  background-repeat: no-repeat;
  background-attachment: fixed;
}
html[data-theme="light"] body.standalone { --glow-a: 11%; --glow-b: 8%; }
html[data-theme="oled"] body.standalone { --glow-a: 9%; --glow-b: 5%; }
html[data-theme="green"] body.standalone, html[data-theme="purple"] body.standalone, html[data-theme="pink"] body.standalone,
html[data-theme="red"] body.standalone, html[data-theme="orange"] body.standalone, html[data-theme="yellow"] body.standalone { --glow-a: 12%; --glow-b: 6%; }
html[data-theme="fall"] body.standalone, html[data-theme="christmas"] body.standalone, html[data-theme="winter"] body.standalone,
html[data-theme="spring"] body.standalone, html[data-theme="summer"] body.standalone, html[data-theme="rainbow"] body.standalone { --glow-a: 15%; --glow-b: 10%; }

.sa-card {
  position: relative; overflow: hidden;
  width: 100%; max-width: 400px;
  padding: 40px 36px 32px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  text-align: center;
}
/* Rainbow and the seasons: their coloured line, as under the staff top bar */
.sa-card::before {
  content: ""; position: absolute; inset: 0 0 auto; height: 3px;
  background: var(--frame-line, transparent);
}
@media (prefers-reduced-motion: no-preference) {
  .sa-card { animation: sa-in .35s ease-out both; }
  @keyframes sa-in { from { opacity: 0; transform: translateY(8px); } }
}

.sa-logo { display: block; width: auto; height: 44px; margin: 0 auto 28px; }
.sa-card h1 { margin: 0 0 6px; font-size: 22px; font-weight: 650; }
.sa-sub { margin: 0 0 24px; color: var(--text-2); }

.sa-note {
  display: flex; align-items: flex-start; gap: 10px;
  margin: 0 0 20px; padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px; text-align: left;
}
.sa-note .svg-icon { margin-top: 1px; }
.sa-note.error { background: var(--danger-weak); color: var(--danger); }
.sa-note.info { background: var(--success-weak); color: var(--success); }

.sa-card .btn.wide { width: 100%; min-height: 44px; font-size: 14.5px; font-weight: 600; }

.sa-help {
  margin: 24px 0 0; padding-top: 20px;
  border-top: 1px solid var(--border);
  color: var(--text-3); font-size: 12.5px; line-height: 1.55;
}

.sa-foot {
  display: flex; align-items: center; gap: 6px;
  margin: 20px 0 0; color: var(--text-3); font-size: 12px;
}
.sa-foot .svg-icon { width: 13px; height: 13px; }

@media (max-width: 420px) {
  .sa-card { padding: 32px 22px 26px; }
}
