:root {
  color-scheme: light;
  font-family: system-ui, sans-serif;
  color: #152f3b;
  background: #edf3f5;
  --ink: #152f3b;
  --muted: #4c626c;
  --navy: #103447;
  --accent: #14677a;
  --line: #cfdee2;
  -webkit-tap-highlight-color: transparent;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  margin: 0;
  min-height: 100vh;
  isolation: isolate;
  --water-overlay: linear-gradient(140deg, #03243c70, #09374a22);
  -webkit-user-select: none;
  user-select: none;
  caret-color: transparent;
}
input, textarea {
  -webkit-user-select: text;
  user-select: text;
  caret-color: auto;
}
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
:focus { outline: none; }

.shell { width: min(100% - 48px, 1320px); margin-inline: auto; }

.site-header { background: #fcfefe; border-bottom: 1px solid var(--line); }
.header-inner { padding-block: 19px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand strong, .brand small { display: block; }
.brand strong { font-size: 1.15rem; line-height: 1.2; }
.brand small { margin-top: 3px; color: var(--muted); }
.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border-radius: 50%;
  background: var(--navy);
  color: #b8f2ed;
  font-size: 1.55rem;
  font-weight: 850;
  line-height: 1;
}

h1 { margin: 0 0 17px; font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -.055em; line-height: 1.02; }
h2 { margin: 0; line-height: 1.2; letter-spacing: -.027em; }
p { line-height: 1.5; }

time { display: block; margin-bottom: 8px; color: var(--muted); font-size: .8125rem; font-weight: 650; }

body:not([data-demo-session]) {
  background: #126383 linear-gradient(145deg, #062f49, #147e98 58%, #56adad);
}
body[data-demo-session] {
  --water-overlay: linear-gradient(145deg, #f0f8fae8, #e7f4f6bd 60%, #eef8f9e0);
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--water-overlay), url("/pool-water.webp") center / cover no-repeat;
}
.home {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100svh;
  padding-block: 24px;
}
.login {
  width: min(100%, 424px);
  padding: clamp(24px, 5.5vw, 38px);
  border: 1px solid #ffffffad;
  border-radius: 20px;
  background: #fcfefe;
  box-shadow: 0 20px 64px #04233b55;
}
.login h1 {
  margin: 0 0 25px;
  font-size: clamp(1.4rem, 5.2vw, 1.85rem);
  font-weight: 760;
  letter-spacing: -.035em;
  line-height: 1.16;
  text-align: center;
}
.login form { gap: 16px; }
.login label { font-size: .9375rem; }
.login input, .login button { min-height: 48px; }
.login input:focus-visible, .login button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.login button:hover { background: #154b62; }
.login button:disabled { cursor: wait; opacity: .65; }
form, .field { display: grid; gap: 13px; }
.field { gap: 5px; }
label { font-size: .875rem; font-weight: 650; }
input, button { width: 100%; min-height: 43px; border-radius: 8px; }
input { padding: 9px 11px; border: 1px solid #a9bfc6; background: #fcfefe; color: var(--ink); }
input[aria-invalid="true"] { border-color: #a12625; }
button { border: 0; padding: 9px 13px; background: var(--navy); color: white; font-weight: 750; cursor: pointer; }
.status { margin: 0; color: #a12625; font-size: .875rem; }
.status:empty { position: absolute; }

@media (max-width: 760px) {
  .shell { width: calc(100% - 32px); }
}
