/* Account entry and profile creation: one visual language across both themes. */
#appRoot .lh-auth-shell,
#appRoot .lh-onboarding-shell {
  --entry-line: color-mix(in srgb, var(--lh-gold) 30%, var(--lh-border));
  min-height: 100svh;
  gap: 0;
  padding: 0;
  align-items: stretch;
  background: var(--lh-bg);
}

#appRoot .lh-auth-shell {
  grid-template-columns: minmax(0, 1fr) minmax(440px, 0.8fr);
}

#appRoot .lh-auth-brand,
#appRoot .lh-onboarding-rail {
  position: relative;
  min-width: 0;
  min-height: 100svh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: clamp(28px, 4.8vw, 76px);
  background:
    radial-gradient(circle at 54% 46%, color-mix(in srgb, var(--lh-gold) 12%, transparent), transparent 42%),
    linear-gradient(145deg, var(--lh-surface), var(--lh-bg) 74%);
  border-right: 1px solid var(--entry-line);
}

#appRoot .lh-auth-brand-copy { max-width: 680px; display: contents; }
#appRoot .lh-auth-home { position: relative; z-index: 3; width: fit-content; display: inline-flex; text-decoration: none; }
#appRoot .lh-auth-home .lh-brand-signature-navigation { font-size: clamp(1.3rem, 2.2vw, 1.85rem); }
#appRoot .lh-auth-brand .lh-auth-chapter { position: relative; z-index: 2; align-self: start; margin: auto 0 20px; color: var(--lh-gold); font-size: .75rem; font-weight: 700; letter-spacing: .19em; text-transform: uppercase; }
#appRoot .lh-auth-brand .lh-auth-promise { position: relative; z-index: 2; max-width: 750px; margin: 0; color: var(--lh-text) !important; font-family: var(--font-display); font-size: clamp(3.3rem, 6.3vw, 7.5rem); font-weight: 500; line-height: .93 !important; letter-spacing: -.035em; }
#appRoot .lh-auth-brand .lh-auth-lead { position: relative; z-index: 2; max-width: 500px; margin: 26px 0 auto; color: var(--lh-muted); font-size: clamp(.94rem, 1.25vw, 1.12rem); line-height: 1.65; }
#appRoot .lh-auth-brand-foot { position: relative; z-index: 2; display: flex; justify-content: space-between; gap: 16px; padding-top: 22px; border-top: 1px solid var(--entry-line); color: var(--lh-muted); font-size: .72rem; letter-spacing: .1em; text-transform: uppercase; }

#appRoot .lh-auth-brand .lh-entry-seal {
  position: absolute;
  z-index: 1;
  top: 45%;
  left: 74%;
  width: min(75%, 620px);
  margin: 0;
  opacity: .2;
  transform: translate(-50%, -50%);
}

#appRoot .lh-auth-panel {
  align-self: center;
  width: min(100% - 72px, 570px);
  margin: 90px auto 56px;
  padding: clamp(28px, 3.2vw, 52px);
  border: 1px solid var(--entry-line);
  border-radius: 22px;
  background: color-mix(in srgb, var(--lh-surface) 94%, var(--lh-gold) 6%);
  box-shadow: 0 28px 90px color-mix(in srgb, #000 24%, transparent);
}

#appRoot .lh-auth-panel .lh-kicker,
#appRoot .lh-onboarding-card .lh-kicker { color: var(--lh-gold); font-size: .73rem; font-weight: 700; letter-spacing: .17em; text-transform: uppercase; }
#appRoot .lh-auth-panel h2 { margin: 10px 0 12px; color: var(--lh-text); font-family: var(--font-display); font-size: clamp(2.4rem, 3.2vw, 4rem); font-weight: 500; line-height: 1; }
#appRoot .lh-auth-panel-head > p:last-child { max-width: 42ch; margin: 0 0 28px; color: var(--lh-muted); font-size: .94rem; line-height: 1.6; }
#appRoot .lh-auth-panel .lh-form { gap: 17px; }
#appRoot .lh-auth-panel .lh-form label { gap: 8px; color: var(--lh-text); font-size: .83rem; font-weight: 650; }
#appRoot .lh-auth-panel .lh-form input:not([type="checkbox"]) { min-height: 50px; border-radius: 10px; background: var(--lh-bg); }
#appRoot .lh-auth-panel .lh-form input::placeholder { color: var(--lh-muted); opacity: .72; }
#appRoot .lh-auth-panel .lh-form .lh-check { display: flex; align-items: flex-start; font-size: .81rem; font-weight: 500; line-height: 1.5; }
#appRoot .lh-auth-panel .lh-form .lh-check input { margin-top: 2px; }
#appRoot .lh-auth-panel .lh-form .lh-btn-primary,
#appRoot .lh-auth-confirmation-actions .lh-btn-primary { min-height: 52px; justify-content: space-between; padding: 12px 18px; border-radius: 10px; font-weight: 700; }
#appRoot .lh-auth-field-hint { margin: -13px 0 0; color: var(--lh-muted); font-size: .75rem; }
#appRoot .lh-auth-switch { margin: 18px 0 0; padding-top: 18px; border-top: 1px solid var(--lh-border); color: var(--lh-muted); font-size: .82rem; }
#appRoot .lh-auth-switch a,
#appRoot .lh-auth-secondary-link { color: var(--lh-gold); text-underline-offset: 4px; }
#appRoot .lh-auth-panel #appFormMessage:empty { display: none; }

