:root {
  font-family: "Segoe UI", system-ui, sans-serif;
  color: #122744;
  background: #edf2f8;
  font-synthesis: none;
  line-height: 1.55;
  --blue: #194370;
  --ink: #112843;
  --line: #ced9e7;
}
* { box-sizing: border-box; }
body { margin: 0; }
.brand {
  display: flex; align-items: center; gap: 1.3rem; min-height: 5.25rem;
  padding: .7rem max(1rem, calc((100% - 72rem) / 2)); background: #fff;
  border-bottom: 1px solid var(--line); font-weight: 650;
}
.brand img { width: 8rem; max-width: 25vw; height: 2.8rem; object-fit: contain; display: block; }
.brand span { border-left: 1px solid var(--line); padding-left: 1.3rem; }
main { margin: 3.2rem auto; padding: 0 1.25rem; max-width: 74.5rem; }
h1, h2 { margin: 0 0 .45rem; color: var(--ink); line-height: 1.2; }
h1 { font-size: clamp(1.85rem, 3vw, 2.9rem); letter-spacing: -.03em; }
h2 { font-size: 1.3rem; }
p { color: #445a75; margin: 0 0 1.25rem; }
.panel {
  border: 1px solid var(--line); border-radius: 1rem; background: #fff;
  padding: clamp(1.25rem, 4vw, 2.25rem); box-shadow: 0 6px 20px #213d6010;
}
.login { max-width: 30rem; margin: clamp(1rem, 10vh, 7rem) auto; }
form, .fields { display: grid; gap: 1rem; }
label { display: grid; gap: .3rem; font-weight: 650; }
input:not([type=checkbox]) {
  min-height: 2.75rem; width: 100%; border: 1px solid #aebfd4; border-radius: .45rem;
  background: #fbfdff; padding: .5rem .7rem; font: inherit; color: inherit;
}
input[type=checkbox] { width: 1.1rem; height: 1.1rem; accent-color: var(--blue); }
:focus-visible { outline: 3px solid #0075b8; outline-offset: 3px; }
button, .button {
  display: inline-flex; justify-content: center; align-items: center; min-height: 2.75rem;
  border: 1px solid var(--blue); border-radius: .5rem; background: var(--blue); color: #fff;
  padding: .5rem 1rem; font: inherit; font-weight: 650; text-align: center; text-decoration: none; cursor: pointer;
}
button:hover, .button:hover { background: #0f3156; }
button:disabled { opacity: .55; cursor: not-allowed; }
.secondary { background: #fff; color: var(--blue); }
.secondary:hover { background: #e2eaf4; }
.help { margin: 1.25rem 0 0; font-size: .9rem; }
.heading { display: flex; align-items: start; justify-content: space-between; gap: .8rem 1.25rem; flex-wrap: wrap; }
.actions { display: flex; flex-wrap: wrap; gap: .6rem; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); gap: 1rem; }
.card { border-top: 4px solid #017d9a; display: flex; flex-direction: column; }
.card form { margin-top: auto; justify-content: start; }
.admin { margin-bottom: 1.5rem; }
.admin form { margin-top: 1rem; }
.admin button { justify-self: start; }
.fields, fieldset { grid-template-columns: repeat(auto-fit, minmax(min(100%, 14rem), 1fr)); }
fieldset { display: grid; gap: .85rem; margin: 0; padding: 1rem; border: 1px solid var(--line); border-radius: .45rem; }
legend { font-weight: 700; padding: 0 .3rem; }
.grant { border: 1px solid var(--line); padding: .7rem; border-radius: .45rem; }
.grant label:not(.toggle) { margin-top: .4rem; font-size: .875rem; }
.account-select { position: relative; display: block; min-width: 0; }
.account-select::after {
  position: absolute; top: 1.05rem; right: .85rem; width: .45rem; height: .45rem;
  border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
  content: ""; transform: rotate(45deg); pointer-events: none;
}
.account-select select {
  appearance: none; width: 100%; min-width: 0; min-height: 2.75rem; padding: .45rem 2rem .45rem .7rem;
  border: 1px solid #aebfd4; border-radius: .45rem; background: #fbfdff; color: inherit; font: inherit;
}
.toggle { display: flex; align-items: center; gap: .4rem; }
.person { margin: .6rem 0; padding: 0; }
.person summary { display: flex; justify-content: space-between; align-items: center; gap: .75rem; padding: 1rem 1.25rem; cursor: pointer; }
summary small { display: block; font-size: .9rem; overflow-wrap: anywhere; }
.state { font-size: .875rem; color: #36506e; }
.person-body { padding: 0 1.25rem 1rem; }
.message { background: #e0f4e9; border: 1px solid #93c4ad; border-radius: .5rem; padding: .75rem 1rem; margin-bottom: 1rem; }
.error { background: #fff1ed; border-color: #deb4ac; color: #852821; }
.skip { position: absolute; left: -100rem; }
.skip:focus { left: 1rem; top: 1rem; background: #fff; padding: .5rem; }
@media (max-width: 34rem) {
  main { margin-top: 1.5rem; }
  .brand { gap: .65rem; }
  .brand span { padding-left: .65rem; }
}
@font-face {
  font-family: Poppins;
  src: url('/fonts/poppins-latin-400-normal.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url('/fonts/poppins-latin-500-normal.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Poppins;
  src: url('/fonts/poppins-latin-600-normal.woff2') format('woff2');
  font-weight: 600;
  font-display: swap;
}


.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  min-height: 100vh;
  min-height: 100dvh;
  background: #fff;
  font-family: Poppins, "Segoe UI", sans-serif;
  color: #172a3a;
}
.auth-brand {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: space-between;
  padding: 2.5rem clamp(2rem, 4vw, 5.625rem) 2rem;
  background: radial-gradient(ellipse at 82% 60%, #1c4b61 1%, transparent 69%), #112d41;
}
.auth-brand::after {
  position: absolute;
  z-index: -1;
  inset: 7% -19% 0 24%;
  content: "";
  background-image: linear-gradient(#99dcf027 1px, transparent 1px), linear-gradient(90deg, #99dcf027 1px, transparent 1px);
  background-size: 2rem 2rem;
  mask-image: radial-gradient(ellipse closest-side, #000, transparent);
  transform: rotate(-10deg);
  pointer-events: none;
}
.auth-logo { margin-left: -.45rem; }
.auth-logo img { display: block; width: 11.5rem; height: auto; }
.auth-story { margin: 3.5rem 0 4.25rem; max-width: 46rem; }
.auth-symbol {
  display: grid;
  place-items: center;
  width: 3.55rem;
  height: 3.55rem;
  margin-bottom: 1.4rem;
  border: 1px solid #467185;
  border-radius: .95rem;
  background: #24556b;
  color: #cbfaec;
}
.auth-symbol svg, .auth-foot svg {
  fill: none;
  stroke: currentColor;
  stroke-linejoin: round;
  stroke-linecap: round;
}
.auth-symbol svg { width: 1.8rem; height: 1.8rem; stroke-width: 1.65; }
.auth-title {
  max-width: 44rem;
  margin: 0;
  color: #fff;
  font-size: clamp(2.35rem, 4.25vw, 4.625rem);
  font-weight: 600;
  line-height: 1.09;
  letter-spacing: -.058em;
}
.auth-description { max-width: 26rem; margin: 1.05rem 0 0; color: #d4e5ee; }
.auth-foot { display: flex; align-items: center; gap: .5rem; margin: 0; color: #c6dbe7; font-size: .875rem; }
.auth-foot svg { width: 1.1rem; height: 1.1rem; stroke-width: 1.55; }
.auth-main { display: grid; place-items: center; width: 100%; max-width: none; margin: 0; padding: 2rem clamp(1.5rem, 5vw, 3.5rem); }
.auth-form { width: min(100%, 24.75rem); }
.auth-form h1 { margin-bottom: .45rem; font-size: clamp(1.65rem, 2.2vw, 1.9rem); font-weight: 600; line-height: 1.2; letter-spacing: -.045em; }
.auth-intro { margin-bottom: 1.5rem; color: #526a7c; }
.auth-form form { gap: .85rem; }
.auth-form label { gap: .35rem; font-size: .9rem; font-weight: 500; }
.auth-form input:not([type=hidden]) { min-height: 2.85rem; border-color: #c9d7e3; background: #f4f8fc; font-size: 1rem; }
.auth-form input::placeholder { color: #657a8c; }
.auth-form button { min-height: 2.85rem; margin-top: .2rem; border-color: #004b6e; background: #004b6e; font-weight: 600; }
.auth-form button:hover { background: #07354d; }
.auth-form .help { margin-top: 1.15rem; color: #526a7c; }
.skip:focus { z-index: 2; }
@media (max-width: 48rem) {
  .auth-layout { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  .auth-brand { padding: 1.25rem 1.5rem 1.55rem; }
  .auth-brand::after { inset: -10% -18% -20% 32%; }
  .auth-story { margin: 1.15rem 0 0; }
  .auth-logo img { width: 8.5rem; }
  .auth-title { max-width: 28rem; font-size: clamp(1.65rem, 6vw, 2.35rem); }
  .auth-description { margin-top: .5rem; }
  .auth-symbol, .auth-foot { display: none; }
  .auth-main { align-items: start; padding-top: clamp(1.85rem, 8vh, 3.25rem); }
}
