/* ── Color tokens ──────────────────────────────── */
:root {
  --bg-950: #050E24;
  --bg-900: #0A1B3D;
  --bg-glow: #173A7A;
  --primary: #2563EB;
  --primary-dk: #1D4ED8;
  --primary-lt: #3B7BF5;
  --aqua: #38BDF8;
  --aqua-200: #BAE6FD;
  --amber: #FB7185;
  --paper: #ffffff;
  --ink: #0C1B33;
  --muted: #5B6B85;
  --line: #DDE6F2;
  --foot: #8290A8;
  --ease: cubic-bezier(.22, .61, .36, 1);
}

/* ── Reset & base ──────────────────────────────── */
*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: 'Outfit', system-ui, sans-serif;
  background: var(--bg-900);
  color: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

/* ── Decorative background ─────────────────────── */
.bg-scene {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background: radial-gradient(120% 120% at 12% 18%,
      var(--bg-glow) 0%, var(--bg-900) 42%, var(--bg-950) 100%);
}

.bg-scene::before {
  content: "";
  position: absolute;
  width: 52vw;
  height: 52vw;
  left: -12vw;
  bottom: -18vw;
  background: radial-gradient(circle, rgba(251, 113, 133, .18) 0%, transparent 62%);
  filter: blur(6px);
}

.bg-scene::after {
  content: "";
  position: absolute;
  width: 46vw;
  height: 46vw;
  right: -14vw;
  top: -16vw;
  background: radial-gradient(circle, rgba(56, 189, 248, .22) 0%, transparent 60%);
}