#appRoot .lh-auth-confirmation-icon { width: 60px; height: 60px; display: grid; place-items: center; margin-bottom: 26px; border: 1px solid var(--lh-gold); border-radius: 50%; color: var(--lh-gold); font-size: 1.65rem; box-shadow: 0 0 0 9px var(--lh-gold-soft); }
#appRoot .lh-auth-confirmation-copy { color: var(--lh-text); line-height: 1.65; }
#appRoot .lh-auth-confirmation-steps { display: grid; gap: 12px; margin: 26px 0; padding: 20px 20px 20px 42px; border: 1px solid var(--entry-line); border-radius: 12px; color: var(--lh-text); font-size: .88rem; }
#appRoot .lh-auth-confirmation-steps li::marker { color: var(--lh-gold); font-weight: 700; }
#appRoot .lh-auth-confirmation-actions { display: grid; gap: 17px; margin-top: 28px; }
#appRoot .lh-auth-confirmation-actions .lh-auth-secondary-link { justify-self: center; font-size: .83rem; }

#appRoot .lh-onboarding-shell { grid-template-columns: minmax(280px, .64fr) minmax(0, 1fr); }
#appRoot .lh-onboarding-rail { padding: clamp(28px, 3.8vw, 60px); }
#appRoot .lh-onboarding-rail-content { position: relative; z-index: 2; margin: auto 0; }
#appRoot .lh-onboarding-rail-content .lh-kicker { color: var(--lh-gold); font-size: .73rem; letter-spacing: .15em; text-transform: uppercase; }
#appRoot .lh-onboarding-rail-content .lh-onboarding-rail-title { max-width: 500px; margin: 34px 0 12px; color: var(--lh-text); font-family: var(--font-display); font-size: clamp(3rem, 5.4vw, 6.5rem); font-weight: 500; line-height: .94; }
#appRoot .lh-onboarding-rail-content > p:last-child { max-width: 360px; color: var(--lh-muted); line-height: 1.6; }
#appRoot .lh-onboarding-rail-foot { padding-top: 22px; border-top: 1px solid var(--entry-line); color: var(--lh-muted); font-size: .8rem; }
#appRoot .lh-onboarding-orbit { position: relative; display: grid; place-items: center; width: min(24vw, 240px); aspect-ratio: 1; margin: 44px auto 0; border: 1px solid color-mix(in srgb, var(--lh-gold) 68%, transparent); border-radius: 50%; box-shadow: 0 0 0 15px color-mix(in srgb, var(--lh-gold) 5%, transparent), inset 0 0 60px color-mix(in srgb, var(--lh-gold) 9%, transparent); }
#appRoot .lh-onboarding-orbit::before { position: absolute; inset: 17%; border: 1px solid var(--entry-line); transform: rotate(45deg); content: ""; }
#appRoot .lh-onboarding-orbit::after { position: absolute; inset: 30%; border: 1px solid var(--entry-line); border-radius: 50%; content: ""; }
#appRoot .lh-onboarding-orbit span { position: relative; z-index: 1; color: var(--lh-text); font-family: var(--font-display); font-size: clamp(3rem, 5vw, 5rem); }
#appRoot .lh-onboarding-card { align-self: center; width: min(100% - 80px, 880px); margin: 85px auto 50px; padding: clamp(28px, 4.2vw, 64px); border: 1px solid var(--entry-line); border-radius: 22px; background: var(--lh-surface); }
#appRoot .lh-onboarding-card-top { display: flex; justify-content: space-between; gap: 14px; color: var(--lh-gold); font-size: .73rem; font-weight: 700; letter-spacing: .15em; text-transform: uppercase; }
#appRoot .lh-onboarding-card .lh-progress { height: 3px; margin: 18px 0 34px; border-radius: 0; }
#appRoot .lh-onboarding-card h1 { font-size: clamp(2.5rem, 4.3vw, 4.8rem); font-weight: 500; line-height: 1; }
#appRoot .lh-onboarding-card > .lh-form,
#appRoot .lh-onboarding-card > .lh-muted { margin-top: 26px; }
#appRoot .lh-onboarding-intro { max-width: 57ch; margin: 18px 0 28px; color: var(--lh-muted); font-size: .94rem; line-height: 1.65; }
#appRoot .lh-onboarding-intro + .lh-form { margin-top: 0; }
#appRoot .lh-onboarding-card .lh-form label { font-size: .85rem; font-weight: 600; }
#appRoot .lh-onboarding-card .lh-form input:not([type="checkbox"]),
#appRoot .lh-onboarding-card .lh-form select { min-height: 52px; border-radius: 10px; }
#appRoot .lh-onboarding-card .lh-choice-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
#appRoot .lh-onboarding-card .lh-plan-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); }
#appRoot .lh-onboarding-card .lh-step-actions { margin-top: 30px; }
#appRoot .lh-onboarding-card .lh-step-actions .lh-btn { min-height: 50px; padding-inline: 22px; border-radius: 10px; }
#appRoot .lh-onboarding-footer { margin-top: 34px; font-size: .8rem; }

