body.bios-auth .auth-legal-footer {
  display: none;
}

/* Local concept: premium health-history artwork for desktop auth panels. */
@media (min-width: 981px) {
  body.bios-auth #screen-welcome .welcome-visual {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    border-left: 1px solid rgba(72, 124, 196, .12);
    background:
      radial-gradient(circle at 18% 10%, rgba(255, 255, 255, .96) 0, rgba(255, 255, 255, 0) 34%),
      radial-gradient(circle at 82% 22%, rgba(80, 169, 255, .30) 0, rgba(80, 169, 255, 0) 38%),
      radial-gradient(circle at 26% 92%, rgba(84, 103, 255, .18) 0, rgba(84, 103, 255, 0) 42%),
      linear-gradient(145deg, #f8fbff 0%, #dcecff 52%, #edf5ff 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
  }

  body.bios-auth #screen-welcome .welcome-visual::before {
    position: absolute;
    z-index: -1;
    inset: 0;
    background-image:
      linear-gradient(rgba(53, 113, 190, .045) 1px, transparent 1px),
      linear-gradient(90deg, rgba(53, 113, 190, .045) 1px, transparent 1px);
    background-size: 54px 54px;
    mask-image: radial-gradient(circle at 55% 50%, #000 0, transparent 76%);
    -webkit-mask-image: radial-gradient(circle at 55% 50%, #000 0, transparent 76%);
    content: "";
    pointer-events: none;
  }

  body.bios-auth #screen-welcome .welcome-visual::after {
    position: absolute;
    z-index: -1;
    top: 12%;
    left: 50%;
    width: 320px;
    height: 320px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(54, 145, 255, .25), rgba(76, 115, 255, .08) 48%, transparent 72%);
    filter: blur(10px);
    content: "";
    transform: translateX(-50%);
    pointer-events: none;
  }

  body.bios-auth #screen-welcome .biglogo {
    position: relative;
    z-index: 2;
    display: block;
    width: min(62%, 240px);
    max-width: 240px;
    height: auto;
    margin: -8px auto 2px;
    filter: drop-shadow(0 24px 34px rgba(55, 104, 210, .16));
  }

  body.bios-auth #screen-welcome .feature-row {
    position: relative;
    z-index: 2;
    display: grid;
    width: 100%;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  body.bios-auth #screen-welcome .feat {
    display: flex;
    min-width: 0;
    min-height: 132px;
    padding: 17px;
    border: 1px solid rgba(255, 255, 255, .82);
    border-radius: 16px;
    background: rgba(255, 255, 255, .64);
    box-shadow: 0 18px 44px -30px rgba(34, 83, 153, .50), inset 0 1px 0 rgba(255, 255, 255, .88);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    flex-direction: column;
    align-items: flex-start;
    gap: 7px;
    text-align: left;
  }

  body.bios-auth #screen-welcome .feat .tile {
    display: grid;
    width: 40px;
    height: 40px;
    margin-bottom: 4px;
    border: 1px solid rgba(255, 255, 255, .7);
    border-radius: 12px;
    color: #fff;
    background: linear-gradient(145deg, #087be4 0%, #58b8ff 100%);
    box-shadow: 0 12px 24px -14px rgba(5, 102, 205, .75);
    place-items: center;
  }

  body.bios-auth #screen-welcome .feat .tile svg {
    width: 21px;
    height: 21px;
  }

  body.bios-auth #screen-welcome .feat b {
    color: #10243e;
    font-size: 14px;
    font-weight: 680;
    line-height: 1.2;
  }

  body.bios-auth #screen-welcome .feat span {
    color: #5e7188;
    font-size: 11.5px;
    line-height: 1.35;
  }

  body.bios-auth #screen-about .ob-grid,
  body.bios-auth #screen-goal .ob-grid,
  body.bios-auth #screen-timeframe .ob-grid,
  body.bios-auth #screen-worries .ob-grid {
    align-items: stretch;
  }

  body.bios-auth #screen-about .ob-aside,
  body.bios-auth #screen-goal .ob-aside,
  body.bios-auth #screen-timeframe .ob-aside,
  body.bios-auth #screen-worries .ob-aside {
    display: flex;
    min-height: 520px;
  }

  body.bios-auth #screen-goal .ob-aside {
    min-height: 610px;
  }

  body.bios-auth #screen-about .about-aside,
  body.bios-auth #screen-goal .aside-card,
  body.bios-auth #screen-timeframe .aside-card,
  body.bios-auth #screen-worries .aside-card {
    position: relative;
    isolation: isolate;
    width: 100%;
    min-height: 100%;
    overflow: hidden;
    padding: 0;
    border: 1px solid rgba(81, 132, 194, .13);
    border-radius: 20px;
    background-color: #e9f3fd;
    background-image: url("/frontend/assets/auth-health-history-v1.jpg?v=20260825r2");
    background-repeat: no-repeat;
    background-position: center 18%;
    background-size: 126% auto;
    box-shadow: 0 24px 60px -38px rgba(28, 79, 151, .42), inset 0 1px 0 rgba(255, 255, 255, .8);
  }

  body.bios-auth #screen-about .about-aside::before,
  body.bios-auth #screen-goal .aside-card::before,
  body.bios-auth #screen-timeframe .aside-card::before,
  body.bios-auth #screen-worries .aside-card::before {
    position: absolute;
    z-index: 1;
    inset: 0;
    background:
      linear-gradient(180deg, rgba(255, 255, 255, .08) 0%, transparent 45%, rgba(224, 239, 253, .92) 100%);
    content: "";
    pointer-events: none;
  }

  body.bios-auth #screen-about .about-aside .info-i,
  body.bios-auth #screen-about .about-aside .aside-orb,
  body.bios-auth #screen-about .about-aside p,
  body.bios-auth #screen-goal .aside-card .info-i,
  body.bios-auth #screen-goal .aside-card .aside-orb,
  body.bios-auth #screen-goal .aside-card p,
  body.bios-auth #screen-timeframe .aside-card .info-i,
  body.bios-auth #screen-timeframe .aside-card > svg,
  body.bios-auth #screen-timeframe .aside-card p,
  body.bios-auth #screen-worries .aside-card .info-i,
  body.bios-auth #screen-worries .aside-card .aside-orb,
  body.bios-auth #screen-worries .aside-card p {
    display: none;
  }

  body.bios-auth #screen-about .about-aside h4,
  body.bios-auth #screen-goal .aside-card h4,
  body.bios-auth #screen-timeframe .aside-card h4,
  body.bios-auth #screen-worries .aside-card h4 {
    position: absolute;
    z-index: 2;
    right: 32px;
    bottom: 38px;
    left: 32px;
    max-width: 320px;
    margin: 0 auto;
    color: #0b1830;
    font-size: clamp(24px, 2vw, 30px);
    font-weight: 700;
    line-height: 1.08;
    letter-spacing: -.025em !important;
    text-align: center;
    text-wrap: balance;
  }

  body.bios-auth #screen-building .bios-build-mark {
    display: block;
    width: min(300px, 42vw);
    max-width: 300px;
    height: auto;
    margin: 8px auto 0;
    object-fit: contain;
    filter: drop-shadow(0 22px 34px rgba(37, 104, 204, .16));
  }

  body.bios-auth #screen-welcome .bios-welcome-mark {
    display: block;
    width: min(48%, 190px);
    max-width: 190px;
    height: auto;
    margin: -10px auto 4px;
    object-fit: contain;
    filter: drop-shadow(0 20px 30px rgba(37, 104, 204, .18));
  }

  /* Full-screen onboarding: one continuous 50/50 flow after registration. */
  body.bios-auth #screen-welcome {
    min-height: 100svh;
    padding: 0 !important;
    background: #fff;
  }

  body.bios-auth #screen-welcome .card {
    width: 100vw;
    max-width: none;
    min-height: 100svh;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }

  body.bios-auth #screen-welcome .pane,
  body.bios-auth #screen-welcome .visual {
    min-height: 100svh;
    padding: 56px clamp(64px, 7vw, 112px);
  }

  body.bios-auth #screen-welcome .pane {
    padding-bottom: 128px;
  }

  body.bios-auth :is(#screen-about, #screen-goal, #screen-timeframe, #screen-worries, #screen-done) {
    min-height: 100svh;
    padding: 0 !important;
    background: #fff;
  }

  body.bios-auth :is(#screen-about, #screen-goal, #screen-timeframe, #screen-worries, #screen-done) .surface {
    display: grid;
    width: 100vw;
    max-width: none;
    min-height: 100svh;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr);
  }

  body.bios-auth :is(#screen-about, #screen-goal, #screen-timeframe, #screen-worries, #screen-done) .appbar {
    z-index: 3;
    grid-column: 1;
    grid-row: 1;
    width: 100%;
    margin: 0;
    padding: 44px clamp(64px, 7vw, 112px) 20px;
  }

  body.bios-auth :is(#screen-about, #screen-goal, #screen-timeframe, #screen-worries, #screen-done) .navrow {
    z-index: 3;
    grid-column: 1;
    grid-row: 2;
    width: 100%;
    margin: 0;
    padding: 0 clamp(64px, 7vw, 112px) 18px;
  }

  body.bios-auth :is(#screen-about, #screen-goal, #screen-timeframe, #screen-worries, #screen-done) .ob-grid {
    display: contents;
  }

  body.bios-auth :is(#screen-about, #screen-goal, #screen-timeframe, #screen-worries, #screen-done) .ob-main {
    grid-column: 1;
    grid-row: 3;
    min-height: 0;
    overflow: auto;
    padding: 22px clamp(64px, 7vw, 112px) 112px;
    justify-content: center;
  }

  body.bios-auth :is(#screen-about, #screen-goal, #screen-timeframe, #screen-worries, #screen-done) .ob-aside {
    z-index: 1;
    grid-column: 2;
    grid-row: 1 / 4;
    width: 100%;
    min-height: 100svh !important;
  }

  body.bios-auth :is(#screen-about, #screen-goal, #screen-timeframe, #screen-worries) .ob-aside .aside-card {
    width: 100%;
    min-height: 100svh;
    border: 0;
    border-radius: 0;
    background-position: center 18%;
    background-size: 112% auto;
    box-shadow: none;
  }

  body.bios-auth #screen-done .done-aside {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 100svh;
    border-left: 1px solid rgba(72, 124, 196, .12);
    background-color: #e9f3fd;
    background-image: url("/frontend/assets/auth-health-history-v1.jpg?v=20260825r2");
    background-repeat: no-repeat;
    background-position: center 18%;
    background-size: 112% auto;
  }

  body.bios-auth #screen-done .done-aside::before {
    position: absolute;
    z-index: 1;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, .06), transparent 48%, rgba(224, 239, 253, .94));
    content: "";
    pointer-events: none;
  }

  body.bios-auth #screen-done .done-aside > svg,
  body.bios-auth #screen-done .done-aside p {
    display: none;
  }

  body.bios-auth #screen-done .done-aside > div {
    position: absolute;
    z-index: 2;
    right: 40px;
    bottom: 48px;
    left: 40px;
  }

  body.bios-auth #screen-done .done-aside h4 {
    margin: 0;
    color: #0b1830;
    font-size: clamp(26px, 2.25vw, 34px);
    font-weight: 700;
    line-height: 1.08;
    text-align: center;
  }

  body.bios-auth #screen-building {
    min-height: 100svh;
    padding: 0 !important;
    background: #fff;
  }

  body.bios-auth #screen-building .surface {
    width: 100vw;
    max-width: none;
    min-height: 100svh;
    padding: 0 clamp(64px, 7vw, 112px) 112px;
    border: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }

  body.bios-auth #screen-building .appbar {
    margin: 0;
    padding-top: 44px;
  }

  body.bios-auth #screen-building .build-wrap {
    flex: 1;
    justify-content: center;
  }

  body.bios-auth #screen-about .choice-btn svg {
    display: none !important;
  }

  body.bios-auth #screen-about .choice-btn {
    justify-content: center;
    gap: 0;
  }

  body.bios-auth :is(#screen-welcome, #screen-about, #screen-goal, #screen-timeframe, #screen-worries, #screen-building, #screen-done) {
    position: relative;
  }

  body.bios-auth :is(#screen-welcome, #screen-about, #screen-goal, #screen-timeframe, #screen-worries, #screen-done) > .auth-legal-footer-screen {
    right: auto;
    bottom: clamp(28px, 3.4vh, 40px);
    left: clamp(48px, 3.5vw, 72px);
    width: calc(50% - clamp(96px, 7vw, 144px));
    transform: none;
  }

  body.bios-auth #screen-building > .auth-legal-footer-screen {
    right: auto;
    left: clamp(48px, 3.5vw, 72px);
    width: calc(100% - clamp(96px, 7vw, 144px));
    transform: none;
  }

  body.bios-auth #screen-register .pane > h1 {
    width: 100% !important;
    max-width: 460px !important;
    font-size: 40px !important;
    line-height: 1.06 !important;
    text-align: left !important;
  }

  body.bios-auth #screen-register .pane > h1,
  body.bios-auth #screen-register .pane > .lede,
  body.bios-auth #screen-register .pane > form,
  body.bios-auth #screen-register .pane > .auth-switch {
    transform: translateY(clamp(24px, 3vh, 42px));
  }

  body.bios-auth #screen-register .card,
  body.bios-auth #screen-login .login-card {
    width: 100vw !important;
    max-width: none !important;
    min-height: 100svh !important;
    grid-template-columns: minmax(0, 1fr) minmax(460px, 1fr) !important;
  }

  body.bios-auth #screen-register .pane,
  body.bios-auth #screen-login .login-pane {
    position: relative;
    padding-bottom: 148px !important;
  }

  body.bios-auth .auth-legal-footer {
    position: absolute;
    z-index: 3;
    right: auto;
    bottom: clamp(28px, 3.4vh, 40px);
    left: 50%;
    display: flex;
    width: calc(100% - 96px);
    max-width: none;
    transform: translateX(-50%);
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: clamp(12px, 2vw, 28px);
    color: #18304f;
    font-size: clamp(10px, .9vw, 14px);
    line-height: 1.45;
    white-space: nowrap;
  }

  body.bios-auth .auth-legal-meta {
    display: flex;
    align-items: center;
    gap: clamp(12px, 1.5vw, 22px);
    flex-wrap: nowrap;
  }

  body.bios-auth .auth-legal-locale {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 520;
  }

  body.bios-auth .auth-legal-locale svg {
    width: 20px;
    height: 20px;
    color: var(--premium-accent);
    flex: 0 0 auto;
  }

  body.bios-auth .auth-legal-footer a {
    width: fit-content;
    color: var(--premium-accent);
    font-size: inherit;
    font-weight: 520;
    text-decoration: none;
  }

  body.bios-auth .auth-legal-footer a:hover {
    text-decoration: underline;
    text-underline-offset: 3px;
  }

  body.bios-auth #screen-register .visual,
  body.bios-auth #screen-login .login-visual {
    position: relative;
    isolation: isolate;
    overflow: hidden;
    min-height: 100svh !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    box-shadow: none !important;
    background-color: #eaf3fc !important;
    background-image: url("/frontend/assets/auth-health-history-v1.jpg?v=20260825r2") !important;
    background-repeat: no-repeat !important;
    background-position: center calc(100% + 34px) !important;
    background-size: 110% auto !important;
  }

  body.bios-auth #screen-register .visual::before,
  body.bios-auth #screen-login .login-visual::before {
    content: "";
    position: absolute;
    z-index: 1;
    inset: 0;
    display: block !important;
    background:
      linear-gradient(180deg, rgba(255,255,255,.15) 0%, transparent 24%),
      linear-gradient(0deg, rgba(226,239,252,.55) 0%, transparent 32%);
    pointer-events: none;
  }

  body.bios-auth #screen-register .stage,
  body.bios-auth #screen-login .login-orbit {
    display: none !important;
  }

  body.bios-auth .auth-hero-copy {
    position: absolute !important;
    z-index: 2 !important;
    right: clamp(42px, 5vw, 76px) !important;
    bottom: clamp(142px, 14vh, 188px) !important;
    left: clamp(42px, 5vw, 76px) !important;
    width: auto !important;
    max-width: none !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    text-align: center;
  }

  body.bios-auth .auth-hero-copy::before,
  body.bios-auth .auth-hero-copy::after,
  body.bios-auth #screen-register .visual::after,
  body.bios-auth #screen-login .login-visual::after {
    content: none !important;
    display: none !important;
    background: none !important;
    box-shadow: none !important;
  }

  body.bios-auth #screen-register .auth-hero-copy h3,
  body.bios-auth #screen-login .auth-hero-copy h2 {
    max-width: none !important;
    margin: 0 !important;
    color: #0b1830 !important;
    max-width: 520px !important;
    margin-right: auto !important;
    margin-left: auto !important;
    font-size: clamp(30px, 2.55vw, 40px) !important;
    font-weight: 700 !important;
    line-height: 1.04 !important;
    letter-spacing: -.035em !important;
    text-wrap: balance;
    text-align: center !important;
  }

  body.bios-auth #screen-register .auth-hero-copy h3 br,
  body.bios-auth #screen-login .auth-hero-copy h2 br {
    display: none;
  }

  body.bios-auth #screen-register .auth-hero-copy h3 span {
    color: inherit !important;
    font-weight: inherit !important;
  }

  body.bios-auth .auth-hero-copy .auth-visual-note {
    display: none !important;
  }

  body.bios-auth #screen-register .auth-hero-copy ul {
    display: none !important;
  }
}