/* ── Grid overlay ──────────────────────────────── */
.grid-overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
  opacity: .5;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(120% 90% at 30% 30%, #000 0%, transparent 75%);
  mask-image: radial-gradient(120% 90% at 30% 30%, #000 0%, transparent 75%);
}

/* ── Eye / halo SVG ────────────────────────────── */
.halo {
  position: fixed;
  z-index: 0;
  left: -6vw;
  top: 50%;
  transform: translateY(-50%);
  width: min(760px, 64vw);
  aspect-ratio: 1;
  pointer-events: none;
  opacity: .9;
}

.halo svg {
  width: 100%;
  height: 100%;
  display: block;
  animation: spin 120s linear infinite;
  transform-origin: 50% 50%;
}

.halo .breathe {
  animation: breathe 9s var(--ease) infinite;
  transform-origin: 50% 50%;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes breathe {

  0%,
  100% {
    opacity: .55;
  }

  50% {
    opacity: 1;
  }
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(16px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

/* ── Shell (stacking layer) ────────────────────── */
.shell {
  position: relative;
  z-index: 2;
}

/* ── Topbar ────────────────────────────────────── */
.topbar {
  padding: 26px clamp(20px, 5vw, 64px);
}

.roche-logo {
  height: 39px;
  filter: brightness(0) invert(1);
  opacity: .92;
}

/* ── Stage container override ──────────────────── */
.stage-container {
  max-width: 1200px;
  padding-left: clamp(20px, 5vw, 64px);
  padding-right: clamp(20px, 5vw, 64px);
  padding-top: clamp(16px, 3vh, 40px);
  padding-bottom: 40px;
}

/* Expand Bootstrap row gutters for a wider column gap.
    Inner gap = 2 × col-padding = clamp(32px,6vw,88px).
    Negative row margin cancels the outer col padding so
    stage-container padding controls the page edge spacing. */
.content-row {
  margin-left: clamp(-44px, -3vw, -16px) !important;
  margin-right: clamp(-44px, -3vw, -16px) !important;
}

.content-row>[class*="col"] {
  padding-left: clamp(16px, 3vw, 44px) !important;
  padding-right: clamp(16px, 3vw, 44px) !important;
}

/* ── Brand column ──────────────────────────────── */
.brand-col {
  animation: rise .8s var(--ease) both;
}

.eyebrow,
.headline,
.lede,
.assurances li {
  text-shadow: 0 2px 18px rgba(5, 14, 36, .85);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--aqua-200);
  margin-bottom: 28px;
}

.eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: linear-gradient(90deg, var(--amber), var(--aqua));
}

.headline {
  font-weight: 600;
  font-size: clamp(2.1rem, 4.3vw, 3.35rem);
  line-height: 1.06;
  letter-spacing: -.025em;
  margin-bottom: 20px;
}

.headline em {
  font-style: normal;
  background: linear-gradient(100deg, var(--amber), var(--aqua));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.lede {
  font-weight: 300;
  font-size: 1.075rem;
  line-height: 1.6;
  color: #CBD8EE;
  max-width: 440px;
  margin-bottom: 34px;
}

.assurances {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
}

.assurances li {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: .85rem;
  color: #B4C4DE;
  font-weight: 300;
}

.assurances svg {
  flex: none;
  color: var(--aqua);
}

/* ── Login card (Bootstrap .card override) ─────── */
.login-card {
  background: var(--paper) !important;
  color: var(--ink);
  border-radius: 18px !important;
  border: 1px solid rgba(255, 255, 255, .6) !important;
  box-shadow: 0 24px 60px -20px rgba(5, 16, 42, .55), 0 2px 8px rgba(5, 16, 42, .20) !important;
  animation: rise .8s .1s var(--ease) both;
}

.login-card .card-body {
  padding: 34px 36px 30px;
}

.brandlogo {
  display: block;
  margin: 0 auto 20px;
  width: 186px;
  height: auto;
}

.login-card h1 {
  font-size: 1.35rem;
  font-weight: 600;
  letter-spacing: -.02em;
  margin-bottom: 6px;
  text-align: center;
}

.card-sub {
  font-size: .88rem;
  color: var(--muted);
  font-weight: 300;
  margin-bottom: 26px;
  line-height: 1.5;
  text-align: center;
}

/* ── Form overrides ────────────────────────────── */
.form-group label {
  font-size: .8rem;
  font-weight: 500;
  color: #2C3A52;
  margin-bottom: 7px;
  letter-spacing: .01em;
}

.input-wrap {
  position: relative;
}

.field-icon {
  position: absolute;
  left: 14px;
  top: 25px;
  transform: translateY(-50%);
  color: #93A0B8;
  pointer-events: none;
  display: flex;
  align-items: center;
  z-index: 4;
}

.input-wrap .form-control {
  height: 50px !important;
  padding: 0 14px 0 42px !important;
  font-family: 'Outfit', sans-serif;
  font-size: .95rem;
  font-weight: 400;
  color: var(--ink) !important;
  border: 1.5px solid var(--line) !important;
  border-radius: 11px !important;
  transition: border-color .2s var(--ease), box-shadow .2s var(--ease);
}

.input-wrap .form-control::placeholder {
  color: #A0AEC4;
  font-weight: 300;
}

.input-wrap .form-control:focus {
  border-color: var(--aqua) !important;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, .18) !important;
}

/* ── Custom checkbox (Bootstrap 4 component) ───── */
.custom-control-label {
  font-size: .85rem;
  color: #2C3A52;
  cursor: pointer;
  line-height: 1.5;
}

.custom-control-label::before {
  border: 1.5px solid #C3CFE0 !important;
  border-radius: 6px !important;
  background: #fff;
  top: .1rem;
}

.custom-control-label::after {
  top: .1rem;
}

.custom-control-input:checked~.custom-control-label::before {
  background-color: var(--primary) !important;
  border-color: var(--primary) !important;
}

.custom-control-input:focus~.custom-control-label::before {
  box-shadow: 0 0 0 4px rgba(56, 189, 248, .28) !important;
}

.custom-control-input:focus:not(:checked)~.custom-control-label::before {
  border-color: var(--aqua) !important;
}

/* ── Buttons ────────────────────────────────────── */
.btn-signin {
  width: 100%;
  height: 52px;
  border-radius: 12px !important;
  font-family: 'Outfit', sans-serif;
  font-size: .98rem;
  font-weight: 600;
  background: var(--primary);
  color: #fff;
  border: 1.5px solid transparent;
  box-shadow: 0 10px 22px -10px rgba(37, 99, 235, .7);
  transition: background .22s var(--ease), transform .22s var(--ease), box-shadow .22s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
}

.btn-signin:hover {
  background: var(--primary-lt);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 16px 30px -12px rgba(37, 99, 235, .75);
}

.btn-signin:active {
  transform: translateY(0);
}

.btn-signin:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, .35) !important;
}

