:root {
  color-scheme: light;
  --ink: #12323d;
  --blue: #1f4456;
  --aqua: #4fb1b4;
  --cure: #008c99;
  --beige: #efdccc;
  --red: #d4383d;
  --paper: #f4f8f7;
  --muted: #526b73;
  --line: #d5e4e1;
}

* { box-sizing: border-box; }
html { min-height: 100%; background: var(--paper); }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--ink);
  background: linear-gradient(145deg, #edf6f5 0%, var(--paper) 55%, #e8f5f6 100%);
  font-family: Arial, Helvetica, sans-serif;
}
.centered { display: grid; place-items: center; padding: 24px; }
.card {
  width: min(560px, 100%);
  padding: 38px 32px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: rgba(255,255,255,.94);
  box-shadow: 0 20px 60px rgba(11,52,67,.12);
}
.landing-card { text-align: center; }
.auth-card { width: min(480px, 100%); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.hero-logo { display: block; width: 100%; max-width: 570px; height: auto; margin: -30px auto -28px; }
.auth-logo-link { display: block; margin: -28px -8px -32px; border-radius: 14px; }
.auth-logo { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto; }
.mascot { display: block; width: min(310px, 90%); height: auto; margin: -40px auto -34px; }
.mark, .mini-mark {
  display: inline-grid;
  place-items: center;
  background: var(--ink);
  color: white;
  font-weight: 900;
}
.mark { width: 68px; height: 68px; margin: 0 auto 22px; border-radius: 20px; font-size: 32px; }
.mini-mark { width: 34px; height: 34px; border-radius: 10px; font-size: 17px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 850; text-decoration: none; }
.eyebrow { margin: 22px 0 10px; color: var(--cure); font-size: 12px; font-weight: 850; letter-spacing: .16em; text-transform: uppercase; }
h1 { margin: 0 0 10px; font-size: clamp(30px, 7vw, 44px); letter-spacing: -.04em; line-height: 1.05; }
h2 { margin: 12px 0 7px; font-size: 18px; }
p { line-height: 1.6; }
.lead { margin: 0 0 24px; color: var(--muted); }
.micro { margin: 20px 0 0; color: var(--muted); font-size: 13px; }
.auth-secondary { margin: 16px 0 0; text-align: center; font-size: 14px; font-weight: 800; }
.auth-secondary a { color: var(--blue); }
.status-line { display: flex; align-items: center; justify-content: center; gap: 9px; }
.status-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--aqua); box-shadow: 0 0 0 5px rgba(53,185,173,.15); }
.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 50px;
  padding: 12px 21px;
  border: 0;
  border-radius: 14px;
  background: var(--ink);
  color: white;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.button:hover { background: var(--blue); }
.full { width: 100%; margin-top: 22px; }
form { margin-top: 24px; }
label { display: block; margin: 16px 0 7px; font-size: 14px; font-weight: 800; }
input {
  width: 100%; min-height: 50px; padding: 11px 13px;
  border: 1px solid #bcd1cf; border-radius: 12px;
  background: white; color: var(--ink); font: inherit;
}
input:focus { outline: 3px solid rgba(79,177,180,.25); border-color: var(--aqua); }
.alert { margin: 18px 0; padding: 13px 15px; border-left: 4px solid var(--red); border-radius: 10px; background: #fff0f0; color: #8d2528; }
.alert ul { margin: 0; padding-left: 20px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 16px clamp(18px,4vw,48px); border-bottom: 1px solid var(--line); background: rgba(255,255,255,.9); }
.topbar form { margin: 0; }
.text-button { border: 0; background: none; color: var(--blue); font: inherit; font-weight: 800; cursor: pointer; }
.shell { width: min(1120px, 100%); margin: 0 auto; padding: 48px 20px 80px; }
.welcome { padding: 26px 0 34px; }
.welcome .eyebrow { margin-top: 0; }
.module-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 18px; }
.module { min-height: 190px; padding: 22px; border: 1px solid var(--line); border-radius: 20px; background: rgba(255,255,255,.9); }
.module.ready { border-color: #97d8cf; }
.module-link { color: inherit; text-decoration: none; transition: transform .16s ease, box-shadow .16s ease; }
.module-link:hover { transform: translateY(-2px); box-shadow: 0 16px 38px rgba(11,52,67,.10); }
.module p { margin: 0; color: var(--muted); }
.module-icon { display: grid; place-items: center; width: 42px; height: 42px; border-radius: 13px; background: #e7f4f2; color: #08796e; font-size: 14px; font-weight: 900; }
@media (max-width: 720px) {
  .card { padding: 30px 22px; border-radius: 20px; }
  .hero-logo { width: 100%; margin-top: -20px; margin-bottom: -22px; }
  .auth-logo-link { margin: -20px -4px -28px; }
  .auth-logo { width: 100%; }
  .module-grid { grid-template-columns: 1fr; }
  .topbar .brand { font-size: 0; gap: 0; }
}
.pwa-install { position: fixed; z-index: 90; right: 16px; bottom: 16px; left: 16px; display: grid; grid-template-columns: minmax(0,1fr) auto auto; align-items: center; gap: 10px; max-width: 680px; margin: auto; padding: 12px 13px; color: #12323d; background: rgba(255,255,255,.97); border: 1px solid #cfe1de; border-radius: 16px; box-shadow: 0 16px 38px rgba(11,52,67,.18); }
.pwa-install b,.pwa-install small { display: block; }.pwa-install b { font-size: 13px; }.pwa-install small { margin-top: 3px; color: #61757c; font-size: 9px; }
.pwa-install>button { min-height: 38px; padding: 0 12px; color: #fff; background: #08796e; border: 0; border-radius: 10px; font-size: 10px; font-weight: 900; }.pwa-install>.pwa-install-close { width: 34px; padding: 0; color: #61757c; background: #eef4f3; font-size: 18px; }
.pwa-install p { grid-column: 1/-1; margin: 0; padding: 9px 10px; color: #4e676c; background: #eef7f5; border-radius: 10px; font-size: 9px; line-height: 1.45; }.pwa-install p[hidden] { display: none; }
