/* Matches the PODVIEW sign-in card in its dark theme: near-black page, dark card, red primary. */
:root {
  --background: hsl(0 0% 5%);
  --foreground: hsl(0 0% 96%);
  --card: hsl(0 0% 10%);
  --card-border: hsl(0 0% 17%);
  --input: hsl(0 0% 23%);
  --muted: hsl(0 0% 53%);
  --primary: hsl(0 100% 65%);
  --primary-hover: hsl(0 100% 60%);
  --destructive: hsl(0 84% 60%);
  --radius: 0.5rem;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html, body { height: 100%; }

body {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  background: var(--background);
  color: var(--foreground);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-text-size-adjust: 100%;
}

.card {
  width: 100%;
  max-width: 400px;
  padding: 32px 24px 24px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: calc(var(--radius) + 4px);
  box-shadow: 0 10px 30px rgb(0 0 0 / 0.35);
}

.brand { display: flex; align-items: center; justify-content: center; gap: 10px; }
.brand-icon { width: 36px; height: 36px; object-fit: contain; }
.brand-wordmark { height: 22px; width: auto; object-fit: contain; }

.intro { margin: 16px 0 24px; text-align: center; font-size: 14px; color: var(--muted); }

label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 500; }
.required { color: var(--destructive); }

.field { position: relative; }
.field-icon {
  position: absolute; left: 12px; top: 0; bottom: 0; margin: auto;
  width: 16px; height: 16px; fill: none; stroke: var(--muted); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round;
}

input {
  width: 100%;
  height: 44px;
  padding: 0 12px 0 36px;
  background: transparent;
  color: var(--foreground);
  border: 1px solid var(--input);
  border-radius: var(--radius);
  font: inherit;
  font-size: 16px; /* 16px or more stops iOS zooming in on focus */
}
input::placeholder { color: var(--muted); }
input:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 2px hsl(0 100% 65% / 0.35); }
input:disabled { opacity: 0.6; }

.turnstile { display: flex; justify-content: center; margin-top: 12px; }
.turnstile:empty { margin-top: 0; }

.status { min-height: 21px; margin: 12px 0; text-align: center; font-size: 14px; color: var(--muted); }
.status.error { color: var(--destructive); }

button {
  width: 100%;
  height: 44px;
  border: 0;
  border-radius: var(--radius);
  background: var(--primary);
  color: #fff;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
}
button:hover:not(:disabled) { background: var(--primary-hover); }
button:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
button:disabled { opacity: 0.6; cursor: default; }

button.link {
  margin-top: 8px;
  height: auto;
  padding: 8px;
  background: none;
  color: var(--primary);
  font-weight: 500;
}
button.link:hover:not(:disabled) { background: none; text-decoration: underline; }

.continuing { margin-top: 16px; text-align: center; }
.continuing .status { margin: 16px 0 8px; color: var(--foreground); }
a.link { display: inline-block; padding: 8px; color: var(--primary); font-size: 14px; font-weight: 500; text-decoration: none; }
a.link:hover { text-decoration: underline; }
a.link:focus-visible { outline: 2px solid #fff; outline-offset: 2px; border-radius: 4px; }
[hidden] { display: none !important; }

.noscript { text-align: center; color: var(--muted); }

@media (max-width: 420px) {
  .card { padding: 28px 20px 20px; border-radius: var(--radius); }
}