.btn-roche {
  width: 100%;
  height: 52px;
  border-radius: 12px !important;
  font-family: 'Outfit', sans-serif;
  font-size: .98rem;
  font-weight: 600;
  background: #fff;
  color: var(--primary);
  border: 1.5px solid var(--line);
  transition: border-color .22s var(--ease), background .22s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
}

.btn-roche:hover {
  border-color: var(--aqua);
  background: #f5f8ff;
  color: var(--primary);
}

.btn-roche:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, .35) !important;
}

/* ── Google sign-in button ─────────────────────── */
.btn-google {
  width: 100%;
  height: 52px;
  margin-top: 12px;
  border-radius: 12px !important;
  font-family: 'Outfit', sans-serif;
  font-size: .98rem;
  font-weight: 500;
  background: #fff;
  color: #3C4043;
  border: 1.5px solid var(--line);
  transition: border-color .22s var(--ease), background .22s var(--ease), box-shadow .22s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  cursor: pointer;
}

.btn-google:hover {
  border-color: #C3CFE0;
  background: #f7f9fc;
  color: #3C4043;
}

.btn-google:focus {
  outline: none;
  box-shadow: 0 0 0 4px rgba(56, 189, 248, .35) !important;
}

.btn-google svg {
  flex: none;
}

/* ── Turnstile widget wrapper ──────────────────── */
.turnstile-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 18px;
  min-height: 65px;
}

/* ── Button divider ──────────────────────────────── */
.btn-divider {
  border: none;
  border-top: 1px solid var(--line);
  margin: 20px 0;
}

/* ── Card footnote ──────────────────────────────── */
.card-note {
  margin-top: 22px;
  font-size: .76rem;
  color: var(--muted);
  text-align: center;
  line-height: 1.5;
  font-weight: 300;
  margin-bottom: 0;
}

.card-note a {
  color: var(--primary-dk);
  text-decoration: none;
  font-weight: 500;
}

.card-note a:hover {
  text-decoration: underline;
}

/* ── Footer ─────────────────────────────────────── */
.site-footer {
  position: relative;
  z-index: 2;
  border-top: 1px solid rgba(255, 255, 255, .10);
  padding: 22px clamp(20px, 5vw, 64px);
}

.footer-inner {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px 28px;
}

.footer-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.footer-nav a {
  color: var(--foot);
  text-decoration: none;
  font-size: .72rem;
  font-weight: 300;
  transition: color .18s;
}

.footer-nav a:hover {
  color: #fff;
}

.footer-cookies {
  border: 1px solid rgba(255, 255, 255, .22);
  padding: 5px 14px;
  border-radius: 8px;
}

.footer-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 18px;
  font-size: .74rem;
  color: var(--foot);
}

.footer-disclaimer {
  max-width: 1200px;
  margin: 14px auto 0;
  font-size: .72rem;
  line-height: 1.55;
  color: var(--foot);
  font-weight: 300;
}

.footer-disclaimer p {
  margin-bottom: .6em;
}

.footer-disclaimer p:last-child {
  margin-bottom: 0;
}

.footer-disclaimer a {
  color: var(--foot);
}

.footer-disclaimer a:hover {
  color: #fff;
}

/* ── Responsive tweaks ──────────────────────────── */
@media (max-width: 991px) {
  .brand-col {
    text-align: center;
  }

  .eyebrow {
    margin-bottom: 20px;
  }

  .assurances {
    justify-content: center;
  }

  .lede {
    margin-left: auto;
    margin-right: auto;
  }

  .login-card {
    max-width: 452px;
    margin: 0 auto;
  }

  .halo {
    opacity: .32;
    top: 20%;
  }
}

@media (max-width: 520px) {
  .login-card .card-body {
    padding: 28px 22px 26px;
  }

  .headline {
    font-size: 2rem;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

/* Target the OneTrust button */
#ot-sdk-btn.ot-sdk-show-settings {
  background-color: unset !important;
  line-height: unset !important;
  color: var(--foot) !important;
  border: 1px solid rgba(255, 255, 255, .22) !important;
  padding: 5px 14px !important;
  border-radius: 8px !important;
}

#ot-sdk-btn.ot-sdk-show-settings:hover {
  color: #fff !important;
}