@media (max-width: 1050px) {
  #appRoot .lh-auth-shell,
  #appRoot .lh-onboarding-shell { display: block; }
  #appRoot .lh-auth-brand,
  #appRoot .lh-onboarding-rail { min-height: 0; padding: 25px clamp(22px, 5vw, 48px); border-right: 0; border-bottom: 1px solid var(--entry-line); }
  #appRoot .lh-auth-brand { display: block; }
  #appRoot .lh-auth-brand-copy { display: block; }
  #appRoot .lh-auth-brand .lh-auth-chapter { margin: 30px 0 10px; }
  #appRoot .lh-auth-brand .lh-auth-promise { font-size: clamp(2.6rem, 7vw, 4.5rem); }
  #appRoot .lh-auth-brand .lh-auth-lead { margin: 14px 0 25px; }
  #appRoot .lh-auth-brand-foot,
  #appRoot .lh-onboarding-rail-foot { display: none; }
  #appRoot .lh-auth-brand .lh-entry-seal { top: 56%; left: 77%; width: min(55%, 360px); }
  #appRoot .lh-auth-panel { width: min(100% - 44px, 600px); margin: 28px auto 50px; padding: clamp(25px, 5vw, 42px); background: var(--lh-surface); }
  #appRoot .lh-onboarding-rail-content { display: grid; grid-template-columns: 1fr auto; align-items: center; column-gap: 24px; margin-top: 24px; }
  #appRoot .lh-onboarding-rail-content .lh-kicker { grid-column: 1 / -1; }
  #appRoot .lh-onboarding-rail-content .lh-onboarding-rail-title { grid-column: 1; margin: 12px 0 5px; font-size: clamp(2.4rem, 6vw, 4rem); }
  #appRoot .lh-onboarding-rail-content > p:last-child { grid-column: 1; margin: 0; }
  #appRoot .lh-onboarding-orbit { grid-column: 2; grid-row: 2 / 4; width: clamp(88px, 17vw, 140px); margin: 0 16px; }
  #appRoot .lh-onboarding-orbit span { font-size: 2.6rem; }
  #appRoot .lh-onboarding-card { width: min(100% - 44px, 900px); margin: 28px auto 50px; }
}

@media (max-width: 600px) {
  #appRoot .lh-auth-brand,
  #appRoot .lh-onboarding-rail { padding: 20px 20px 26px; }
  #appRoot .lh-auth-home .lh-brand-signature-navigation { font-size: 1.25rem; }
  #appRoot .lh-auth-brand .lh-auth-chapter { margin-top: 26px; }
  #appRoot .lh-auth-brand .lh-auth-promise { font-size: clamp(2.55rem, 11vw, 3.8rem); }
  #appRoot .lh-auth-brand .lh-auth-promise br { display: none; }
  #appRoot .lh-auth-brand .lh-auth-lead { max-width: 34ch; font-size: .83rem; }
  #appRoot .lh-auth-brand .lh-entry-seal { top: 55%; left: 82%; width: 62%; opacity: .12; }
  #appRoot .lh-auth-panel,
  #appRoot .lh-onboarding-card { width: calc(100% - 28px); margin: 14px auto 35px; padding: 25px 19px; border-radius: 16px; }
  #appRoot .lh-auth-panel h2 { font-size: 2.55rem; }
  #appRoot .lh-onboarding-rail-content { margin-top: 18px; }
  #appRoot .lh-onboarding-rail-content .lh-onboarding-rail-title { font-size: 2.65rem; }
  #appRoot .lh-onboarding-rail-content > p:last-child { font-size: .83rem; }
  #appRoot .lh-onboarding-orbit { width: 70px; margin: 0 6px; }
  #appRoot .lh-onboarding-orbit span { font-size: 2rem; }
  #appRoot .lh-onboarding-card h1 { font-size: 2.65rem; }
  #appRoot .lh-onboarding-card .lh-step-actions { flex-wrap: wrap; }
}

@media (prefers-reduced-motion: reduce) {
  #appRoot .lh-auth-brand .lh-hermetic-seal-main > * { animation: none; stroke-dashoffset: 0; }
}
