:root { color-scheme: light; }
:root.dark { color-scheme: dark; }

#auth-shell {
  min-height: 100vh;
  min-height: 100dvh;
  padding: 1rem;
  color: hsl(var(--foreground, 222.2 84% 4.9%));
  font: 400 1rem/1.5 Inter, system-ui, sans-serif;
}

#auth-shell:not([hidden]) {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}

#auth-shell header {
  font: 600 1.625rem/1 Geist, Inter, system-ui, sans-serif;
  letter-spacing: -.025em;
}

#auth-shell #panel {
  width: 100%;
  max-width: 28rem;
  padding: 1.5rem;
  border: 1px solid hsl(var(--border, 214.3 31.8% 91.4%));
  border-radius: .5rem;
  background: hsl(var(--card, 0 0% 100%));
  color: hsl(var(--card-foreground, 222.2 84% 4.9%));
  box-shadow: 0 1px 2px rgb(0 0 0 / .05);
  overflow-wrap: anywhere;
}

#auth-shell #title {
  margin: 0;
  text-align: center;
  font-size: 1.5rem;
  line-height: 1.25;
  font-weight: 600;
}

#auth-shell :is(p, ul) {
  margin: 0;
  font-size: .875rem;
  color: hsl(var(--muted-foreground, 215.4 16.3% 46.9%));
}

#auth-shell #description { margin-top: .375rem; text-align: center; }
#auth-shell ul { list-style: disc; padding-inline-start: 1.25rem; }
#auth-shell #actions:empty, #auth-shell #status:empty { display: none; }
#auth-shell #status:not(:empty) { margin-top: 1rem; }
#auth-shell #actions { margin-top: 1.5rem; }
#auth-shell :is(#actions, form) { display: grid; gap: .75rem; }
#auth-shell label { display: grid; gap: .375rem; font-size: .875rem; font-weight: 500; }

#auth-shell :is(input:not([type=hidden]), button, a) {
  min-height: 2.5rem;
  padding: .5rem .75rem;
  border: 1px solid transparent;
  border-radius: .375rem;
  font: 500 .875rem/1.35 Inter, system-ui, sans-serif;
}

#auth-shell input:not([type=hidden]) {
  min-width: 0;
  width: 100%;
  border-color: hsl(var(--input, 214.3 31.8% 91.4%));
  background: hsl(var(--background, 0 0% 100%));
  color: inherit;
}

#auth-shell :is(button, a) {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  text-decoration: none;
  background: hsl(var(--primary, 37 27% 24%));
  color: hsl(var(--primary-foreground, 0 0% 100%));
  cursor: pointer;
}

#auth-shell :is(button, a).secondary {
  background: transparent;
  border-color: hsl(var(--input, 214.3 31.8% 91.4%));
  color: inherit;
}

#auth-shell :is(button, a):hover:not(:disabled) { opacity: .85; }
#auth-shell button:disabled { opacity: .55; cursor: wait; }
#auth-shell :focus-visible { outline: 2px solid hsl(var(--ring, 37 27% 24%)); outline-offset: 2px; }
