/* The sign-in pages, in the look of shadcn's login-01 block made with the app's own
   components: its card, inputs and button, and the Grass colours (web/src/index.css).
   Plain CSS, as these pages allow nothing but their own stylesheet. */
:root {
  color-scheme: light dark;
  --background: #ffffff; --foreground: #292929; --card: #ffffff; --muted-foreground: #7f7f7f;
  --primary: #24b47e; --primary-foreground: #052e1b; --primary-ink: #16794c;
  --input: rgba(0, 0, 0, 0.05); --ring: #3ecf8e; --ring-soft: rgba(62, 207, 142, 0.3);
  --destructive: #dc2626; --card-ring: rgba(23, 23, 23, 0.05);
  --radius-field: 15px; --radius-card: 23px;
}
@media (prefers-color-scheme: dark) {
  :root {
    --background: #1c1c1c; --foreground: #ededed; --card: #1f1f1f; --muted-foreground: #8f8f8f;
    --primary: #3ecf8e; --primary-ink: #3ecf8e;
    --input: rgba(255, 255, 255, 0.05); --destructive: #f15757; --card-ring: rgba(237, 237, 237, 0.1);
  }
}
* { box-sizing: border-box; }
body {
  margin: 0; min-height: 100svh; display: flex; align-items: center; justify-content: center;
  padding: 24px; background: var(--background); color: var(--foreground);
  font: 13px/1.5 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter Variable", Inter, ui-sans-serif, system-ui, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}
@media (min-width: 768px) { body { padding: 40px; } }
main { width: 100%; max-width: 24rem; display: flex; flex-direction: column; gap: 24px; }

.brand { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: 14px; font-weight: 500; }
.brand svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Card: 20px inside, rounded, a hairline ring and a small shadow. */
.card {
  padding: 20px; background: var(--card); border-radius: var(--radius-card);
  box-shadow: 0 0 0 1px var(--card-ring), 0 1px 2px rgba(0, 0, 0, 0.05);
}
.card > :last-child { margin-bottom: 0; }
h1 { margin: 0; font-size: 16px; font-weight: 500; line-height: 1.3; }
.lead { margin: 6px 0 0; color: var(--muted-foreground); }
form { margin-top: 24px; }

/* Fields: label over a filled, rounded input; a green ring when in use. */
label { display: block; margin: 20px 0 8px; font-weight: 500; line-height: 1; }
form > label:first-of-type, form > input[type=hidden] + label { margin-top: 0; }
.label-row { display: flex; align-items: center; gap: 8px; margin: 20px 0 8px; }
.label-row label { margin: 0; }
.label-row a { margin-left: auto; color: var(--foreground); text-decoration: none; text-underline-offset: 4px; }
.label-row a:hover { text-decoration: underline; }
input {
  display: block; width: 100%; height: 32px; padding: 4px 10px;
  font: inherit; font-size: 16px; color: inherit;
  background: var(--input); border: 1px solid transparent; border-radius: var(--radius-field);
  outline: none; transition: border-color 0.2s, box-shadow 0.2s;
}
@media (min-width: 768px) { input { font-size: 13px; } }
input::placeholder { color: var(--muted-foreground); }
input:focus-visible { border-color: var(--ring); box-shadow: 0 0 0 3px var(--ring-soft); }

button {
  display: block; width: 100%; height: 32px; margin-top: 24px; padding: 0 12px;
  font: inherit; font-weight: 500; cursor: pointer;
  color: var(--primary-foreground); background: var(--primary);
  border: 1px solid transparent; border-radius: var(--radius-field);
  transition: background-color 0.2s, box-shadow 0.2s;
}
button:hover { background: color-mix(in srgb, var(--primary) 80%, transparent); }
button:focus-visible { outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px var(--ring-soft); }
button:active { transform: translateY(1px); }

.hint { margin: 8px 0 0; color: var(--muted-foreground); font-size: 13px; }
/* "Forgot your password?" shows its answer without any script. */
.shown-on-target { display: none; }
.shown-on-target:target { display: block; }
.footer { margin: 16px 0 0; text-align: center; color: var(--muted-foreground); }
a { color: var(--primary-ink); text-underline-offset: 4px; }

.error {
  margin-bottom: 16px; padding: 8px 12px; border-radius: 12px; font-size: 13px;
  color: var(--destructive); background: color-mix(in srgb, var(--destructive) 10%, transparent);
}

/* The front: the family's address, typed in front of the domain. */
.address { display: flex; align-items: center; gap: 8px; }
.address input { flex: 1; min-width: 0; }
.address .suffix { color: var(--muted-foreground); white-space: nowrap; }

/* The television page: numbered steps, and the address to type into the TV. */
.steps { margin: 20px 0 0; padding-left: 20px; display: flex; flex-direction: column; gap: 12px; }
.steps li { padding-left: 4px; }
.address-box {
  margin: 8px 0 0; padding: 8px 12px; border-radius: 12px; background: var(--input);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 15px; letter-spacing: 0.02em; user-select: all;
}