/* bios-welcome-actions-position */
body.bios-auth #screen-welcome .welcome-actions {
  transform: translateY(-56px);
}

/* bios-step-specific-3d-art */
body.bios-auth #screen-about .about-aside {
  background-image: url("/frontend/assets/onboarding-3d/about-v3.png") !important;
}
body.bios-auth #screen-goal .aside-card {
  background-image: url("/frontend/assets/onboarding-3d/goal-v3.png") !important;
}
body.bios-auth #screen-timeframe .aside-card {
  background-image: url("/frontend/assets/onboarding-3d/timeframe-v3.png") !important;
}
body.bios-auth #screen-worries .aside-card {
  background-image: url("/frontend/assets/onboarding-3d/worries-v3.png") !important;
}


/* bios-onboarding-brand-alignment */
body.bios-auth :is(#screen-about, #screen-goal, #screen-timeframe, #screen-worries, #screen-done) .brand .bios-brand-wordmark {
  transform: translateX(-13%);
}

/* bios-step-aside-composition */
@media (min-width: 981px) {
  body.bios-auth #screen-about .about-aside,
  body.bios-auth #screen-goal .aside-card,
  body.bios-auth #screen-timeframe .aside-card,
  body.bios-auth #screen-worries .aside-card,
  body.bios-auth #screen-done .done-aside {
    background-position: center calc(100% + 110px) !important;
    background-size: 110% auto !important;
  }

  body.bios-auth #screen-about .about-aside h4,
  body.bios-auth #screen-goal .aside-card h4,
  body.bios-auth #screen-timeframe .aside-card h4,
  body.bios-auth #screen-worries .aside-card h4 {
    right: clamp(42px, 5vw, 76px) !important;
    bottom: clamp(205px, 20vh, 268px) !important;
    left: clamp(42px, 5vw, 76px) !important;
    max-width: 520px !important;
    font-size: clamp(30px, 2.55vw, 40px) !important;
    line-height: 1.04 !important;
    letter-spacing: -.035em !important;
    text-align: center !important;
  }

  body.bios-auth #screen-done .done-aside > div {
    right: clamp(42px, 5vw, 76px) !important;
    bottom: clamp(205px, 20vh, 268px) !important;
    left: clamp(42px, 5vw, 76px) !important;
  }

  body.bios-auth #screen-done .done-aside h4 {
    max-width: 520px;
    margin-right: auto;
    margin-left: auto;
    font-size: clamp(30px, 2.55vw, 40px) !important;
    line-height: 1.04 !important;
    letter-spacing: -.035em !important;
    text-align: center !important;
  }
}

