:root {
  --paper: #f5f7fa; --white: #fff; --ink: #10213a; --muted: #53627a;
  --line: #d3dae4; --green: #0e7c66; --green-dark: #0a5e4d; --amber: #e9a820;
  --danger-bg: #fdecec; --danger: #9b1c1c;
  --serif: "Source Serif 4", Georgia, serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans); line-height: 1.6; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }

.auth { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1rem; gap: 1.25rem; }
.back { color: var(--muted); font-size: .95rem; }
.auth-card {
  width: 100%; max-width: 26rem; background: var(--white);
  border: 1px solid var(--line); border-top: 6px solid var(--green);
  border-radius: 4px; padding: 2rem; box-shadow: 0 18px 40px -26px rgba(16,33,58,.4);
}
.auth-card h1 { font-family: var(--serif); font-size: 1.8rem; line-height: 1.2; margin: 0 0 .25rem; }
.sub { color: var(--muted); margin: 0 0 1.5rem; }
label { display: block; font-weight: 500; margin: 1rem 0 .35rem; }
input[type=text], input[type=password] {
  width: 100%; padding: .7rem .8rem; font: inherit; color: var(--ink);
  border: 1px solid #aeb9c9; border-radius: 6px; background: var(--white);
}
input:focus { border-color: var(--green); }
.alert { background: var(--danger-bg); color: var(--danger); border-radius: 6px; padding: .7rem .9rem; margin-bottom: .5rem; font-size: .95rem; }
.alert[hidden] { display: none; }
.btn {
  display: inline-block; margin-top: 1.5rem; width: 100%; background: var(--green); color: var(--white);
  border: 0; border-radius: 6px; padding: .8rem 1.2rem; font: inherit; font-weight: 600; cursor: pointer;
}
.btn:hover { background: var(--green-dark); }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }

/* demo accounts box on the sign-in page */
.demo-box { margin-top: 1.5rem; padding: 1rem 1.1rem; background: #f3f6fc; border: 1px dashed #aeb9c9; border-radius: 8px; }
.demo-title { margin: 0; font-weight: 600; }
.demo-note { margin: .2rem 0 .8rem; color: var(--muted); font-size: .88rem; }
.demo-row { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: .5rem 0; border-top: 1px solid var(--line); }
.demo-row div { display: flex; flex-direction: column; line-height: 1.35; }
.demo-row span { color: var(--muted); font-size: .92rem; font-variant-numeric: tabular-nums; }
.demo-use { background: var(--white); color: var(--green); border: 1.5px solid var(--green); border-radius: 6px; padding: .3rem .9rem; font: inherit; font-weight: 600; cursor: pointer; }
.demo-use:hover { background: var(--green); color: var(--white); }