:root,
[data-bs-theme="light"] {
  --bs-primary: #008080;
  --bs-primary-rgb: 0, 128, 128;
  --bs-body-bg: #fff;
  --bs-body-color: #263238;
  --bs-secondary-color: #4e4e4e;
  --bs-tertiary-bg: #e6f4f1;
  --bs-border-color: #d8e5e3;
  --bs-link-color: #006666;
  --bs-link-color-rgb: 0, 102, 102;
  --bs-link-hover-color: #004d4d;
  --bs-link-hover-color-rgb: 0, 77, 77;
  --site-accent: #006666;
  --site-surface: #fff;
  --site-tint: #e6f4f1;
  --site-peach: #f2b8a2;

}
[data-bs-theme="dark"] {
  --bs-body-bg: #101e20;
  --bs-body-color: #edf5f3;
  --bs-secondary-color: #b7cac7;
  --bs-tertiary-bg: #192d2f;
  --bs-border-color: #344a4b;
  --bs-link-color: #8cd9cf;
  --bs-link-color-rgb: 140, 217, 207;
  --bs-link-hover-color: #c1eee7;
  --bs-link-hover-color-rgb: 193, 238, 231;
  --site-accent: #8cd9cf;
  --site-surface: #17282a;
  --site-tint: #192d2f;

}
html { scroll-behavior: smooth; scroll-padding-top: 2rem; }
body { font-family: Arial, sans-serif; line-height: 1.7; }
h1, h2, h3 { line-height: 1.12; letter-spacing: -.045em; overflow-wrap: break-word; }
a { text-underline-offset: .25em; }
:focus-visible { outline: 3px solid var(--site-accent); outline-offset: 5px; }
.form-control:focus, .form-select:focus { border-color: var(--site-accent); box-shadow: 0 0 0 .25rem rgba(var(--bs-primary-rgb), .2); }
.btn { font-weight: 600; border-radius: .5rem; padding: .75rem 1.4rem; transition: background-color .2s, border-color .2s, transform .2s; }
.btn-lg { padding: 1rem 1.75rem; font-size: 1rem; }
.btn-primary { --bs-btn-bg: #008080; --bs-btn-border-color: #008080; --bs-btn-hover-bg: #006666; --bs-btn-hover-border-color: #006666; --bs-btn-active-bg: #004d4d; --bs-btn-active-border-color: #004d4d; --bs-btn-focus-shadow-rgb: 0, 128, 128; }
.btn-outline-primary { --bs-btn-color: var(--site-accent); --bs-btn-border-color: var(--site-accent); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: #006666; --bs-btn-hover-border-color: #006666; --bs-btn-active-bg: #004d4d; --bs-btn-active-border-color: #004d4d; --bs-btn-focus-shadow-rgb: 0, 128, 128; }
.site-header { position: relative; z-index: 10; background: var(--site-surface); border-bottom: 1px solid var(--bs-border-color); }
.site-header .navbar { min-height: 106px; }
.logo-surface { padding: .35rem .65rem; }
.logo-surface img { display: block; object-fit: contain; max-width: 100%; }
.theme-control { max-width: 11rem; }
.skip-link { position: absolute; z-index: 1100; padding: 1rem; background: var(--bs-body-bg); color: var(--bs-body-color); }

.auth-section { padding: 5rem 0; min-height: 70svh; background: var(--site-tint); }
.auth-panel { max-width: 35rem; padding: clamp(1.5rem, 4vw, 3rem); border: 1px solid var(--bs-border-color); border-radius: 1.5rem; background: var(--site-surface); }
.form-control { border-radius: .75rem; padding: .8rem 1rem; background-color: var(--bs-body-bg); }
.form-text ul { padding-left: 1.25rem; margin-bottom: 0; }
footer { background: var(--site-surface); }


/* Shared navigation and actions. */
.button {
      display: inline-flex;
      justify-content: center;
      align-items: center;
      gap: 18px;
      min-height: 46px;
      padding: 12px 22px;
      border: 1px solid transparent;
      border-radius: 8px;
      text-decoration: none;
      font-size: 14px;
      font-weight: bold;
      cursor: pointer;
      transition: background .2s;
    }
.button-primary {
      background: var(--primary);
      color: white;
    }
.button-primary:hover {
      background: var(--primary-dark);
      color: white;
    }
.button-outline {
      border-color: var(--border);
      background: white;
      color: var(--primary-dark);
    }
.button-outline:hover { background: var(--mint); }
.navigation {
      min-height: 94px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 32px;
    }
.brand {
      display: inline-flex;
      background: transparent;
      padding: 10px 15px;
      border-radius: 9px;
      flex-shrink: 0;
    }
.brand img {
      width: 165px;
      height: auto;
      display: block;
    }
.nav-content {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }
.nav-links {
      display: flex;
      gap: 30px;
      margin-inline: auto;
    }
.nav-actions {
      display: flex;
      gap: 10px;
    }
.menu-toggle {
      display: none;
      border: 1px solid var(--border);
      border-radius: 8px;
      background: white;
      padding: 10px 15px;
      color: var(--text);
      cursor: pointer;
    }

.site-header .navbar { min-height: 94px; padding: 0; }
.nav-content { flex-basis: auto; }
.nav-links, .nav-actions { flex-direction: row; }
.nav-links a { font-size: 14px; }
.site-footer { padding: 28px 20px; text-align: center; border-top: 1px solid var(--bs-border-color); font-size: 12px; }
@media (min-width: 901px) { .nav-content.collapse { display: flex !important; } }
@media (max-width: 900px) {
  .menu-toggle { display: block; }
  .nav-content { display: none; position: absolute; top: 82px; left: 24px; right: 24px; padding: 24px; border: 1px solid var(--bs-border-color); border-radius: 12px; background: var(--site-surface); z-index: 10; }
  .nav-content.show, .nav-content.collapsing { display: flex; flex-direction: column; align-items: stretch; }
  .nav-links { flex-direction: column; margin: 0; gap: 18px; }
}
/* Reference layout, isolated from authentication pages and Bootstrap defaults. */
.home-page {
      --primary: #008080;
      --primary-dark: #006666;
      --mint: #e6f4f1;
      --background: #f7fafa;
      --text: #263238;
      --muted: #4e4e4e;
      --border: #d8e5e3;
    }
.home-page * { box-sizing: border-box; }
html:has(.home-page) {
      scroll-behavior: smooth;
      scroll-padding-top: 100px;
    }
.home-page {
      margin: 0;
      color: var(--text);
      background: white;
      font-family: Arial, Helvetica, sans-serif;
      line-height: 1.65;
    }
.home-page button, .home-page input { font: inherit; }
.home-page a { color: var(--primary-dark); }
.home-page img { max-width: 100%; }
.home-page h1, .home-page h2, .home-page h3, .home-page p { margin-top: 0; }
.home-page h1, .home-page h2, .home-page h3 {
      line-height: 1.15;
      letter-spacing: -.035em;
    }
.home-page .container {
      width: min(1180px, calc(100% - 48px));
      margin-inline: auto;
    }
.home-page .skip-link {
      position: fixed;
      top: -100px;
      left: 16px;
      z-index: 100;
      background: white;
      padding: 12px;
    }
.home-page .skip-link:focus { top: 12px; }
.home-page :focus-visible {
      outline: 3px solid #f2b8a2;
      outline-offset: 5px;
    }
.home-page .button {
      display: inline-flex;
      justify-content: center;
      align-items: center;
      gap: 18px;
      min-height: 46px;
      padding: 12px 22px;
      border: 1px solid transparent;
      border-radius: 8px;
      text-decoration: none;
      font-size: 14px;
      font-weight: bold;
      cursor: pointer;
      transition: background .2s;
    }
.home-page .button-primary {
      background: var(--primary);
      color: white;
    }
.home-page .button-primary:hover {
      background: var(--primary-dark);
      color: white;
    }
.home-page .button-outline {
      border-color: var(--border);
      background: white;
      color: var(--primary-dark);
    }
.home-page .button-outline:hover { background: var(--mint); }
.home-page .site-header {
      position: absolute;
      inset: 0 0 auto;
      z-index: 10;
    }
.home-page .navigation {
      min-height: 94px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 32px;
    }
.home-page .brand {
      display: inline-flex;
      background: transparent;
      padding: 10px 15px;
      border-radius: 9px;
      flex-shrink: 0;
    }
.home-page .brand img {
      width: 165px;
      height: auto;
      display: block;
    }
.home-page .nav-content {
      flex: 1;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 24px;
    }
.home-page .nav-links {
      display: flex;
      gap: 30px;
      margin-inline: auto;
    }
.home-page .nav-links a {
      color: white;
      text-decoration: none;
      font-size: 14px;
    }
.home-page .nav-links a:hover { text-decoration: underline; }
.home-page .nav-actions {
      display: flex;
      gap: 10px;
    }
.home-page .menu-toggle {
      display: none;
      border: 1px solid var(--border);
      border-radius: 8px;
      background: white;
      padding: 10px 15px;
      color: var(--text);
      cursor: pointer;
    }
.home-page .hero {
      min-height: 100vh;
      min-height: 100svh;
      position: relative;
      display: flex;
      align-items: center;
      overflow: hidden;
      isolation: isolate;
      padding: 145px 0 110px;
      color: white;
      background:
        radial-gradient(ellipse at 90% 20%, #31796e 0, transparent 48%),
        linear-gradient(120deg, #102e31, #174b49);
    }
.home-page .hero::after {
      content: "";
      position: absolute;
      width: 650px;
      height: 650px;
      right: -190px;
      top: 15%;
      border: 1px solid #ffffff18;
      border-radius: 50%;
      box-shadow:
        0 0 0 70px #ffffff05,
        0 0 0 140px #ffffff04;
      z-index: -1;
      pointer-events: none;
    }
.home-page .eyebrow {
      color: var(--primary-dark);
      font-size: 11px;
      font-weight: bold;
      letter-spacing: .16em;
      text-transform: uppercase;
      margin-bottom: 22px;
    }
.home-page .hero .eyebrow { color: #b0e1d7; }
.home-page .hero h1 {
      max-width: 800px;
      margin-bottom: 28px;
      font-size: clamp(40px, 5.3vw, 72px);
      font-weight: 600;
    }
.home-page .hero h1 span { color: #a6e2d6; }
.home-page .hero-question {
      max-width: 580px;
      font-size: 21px;
      margin-bottom: 12px;
    }
.home-page .hero-description {
      max-width: 490px;
      color: #d5e4e0;
      font-size: 17px;
      margin-bottom: 32px;
    }
.home-page .hero-actions {
      display: flex;
      align-items: center;
      flex-wrap: wrap;
      gap: 25px;
    }
.home-page .hero-secondary {
      color: white;
      font-size: 14px;
      text-underline-offset: 5px;
    }
.home-page .hero-bottom {
      position: absolute;
      bottom: 26px;
      left: 0;
      right: 0;
      display: flex;
      justify-content: space-between;
      gap: 20px;
      border-top: 1px solid #ffffff25;
      padding-top: 18px;
      font-size: 12px;
      color: #c7dcd6;
    }
.home-page .hero-bottom a { color: inherit; }
.home-page .section { padding-block: 96px; }
.home-page .section h2 {
      font-size: clamp(32px, 3.7vw, 48px);
      font-weight: 600;
      margin-bottom: 24px;
    }
.home-page .section h2 span { color: var(--primary); }
.home-page .about-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 80px;
    }
.home-page .about-copy { color: var(--muted); }
.home-page .about-copy .lead {
      font-size: 23px;
      line-height: 1.5;
      color: var(--text);
    }
.home-page .care-note {
      margin-top: 28px;
      padding: 22px;
      border-left: 3px solid var(--primary);
      background: var(--mint);
      border-radius: 0 10px 10px 0;
    }
.home-page .features { background: var(--background); }
.home-page .section-heading {
      max-width: 720px;
      margin-bottom: 42px;
    }
.home-page .section-heading > p:last-child { color: var(--muted); }
.home-page .feature-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 20px;
    }
.home-page .feature-card {
      padding: 28px;
      background: white;
      border: 1px solid var(--border);
      border-radius: 14px;
    }
.home-page .feature-number {
      display: grid;
      place-items: center;
      width: 42px;
      height: 42px;
      margin-bottom: 24px;
      border-radius: 11px;
      background: var(--mint);
      color: var(--primary-dark);
      font-size: 13px;
      font-weight: bold;
    }
.home-page .feature-card h3 {
      font-size: 20px;
      margin-bottom: 12px;
    }
.home-page .feature-card p {
      color: var(--muted);
      font-size: 14px;
      margin-bottom: 0;
    }
.home-page .register { background: var(--mint); }
.home-page .register-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      align-items: center;
      gap: 85px;
    }
.home-page .register-copy > p:last-child {
      max-width: 420px;
      color: var(--muted);
    }
.home-page .form-panel {
      padding: 38px;
      background: white;
      border: 1px solid var(--border);
      border-radius: 16px;
      box-shadow: 0 18px 50px #16483f0c;
    }
.home-page .form-panel h3 {
      margin-bottom: 10px;
      font-size: 29px;
    }
.home-page .form-intro {
      color: var(--muted);
      font-size: 14px;
      margin-bottom: 26px;
    }
.home-page .registration-fields .field { margin-bottom: 22px; }
.home-page .registration-fields .field label {
      display: block;
      margin-bottom: 8px;
      font-size: 14px;
      font-weight: bold;
    }
.home-page .registration-fields .field input {
      display: block;
      width: 100%;
      min-height: 50px;
      padding: 12px 14px;
      border: 1px solid #c9d9d6;
      border-radius: 8px;
      background: #fcfdfd;
      color: var(--text);
    }
.home-page .registration-fields .field input:focus {
      outline: 2px solid var(--primary);
      outline-offset: 2px;
    }
.home-page .registration-fields .field input[aria-invalid="true"] { border-color: #a32323; }
.home-page .registration-fields .field-error {
      margin-top: 7px;
      color: #a32323;
      font-size: 13px;
    }
.home-page .form-panel button { width: 100%; }
.home-page .login-hint {
      margin: 22px 0 0;
      text-align: center;
      font-size: 13px;
    }
.home-page .alert {
      padding: 15px;
      border-radius: 8px;
      margin-bottom: 18px;
      background: #edf6f4;
    }
.home-page .alert-error {
      background: #fff0ef;
      color: #8d2525;
    }
.home-page .messages { margin-bottom: 24px; }
.home-page .site-footer {
      padding: 28px 20px;
      text-align: center;
      color: var(--muted);
      font-size: 12px;
      border-top: 1px solid var(--border);
      background: var(--background);
    }
@media (max-width: 900px) {
.home-page .menu-toggle { display: block; }
.home-page .nav-content {
        display: none;
        position: absolute;
        top: 82px;
        left: 24px;
        right: 24px;
        padding: 24px;
        background: white;
        border: 1px solid var(--border);
        border-radius: 12px;
        box-shadow: 0 15px 35px #0002;
      }
.home-page .nav-content.show {
        display: flex;
        flex-direction: column;
        align-items: stretch;
      }
.home-page .nav-links {
        flex-direction: column;
        margin: 0;
        gap: 18px;
      }
.home-page .nav-links a { color: var(--text); }
.home-page .about-grid, .home-page .register-grid { gap: 40px; }
.home-page .feature-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
.home-page .section { padding-block: 72px; }
}
@media (max-width: 600px) {
.home-page .container { width: calc(100% - 32px); }
.home-page .brand img { width: 140px; }
.home-page .hero { padding-top: 130px; }
.home-page .hero-question { font-size: 18px; }
.home-page .hero-description { font-size: 15px; }
.home-page .hero-bottom { font-size: 10px; }
.home-page .hero-bottom > span { max-width: 160px; }
.home-page .about-grid, .home-page .register-grid, .home-page .feature-grid {
        grid-template-columns: 1fr;
      }
.home-page .section { padding-block: 60px; }
.home-page .form-panel { padding: 28px 22px; }
}
@media (prefers-reduced-motion: reduce) {
html:has(.home-page) { scroll-behavior: auto; }
.home-page * { transition: none !important; }
}

.home-page .container { max-width: none; padding-inline: 0; }
.home-page { --primary: #008080; --primary-dark: #006666; --mint: #e6f4f1; --background: #f7fafa; --text: #263238; --muted: #4e4e4e; --border: #d8e5e3; --reference-surface: #fff; --input-bg: #fcfdfd; --input-border: #c9d9d6; }
[data-bs-theme="dark"] .home-page { --primary: #8cd9cf; --primary-dark: #8cd9cf; --mint: #192d2f; --background: #101e20; --text: #edf5f3; --muted: #b7cac7; --border: #344a4b; --reference-surface: #17282a; --input-bg: #101e20; --input-border: #344a4b; background: var(--reference-surface); }
.home-page h1, .home-page h2, .home-page h3 { line-height: 1.15; letter-spacing: -.035em; }
.home-page h3 { font-weight: 700; }
.home-page p { margin-bottom: 1em; }
.home-page .eyebrow { margin-bottom: 22px; }
.home-page .hero h1 { margin-bottom: 28px; }
.home-page .hero-question { margin-bottom: 12px; }
.home-page .hero-description { margin-bottom: 32px; font-weight: 400; }
.home-page .hero { display: flex; }
.home-page .site-header { background: transparent; border: 0; }
.home-page .navigation { padding: 0; }
.home-page .brand { margin: 0; }
.home-page .brand img { width: 165px; }
.home-page .nav-links a { padding: 0; }
.home-page .nav-actions { align-items: center; flex-wrap: wrap; }
.home-page .nav-actions form { margin: 0; }
.home-page .theme-control { max-width: 10rem; }
.home-page .button-primary { background: #008080; color: white; }
.home-page .button-primary:hover { background: #006666; }
.home-page .button-outline, .home-page .feature-card, .home-page .form-panel { background: var(--reference-surface); }
.home-page .feature-card { height: auto; transition: none; }
.home-page .feature-card:hover { transform: none; border-color: var(--border); }
.home-page .feature-card p { margin: 0; }
.home-page .about-copy .lead { font-weight: 400; }
.home-page .about-grid, .home-page .register-grid, .home-page .feature-grid { display: flex; margin: 0; --bs-gutter-x: 0; --bs-gutter-y: 0; }
.home-page .about-grid > *, .home-page .register-grid > * { width: calc((100% - 80px) / 2); padding: 0; }
.home-page .register-grid > * { width: calc((100% - 85px) / 2); }
.home-page .feature-grid > * { width: calc((100% - 40px) / 3); padding: 0; display: flex; }
.home-page .feature-grid .feature-card { width: 100%; }
.home-page .form-panel { padding: 38px; }
.home-page .form-panel .form-intro { margin-bottom: 26px; }
.home-page .registration-fields > .mb-4 { margin-bottom: 22px !important; }
.home-page .registration-fields .form-label { display: block; margin-bottom: 8px; font-size: 14px; font-weight: 700 !important; }
.home-page .registration-fields .form-control { min-height: 50px; padding: 12px 14px; border: 1px solid var(--input-border); border-radius: 8px; background-color: var(--input-bg); color: var(--text); font: inherit; }
.home-page .registration-fields .form-control:focus { outline: 2px solid var(--primary); outline-offset: 2px; box-shadow: none; }
.home-page .registration-fields .is-invalid { border-color: var(--bs-danger); }
.home-page .login-hint { margin: 22px 0 0; }
.home-page .site-footer { background: var(--background); }
.home-page .site-footer small { font-size: inherit; }
.home-page .planned-notice { font-size: 13px; color: var(--muted); margin-top: -24px; margin-bottom: 24px; }
@media (min-width: 901px) {
  .home-page .nav-content.collapse { display: flex !important; }
}
@media (max-width: 900px) {
  .home-page .nav-content { background: var(--reference-surface); max-height: calc(100svh - 100px); overflow-y: auto; }
  .home-page .nav-content.collapsing { display: flex; flex-direction: column; align-items: stretch; height: auto; transition: none; }
  .home-page .nav-links { padding: 0; }
  .home-page .about-grid > *, .home-page .register-grid > * { width: calc((100% - 40px) / 2); }
  .home-page .feature-grid > * { width: calc((100% - 20px) / 2); }
}
@media (max-width: 600px) {
  .home-page .brand img { width: 140px; }
  .home-page .about-grid > *, .home-page .register-grid > *, .home-page .feature-grid > * { width: 100%; }
  .home-page .form-panel { padding: 28px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}

.home-page .nav-content { flex-basis: auto; }
.home-page .nav-links, .home-page .nav-actions { flex-direction: row; }
.home-page .about-grid > *, .home-page .register-grid > *, .home-page .feature-grid > * { flex: none; }
@media (max-width: 900px) { .home-page .nav-links { flex-direction: column; } }

[data-bs-theme="dark"] .button-outline,
[data-bs-theme="dark"] .menu-toggle { background: var(--site-surface); color: var(--bs-body-color); border-color: var(--bs-border-color); }
[data-bs-theme="dark"] .home-page .alert { background: var(--mint); color: var(--text); }
[data-bs-theme="dark"] .home-page .alert-danger { background: var(--bs-danger-bg-subtle); color: var(--bs-danger-text-emphasis); }

.brand img.logo-on-dark { display: none; }
[data-bs-theme="dark"] .brand img.logo-on-light { display: none; }
[data-bs-theme="dark"] .brand img.logo-on-dark { display: block; }
/* The homepage header remains on a dark gradient in both themes. */
.home-page .brand img.logo-on-light { display: none; }
.home-page .brand img.logo-on-dark { display: block; }