/* bios-lowered-step-progress */
body.bios-auth .navrow .steps {
  position: relative;
  top: 5px;
}

/* bios-flat-about-inputs */
body.bios-auth #screen-about .about-input input,
body.bios-auth #screen-about .about-input .phone-country,
body.bios-auth #screen-about .about-input .phone-country select {
  -webkit-appearance: none !important;
  appearance: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
  box-shadow: none !important;
  outline: 0 !important;
}

body.bios-auth #screen-about .about-input input:-webkit-autofill,
body.bios-auth #screen-about .about-input input:-webkit-autofill:hover,
body.bios-auth #screen-about .about-input input:-webkit-autofill:focus {
  -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
  border-radius: 0 !important;
}

/* bios-correct-wordmark */
body.bios-auth .brand {
  display: flex !important;
  align-items: center !important;
  width: auto !important;
  height: auto !important;
  min-width: 0 !important;
  flex: 0 0 auto !important;
  overflow: visible !important;
  background: none !important;
}
body.bios-auth .brand .bios-brand-wordmark {
  display: block !important;
  width: 116px;
  height: auto;
  max-height: 50px;
  object-fit: contain;
  object-position: left center;
}
@media (max-width: 980px) {
  body.bios-auth .brand .bios-brand-wordmark {
    width: 102px;
    max-height: 44px;
  }
}
