/* ==========================================================================
   HealthCare App — Unified auth brand stylesheet
   Production path: /assets/css/auth_brand_unified.css
   ========================================================================== */
:root {
  --hc-primary: #5e92e3;
  --hc-primary-dark: #3f6ec2;
  --hc-bg: #eef5fd;
  --hc-bg-2: #dfeafb;
  --hc-card: #12284a;
  --hc-card-2: #17345f;
  --hc-text: #10233f;
  --hc-text-on-dark: #f3f8ff;
  --hc-muted: #4d6283;
  --hc-muted-on-dark: rgba(243,248,255,.76);
  --hc-border-dark: rgba(255,255,255,.10);
  --hc-input-bg: rgba(255,255,255,.06);
  --hc-input-bg-focus: rgba(255,255,255,.09);
  --hc-danger-bg: rgba(190,24,93,.12);
  --hc-danger-border: rgba(244,114,182,.24);
  --hc-danger-text: #ffd7e6;
  --hc-success-bg: rgba(34,197,94,.12);
  --hc-success-border: rgba(134,239,172,.22);
  --hc-success-text: #dbffe8;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }

body.auth-brand-page,
body.login-sheet-page,
body.register-brand-page,
body.confirmation-brand-page,
body.verify-2fa-brand-page {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 18%, rgba(94,146,227,.20), transparent 22%),
    radial-gradient(circle at 86% 12%, rgba(151,185,236,.28), transparent 17%),
    linear-gradient(180deg, #f7fbff 0%, var(--hc-bg) 42%, var(--hc-bg-2) 100%);
  color: var(--hc-text);
}

.auth-brand-shell,
.sheet-shell {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.auth-brand-hero,
.sheet-hero {
  padding: 1.35rem 1.15rem 11rem;
  color: var(--hc-text);
}

.hero-topline,
.auth-brand-topline {
  display: inline-flex;
  align-items: center;
  gap: .45rem;
  padding: .45rem .78rem;
  border-radius: 999px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(94,146,227,.16);
  box-shadow: 0 8px 22px rgba(63,110,194,.08);
  font-size: .78rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--hc-primary-dark);
}

.hero-title,
.auth-brand-title {
  margin: 1rem 0 .55rem;
  font-size: 2.2rem;
  line-height: 1.02;
  font-weight: 850;
  max-width: 14rem;
  color: #0e2342;
}

.hero-copy,
.auth-brand-copy {
  max-width: 24rem;
  margin: 0;
  color: var(--hc-muted);
  font-size: .98rem;
  line-height: 1.6;
}

.hero-stat-row,
.auth-brand-stat-row {
  margin-top: 1.3rem;
  display: flex;
  gap: .75rem;
}

.hero-stat,
.auth-brand-stat {
  flex: 1 1 0;
  padding: .92rem .95rem;
  border-radius: 1.15rem;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(94,146,227,.15);
  box-shadow: 0 14px 32px rgba(94,146,227,.10);
  backdrop-filter: blur(10px);
}

.hero-stat strong,
.auth-brand-stat strong {
  display: block;
  font-size: .95rem;
  color: #183257;
}

.hero-stat span,
.auth-brand-stat span {
  display: block;
  margin-top: .2rem;
  color: var(--hc-muted);
  font-size: .84rem;
}

.auth-brand-card,
.sheet-card {
  position: relative;
  z-index: 2;
  margin-top: -8.7rem;
  background: linear-gradient(180deg, var(--hc-card-2) 0%, var(--hc-card) 100%);
  color: var(--hc-text-on-dark);
  border-radius: 2rem 2rem 0 0;
  box-shadow: 0 -1px 0 rgba(255,255,255,.08), 0 -18px 60px rgba(15,23,42,.18);
  padding: .9rem 1rem 1.15rem;
  min-height: calc(100vh - 12rem);
}

.auth-brand-card--compact { min-height: 0; }

.sheet-handle,
.auth-brand-handle {
  width: 3rem;
  height: .32rem;
  border-radius: 999px;
  background: rgba(255,255,255,.24);
  margin: .1rem auto 1rem;
}

.card-head,
.auth-brand-head {
  display: flex;
  align-items: center;
  gap: .85rem;
  margin-bottom: 1rem;
}

.brand-icon {
  width: 3rem;
  height: 3rem;
  display: grid;
  place-items: center;
  background: none;
  flex: 0 0 auto;
}

.brand-icon img {
  width: 100%;
  height: auto;
  display: block;
}

.form-title,
.auth-brand-card-title {
  margin: 0;
  font-size: 1.38rem;
  font-weight: 800;
  color: #fff;
}

.form-subtitle,
.auth-brand-card-subtitle {
  margin: .18rem 0 0;
  color: var(--hc-muted-on-dark);
  font-size: .92rem;
}

label {
  display: block;
  margin-bottom: .45rem;
  font-size: .94rem;
  font-weight: 700;
  color: rgba(255,255,255,.92);
}

.auth-input,
.auth-brand-page .form-control,
.auth-brand-page .form-select {
  width: 100%;
  min-height: 3.5rem;
  padding: .95rem 1rem;
  border-radius: 1rem;
  border: 1px solid var(--hc-border-dark);
  background: var(--hc-input-bg);
  color: var(--hc-text-on-dark);
  outline: none;
  box-shadow: none;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}

.auth-input::placeholder,
.auth-brand-page .form-control::placeholder {
  color: rgba(255,255,255,.38);
}

.auth-input:hover,
.auth-brand-page .form-control:hover,
.auth-brand-page .form-select:hover {
  border-color: rgba(255,255,255,.16);
  background: rgba(255,255,255,.075);
}

.auth-input:focus,
.auth-brand-page .form-control:focus,
.auth-brand-page .form-select:focus {
  color: var(--hc-text-on-dark);
  border-color: rgba(151,185,236,.55);
  background: var(--hc-input-bg-focus);
  box-shadow: 0 0 0 .24rem rgba(151,185,236,.16);
}

.password-toggle {
  position: absolute;
  right: .8rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: rgba(255,255,255,.62);
}

.password-toggle:hover,
.password-toggle:focus {
  background: rgba(255,255,255,.08);
  color: #fff;
}

.actions-row {
  display: flex;
  flex-direction: column;
  gap: .75rem;
  margin-bottom: 1rem;
}

.form-check-input {
  background-color: rgba(255,255,255,.06);
  border-color: rgba(255,255,255,.18);
  box-shadow: none !important;
}

.form-check-input:checked {
  background-color: var(--hc-primary);
  border-color: var(--hc-primary);
}

.form-check-label,
.text-link,
.footer-links {
  font-size: .94rem;
}

.form-check-label,
.footer-links {
  color: rgba(255,255,255,.86);
}

.text-link,
.footer-links a {
  color: #bcd5ff;
  text-decoration: none;
  font-weight: 700;
}

.text-link:hover,
.footer-links a:hover {
  color: #d7e6ff;
}

.btn-primary,
.auth-brand-btn-primary {
  width: 100%;
  min-height: 3.55rem;
  border: 0;
  border-radius: 1rem;
  background: linear-gradient(180deg, #97b9ec 0%, #5e92e3 100%);
  color: #10233f;
  font-weight: 800;
  font-size: 1.04rem;
  box-shadow: 0 18px 30px rgba(15,23,42,.24);
}

.btn-primary:hover,
.btn-primary:focus,
.auth-brand-btn-primary:hover,
.auth-brand-btn-primary:focus {
  filter: brightness(1.02);
  transform: translateY(-1px);
  color: #10233f;
}

.btn-outline-secondary {
  border-color: rgba(255,255,255,.14);
  color: rgba(255,255,255,.88);
  background: rgba(255,255,255,.04);
}

.btn-outline-secondary:hover,
.btn-outline-secondary:focus {
  color: #fff;
  border-color: rgba(255,255,255,.24);
  background: rgba(255,255,255,.10);
}

.error-message,
.alert-danger {
  margin-bottom: 1rem;
  border-radius: 1rem;
  padding: .8rem .95rem;
  background: var(--hc-danger-bg);
  color: var(--hc-danger-text);
  border: 1px solid var(--hc-danger-border);
}

.alert-success {
  margin-bottom: 1rem;
  border-radius: 1rem;
  padding: .8rem .95rem;
  background: var(--hc-success-bg);
  color: var(--hc-success-text);
  border: 1px solid var(--hc-success-border);
}

.form-text,
.text-muted,
.small {
  color: var(--hc-muted-on-dark) !important;
}

.badge.auth-step-badge,
.auth-brand-page .badge.bg-light {
  color: var(--hc-primary-dark) !important;
  background: rgba(255,255,255,.78) !important;
  border: 1px solid rgba(94,146,227,.12);
  box-shadow: 0 8px 22px rgba(63,110,194,.08);
}

.footer-links {
  margin-top: 1rem;
  text-align: center;
  line-height: 1.55;
}

.confirmation-stack {
  display: grid;
  gap: 1rem;
}

.confirmation-message {
  padding: 1rem 1rem 1.05rem;
  border-radius: 1rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
}

.confirmation-message strong {
  display: block;
  color: #fff;
  margin-bottom: .35rem;
  font-size: 1rem;
}

.confirmation-message p {
  margin: 0;
  color: var(--hc-muted-on-dark);
  line-height: 1.55;
}

.confirmation-actions {
  display: grid;
  gap: .75rem;
}

.confirmation-note {
  text-align: center;
  color: var(--hc-muted-on-dark);
  font-size: .92rem;
}

.twofa-grid {
  display: grid;
  gap: 1.25rem;
}

.twofa-section {
  padding: 1rem;
  border-radius: 1.2rem;
  background: rgba(255,255,255,.04);
  border: 1px solid rgba(255,255,255,.08);
}

.twofa-section-title {
  margin: 0 0 .65rem;
  font-size: 1.08rem;
  font-weight: 800;
  color: #fff;
}

.twofa-section-copy {
  margin: 0 0 1rem;
  color: var(--hc-muted-on-dark);
  line-height: 1.55;
}

.qr-box {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: .9rem;
  border-radius: 1.15rem;
  background: rgba(255,255,255,.92);
  box-shadow: 0 14px 32px rgba(15,23,42,.16);
}

.qr-box img,
.qr-box svg {
  display: block;
  width: 200px;
  height: 200px;
  max-width: 100%;
}

.secret-copy-group {
  max-width: 420px;
}

.secret-copy-group code,
.secret-copy-group .form-control {
  min-height: 3rem;
  border-radius: 1rem 0 0 1rem;
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.10) !important;
  color: #fff !important;
}

.secret-copy-group .btn {
  border-radius: 0 1rem 1rem 0;
}

.otp-row {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: .55rem;
}

.otp-digit {
  min-height: 4rem !important;
  padding: .5rem !important;
  border-radius: 1rem !important;
  font-size: 1.55rem !important;
  font-weight: 800 !important;
  text-align: center;
}

@media (min-width: 768px) {
  .auth-brand-shell,
  .sheet-shell {
    max-width: 1150px;
    margin: 0 auto;
    min-height: 100vh;
    display: grid;
    grid-template-columns: .92fr 1.08fr;
    align-items: center;
    gap: 1.25rem;
    padding: 1.5rem;
  }

  .auth-brand-shell.auth-brand-shell--compact {
    grid-template-columns: .95fr .95fr;
  }

  .auth-brand-hero,
  .sheet-hero {
    padding: 2rem;
  }

  .hero-title,
  .auth-brand-title {
    font-size: 4rem;
    max-width: 24rem;
  }

  .hero-copy,
  .auth-brand-copy {
    font-size: 1.05rem;
  }

  .auth-brand-card,
  .sheet-card {
    margin-top: 0;
    min-height: auto;
    border-radius: 2rem;
    padding: 1rem 1.6rem 1.5rem;
  }

  .twofa-grid.twofa-grid--split {
    grid-template-columns: 1fr 1fr;
    align-items: start;
  }
}

@media (max-width: 575.98px) {
  .auth-brand-hero,
  .sheet-hero {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .auth-brand-card,
  .sheet-card {
    padding-left: .95rem;
    padding-right: .95rem;
  }

  .hero-stat-row,
  .auth-brand-stat-row {
    gap: .55rem;
  }

  .hero-stat,
  .auth-brand-stat {
    padding: .8rem;
  }

  .otp-row {
    gap: .35rem;
  }

  .otp-digit {
    min-height: 3.4rem !important;
    font-size: 1.25rem !important;
  }
}

body.login-sheet-page .login-company-trust {
  margin-top: 1rem;
  padding-top: .05rem;
}

body.login-sheet-page .login-company-trust__divider {
  width: 100%;
  height: 1px;
  margin-bottom: 1rem;
  background: rgba(255,255,255,.10);
}

body.login-sheet-page .login-company-trust__brand {
  display: flex;
  align-items: flex-start;
  gap: .75rem;
}

body.login-sheet-page .login-company-trust__logo {
  width: 2.4rem;
  height: 2.4rem;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: .85rem;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.08);
  overflow: hidden;
}

body.login-sheet-page .login-company-trust__logo img {
  display: block;
  max-width: 100%;
  max-height: 100%;
  width: 100%;
  height: auto;
}

body.login-sheet-page .login-company-trust__copy {
  min-width: 0;
}

body.login-sheet-page .login-company-trust__eyebrow {
  margin: 0 0 .2rem;
  font-size: .72rem;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: rgba(255,255,255,.58);
}

body.login-sheet-page .login-company-trust__text {
  margin: 0;
  font-size: .92rem;
  line-height: 1.55;
  color: rgba(255,255,255,.82);
}

body.login-sheet-page .login-company-trust__text strong {
  color: #fff;
  font-weight: 800;
}

body.login-sheet-page .login-company-trust__text a,
body.login-sheet-page .login-company-trust__links a {
  color: #bcd5ff;
  text-decoration: none;
  font-weight: 700;
}

body.login-sheet-page .login-company-trust__text a:hover,
body.login-sheet-page .login-company-trust__links a:hover {
  color: #d7e6ff;
}

body.login-sheet-page .login-company-trust__links {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem .95rem;
  margin-top: .75rem;
  font-size: .88rem;
}

@media (max-width: 575.98px) {
  body.login-sheet-page .login-company-trust__brand {
    gap: .65rem;
  }

  body.login-sheet-page .login-company-trust__links {
    gap: .45rem .75rem;
  }
}

/* ============================================================================
   Auth sheet localized text resilience guard
   Scope: login/register unified auth layout only.
   Purpose: prevent long localized labels/headlines from being cropped or hidden
   on desktop and mobile, especially German compound words.
   ============================================================================ */

.login-sheet-page .sheet-shell,
.login-sheet-page .sheet-hero,
.login-sheet-page .sheet-card,
.login-sheet-page .card-head,
.login-sheet-page .card-head > div,
.login-sheet-page .hero-stat,
.login-sheet-page .hero-stat-row,
.login-sheet-page .footer-links,
.login-sheet-page label,
.login-sheet-page .form-check-label,
.login-sheet-page .btn {
    min-width: 0;
}

.login-sheet-page .sheet-shell,
.login-sheet-page .sheet-hero,
.login-sheet-page .sheet-card {
    overflow: visible;
}

.login-sheet-page .hero-title,
.login-sheet-page .hero-copy,
.login-sheet-page .form-title,
.login-sheet-page .form-subtitle,
.login-sheet-page .hero-stat strong,
.login-sheet-page .hero-stat span,
.login-sheet-page label,
.login-sheet-page .form-check-label,
.login-sheet-page .footer-links,
.login-sheet-page .footer-links a,
.login-sheet-page .btn {
    max-width: 100%;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
}

.login-sheet-page .hero-title {
    line-height: 0.98;
}

@media (min-width: 992px) {
    .login-sheet-page .sheet-shell {
        grid-template-columns: minmax(0, 1fr) minmax(520px, 680px);
        column-gap: clamp(2rem, 4vw, 5rem);
    }

    .login-sheet-page .sheet-hero {
        max-width: 100%;
    }

    .login-sheet-page .register-sheet-card {
        width: min(100%, 680px);
    }
}

@media (max-width: 991.98px) {
    .login-sheet-page .hero-title {
        font-size: clamp(2.35rem, 10vw, 3.6rem);
    }

    .login-sheet-page .hero-stat-row {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (max-width: 575.98px) {
    .login-sheet-page .hero-title {
        font-size: clamp(2.05rem, 12vw, 3rem);
    }

    .login-sheet-page .card-head {
        align-items: flex-start;
    }

    .login-sheet-page .form-title {
        font-size: clamp(1.35rem, 8vw, 2rem);
    }

    .login-sheet-page .hero-stat-row {
        grid-template-columns: minmax(0, 1fr);
    }

    .login-sheet-page .btn {
        height: auto;
        min-height: 3.5rem;
        padding-block: 0.875rem;
    }
}

/* LOGIN_DEMO_CTA_ENTRY_STYLES_START */
.login-sheet-page .login-demo-entry {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .9rem;
    align-items: start;
    width: 100%;
    margin: .15rem 0 1.15rem;
    padding: 1rem;
    border: 1px solid rgba(147, 197, 253, .28);
    border-radius: 1.25rem;
    background: linear-gradient(135deg, rgba(96, 165, 250, .16), rgba(15, 23, 42, .08));
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08);
}

.login-sheet-page .login-demo-entry__badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: .95rem;
    color: #dbeafe;
    background: rgba(96, 165, 250, .18);
    border: 1px solid rgba(191, 219, 254, .26);
    flex: 0 0 auto;
}

.login-sheet-page .login-demo-entry__content {
    min-width: 0;
}

.login-sheet-page .login-demo-entry h3 {
    margin: 0 0 .28rem;
    color: #f8fbff;
    font-size: clamp(.98rem, 1.2vw, 1.08rem);
    font-weight: 750;
    line-height: 1.22;
    overflow-wrap: anywhere;
}

.login-sheet-page .login-demo-entry p {
    margin: 0;
    color: rgba(237, 245, 255, .78);
    font-size: .88rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.login-sheet-page .login-demo-entry__actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: .65rem .8rem;
    margin-top: .85rem;
}

.login-sheet-page .login-demo-entry__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
    min-height: 2.45rem;
    padding: .62rem .95rem;
    border-radius: .9rem;
    color: #0f2648;
    background: #bfdbfe;
    text-decoration: none;
    font-weight: 750;
    line-height: 1.1;
    box-shadow: 0 .55rem 1rem rgba(37, 99, 235, .20);
    transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}

.login-sheet-page .login-demo-entry__button:hover,
.login-sheet-page .login-demo-entry__button:focus-visible {
    color: #0f2648;
    background: #dbeafe;
    text-decoration: none;
    transform: translateY(-1px);
    box-shadow: 0 .75rem 1.25rem rgba(37, 99, 235, .24);
}

.login-sheet-page .login-demo-entry__button:focus-visible {
    outline: 3px solid rgba(191, 219, 254, .72);
    outline-offset: 3px;
}

.login-sheet-page .login-demo-entry__note {
    display: inline-flex;
    align-items: center;
    gap: .38rem;
    min-width: 0;
    color: rgba(237, 245, 255, .70);
    font-size: .79rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
}

.login-sheet-page .login-demo-entry__note i {
    flex: 0 0 auto;
    color: rgba(191, 219, 254, .82);
}

@media (max-width: 575.98px) {
    .login-sheet-page .login-demo-entry {
        grid-template-columns: minmax(0, 1fr);
        padding: .95rem;
    }

    .login-sheet-page .login-demo-entry__actions,
    .login-sheet-page .login-demo-entry__button {
        width: 100%;
    }
}
/* LOGIN_DEMO_CTA_ENTRY_STYLES_END */



/* ============================================================================
   Auth demo follow-up layout and validation refinements
   Scope: login/register/demo auth flows only.
   Purpose: keep the login form compact after the demo CTA, preserve the
   register long-word protection, add demo return affordance, and expose
   Bootstrap validation states for auth-input fields.
   ============================================================================ */

/* LOGIN_DEMO_COMPACT_LAYOUT_GUARD_START */
@media (min-width: 992px) {
  body.login-sheet-page:not(.register-sheet-page) .sheet-shell {
    max-width: 1080px;
    grid-template-columns: minmax(320px, .94fr) minmax(420px, 540px);
    column-gap: clamp(2rem, 4vw, 4.5rem);
    align-items: center;
    padding-top: clamp(.9rem, 2vh, 1.35rem);
    padding-bottom: clamp(.9rem, 2vh, 1.35rem);
  }

  body.login-sheet-page:not(.register-sheet-page) .sheet-card {
    width: min(100%, 540px);
    justify-self: center;
    padding: clamp(.85rem, 1.4vh, 1rem) 1.35rem clamp(1rem, 1.8vh, 1.25rem);
  }

  body.login-sheet-page:not(.register-sheet-page) .card-head {
    margin-bottom: .8rem;
  }

  body.login-sheet-page:not(.register-sheet-page) .hero-title {
    max-width: 27rem;
    font-size: clamp(3.15rem, 5.15vw, 4rem);
    line-height: 1.02;
    overflow-wrap: normal;
    word-break: normal;
    hyphens: manual;
  }

  body.login-sheet-page:not(.register-sheet-page) .hero-copy {
    max-width: 25rem;
  }

  body.login-sheet-page:not(.register-sheet-page) .hero-stat-row {
    max-width: 24rem;
  }

  body.login-sheet-page:not(.register-sheet-page) .login-demo-entry {
    margin: 0 0 .9rem;
    padding: .9rem;
    border-radius: 1.15rem;
  }

  body.login-sheet-page:not(.register-sheet-page) .login-demo-entry h3 {
    font-size: 1rem;
  }

  body.login-sheet-page:not(.register-sheet-page) .login-demo-entry p {
    font-size: .84rem;
    line-height: 1.38;
  }

  body.login-sheet-page:not(.register-sheet-page) .login-demo-entry__actions {
    margin-top: .65rem;
  }

  body.login-sheet-page:not(.register-sheet-page) .login-demo-entry__button {
    min-height: 2.25rem;
    padding: .52rem .82rem;
  }

  body.login-sheet-page:not(.register-sheet-page) .auth-input {
    min-height: 3.25rem;
  }

  body.login-sheet-page:not(.register-sheet-page) .mb-3 {
    margin-bottom: .8rem !important;
  }

  body.login-sheet-page:not(.register-sheet-page) .actions-row {
    gap: .5rem;
    margin-bottom: .8rem;
  }

  body.login-sheet-page:not(.register-sheet-page) .btn-primary {
    min-height: 3.25rem;
  }

  body.login-sheet-page:not(.register-sheet-page) .login-company-trust {
    margin-top: .8rem;
  }

  body.login-sheet-page:not(.register-sheet-page) .footer-links {
    margin-top: .75rem;
  }
}

@media (min-width: 992px) and (max-height: 820px) {
  body.login-sheet-page:not(.register-sheet-page) .sheet-card {
    padding-top: .75rem;
    padding-bottom: .95rem;
  }

  body.login-sheet-page:not(.register-sheet-page) .sheet-handle {
    margin-bottom: .75rem;
  }

  body.login-sheet-page:not(.register-sheet-page) .login-demo-entry__note {
    font-size: .74rem;
  }
}
/* LOGIN_DEMO_COMPACT_LAYOUT_GUARD_END */

/* DEMO_SETUP_RETURN_AND_TEXT_GUARD_START */
.demo-setup-page .auth-brand-shell,
.demo-setup-page .auth-brand-hero,
.demo-setup-page .auth-brand-card,
.demo-setup-page .auth-brand-head,
.demo-setup-page .auth-brand-head > div,
.demo-setup-page .demo-promo-card,
.demo-setup-page .demo-stepper__item,
.demo-setup-page .demo-step-pill,
.demo-setup-page .demo-step-panel,
.demo-setup-page .demo-wizard-actions,
.demo-setup-page .btn {
  min-width: 0;
}

.demo-setup-page .auth-brand-title,
.demo-setup-page .auth-brand-copy,
.demo-setup-page .auth-brand-card-title,
.demo-setup-page .auth-brand-card-subtitle,
.demo-setup-page .demo-promo-card strong,
.demo-setup-page .demo-promo-card span,
.demo-setup-page .demo-stepper__label,
.demo-setup-page .demo-step-pill,
.demo-setup-page .demo-step-panel__title,
.demo-setup-page .demo-step-panel__copy,
.demo-setup-page label,
.demo-setup-page .form-text,
.demo-setup-page .btn {
  max-width: 100%;
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: normal;
  hyphens: auto;
}

.demo-setup-page .demo-wizard-head {
  align-items: flex-start;
}

.demo-setup-page .demo-return-login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  min-height: 2.25rem;
  margin-left: auto;
  padding: .48rem .75rem;
  border-radius: .8rem;
  color: #bcd5ff;
  background: rgba(255,255,255,.05);
  border: 1px solid rgba(255,255,255,.10);
  text-decoration: none;
  font-size: .86rem;
  font-weight: 750;
  line-height: 1.15;
}

.demo-setup-page .demo-return-login-link:hover,
.demo-setup-page .demo-return-login-link:focus-visible {
  color: #fff;
  background: rgba(255,255,255,.10);
  border-color: rgba(255,255,255,.18);
  text-decoration: none;
}

.demo-setup-page .demo-return-login-link:focus-visible {
  outline: 3px solid rgba(191, 219, 254, .72);
  outline-offset: 3px;
}

@media (max-width: 575.98px) {
  .demo-setup-page .demo-wizard-head {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .demo-setup-page .demo-return-login-link {
    width: 100%;
    margin-left: 0;
  }
}
/* DEMO_SETUP_RETURN_AND_TEXT_GUARD_END */

/* REGISTER_BOOTSTRAP_VALIDATION_STATES_START */
.auth-brand-page .auth-input.form-control {
  background-image: none;
}

.auth-brand-page .was-validated .auth-input.form-control:valid,
.auth-brand-page .auth-input.form-control.is-valid {
  border-color: rgba(134,239,172,.72);
  box-shadow: 0 0 0 .2rem rgba(34,197,94,.13);
}

.auth-brand-page .was-validated .auth-input.form-control:invalid,
.auth-brand-page .auth-input.form-control.is-invalid {
  border-color: rgba(244,114,182,.72);
  box-shadow: 0 0 0 .2rem rgba(190,24,93,.16);
}

.auth-brand-page .invalid-feedback,
.auth-brand-page .valid-feedback {
  margin-top: .42rem;
  font-size: .82rem;
  line-height: 1.35;
}

.auth-brand-page .invalid-feedback {
  color: var(--hc-danger-text);
}

.auth-brand-page .valid-feedback {
  color: var(--hc-success-text);
}
/* REGISTER_BOOTSTRAP_VALIDATION_STATES_END */


/* ==========================================================================
   Demo return-to-login position correction
   Scope: demo setup auth card only.
   Purpose: render the return action as left-aligned navigation above the demo
   title instead of a right-side utility action competing with the header copy.
   ========================================================================== */
/* DEMO_RETURN_LOGIN_POSITION_CORRECTION_START */
.demo-setup-page .demo-return-login-nav {
  display: flex;
  justify-content: flex-start;
  margin: .05rem 0 .85rem;
}

.demo-setup-page .demo-return-login-nav .demo-return-login-link {
  width: auto;
  margin-left: 0;
}

.demo-setup-page .demo-wizard-head {
  align-items: center;
}

@media (max-width: 575.98px) {
  .demo-setup-page .demo-return-login-nav {
    margin: 0 0 .75rem;
  }

  .demo-setup-page .demo-return-login-nav .demo-return-login-link {
    width: auto;
    max-width: 100%;
    margin-left: 0;
  }
}
/* DEMO_RETURN_LOGIN_POSITION_CORRECTION_END */

/* ============================================================================
   Login hero safe-wrap correction
   Scope: login.php unified auth layout only.
   Purpose: preserve the compact login card while preventing long localized
   desktop hero headlines from spilling under the form card.
   ============================================================================ */
/* LOGIN_HERO_SAFE_WRAP_CORRECTION_START */
@media (min-width: 992px) {
  body.login-sheet-page:not(.register-sheet-page) .sheet-shell {
    grid-template-columns: minmax(0, 1fr) minmax(420px, 540px);
    column-gap: clamp(2.25rem, 4.5vw, 5rem);
  }

  body.login-sheet-page:not(.register-sheet-page) .sheet-hero {
    min-width: 0;
    max-width: 100%;
    justify-self: stretch;
  }

  body.login-sheet-page:not(.register-sheet-page) .hero-title {
    max-width: min(100%, 30rem);
    font-size: clamp(2.9rem, 4.7vw, 3.72rem);
    line-height: 1.04;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
    text-wrap: balance;
  }

  body.login-sheet-page:not(.register-sheet-page) .hero-copy,
  body.login-sheet-page:not(.register-sheet-page) .hero-stat-row {
    max-width: min(100%, 25rem);
  }
}

@media (min-width: 992px) and (max-width: 1180px) {
  body.login-sheet-page:not(.register-sheet-page) .hero-title {
    max-width: min(100%, 26rem);
    font-size: clamp(2.65rem, 4.25vw, 3.3rem);
  }
}
/* LOGIN_HERO_SAFE_WRAP_CORRECTION_END */

/* ============================================================================
   Login demo CTA hero placement — controlled v2
   Scope: login.php only.
   Purpose: place the demo entry below the two hero benefit cards while keeping
   the registered-user login card clean, compact, vertically centered, and free
   from unnecessary desktop scroll.
   ============================================================================ */
/* LOGIN_DEMO_CTA_HERO_PLACEMENT_V2_START */
body.login-sheet-page:not(.register-sheet-page) .login-demo-entry--hero {
  color: var(--hc-text);
  background: rgba(255,255,255,.74);
  border-color: rgba(94,146,227,.16);
  box-shadow: 0 12px 28px rgba(94,146,227,.10);
}

body.login-sheet-page:not(.register-sheet-page) .login-demo-entry--hero .login-demo-entry__badge {
  color: var(--hc-primary-dark);
  background: rgba(94,146,227,.12);
  border-color: rgba(94,146,227,.16);
}

body.login-sheet-page:not(.register-sheet-page) .login-demo-entry--hero h3 {
  color: #183257;
}

body.login-sheet-page:not(.register-sheet-page) .login-demo-entry--hero p,
body.login-sheet-page:not(.register-sheet-page) .login-demo-entry--hero .login-demo-entry__note {
  color: var(--hc-muted);
}

body.login-sheet-page:not(.register-sheet-page) .login-demo-entry--hero .login-demo-entry__note i {
  color: var(--hc-primary-dark);
}

body.login-sheet-page:not(.register-sheet-page) .login-demo-entry--hero .login-demo-entry__button {
  color: #fff;
  background: linear-gradient(180deg, #79aaf0 0%, var(--hc-primary) 100%);
  box-shadow: 0 .45rem .9rem rgba(63,110,194,.18);
}

body.login-sheet-page:not(.register-sheet-page) .login-demo-entry--hero .login-demo-entry__button:hover,
body.login-sheet-page:not(.register-sheet-page) .login-demo-entry--hero .login-demo-entry__button:focus-visible {
  color: #fff;
  background: linear-gradient(180deg, #8db8f4 0%, #6a9deb 100%);
  box-shadow: 0 .6rem 1.05rem rgba(63,110,194,.22);
}

@media (min-width: 992px) {
  body.login-sheet-page:not(.register-sheet-page) .sheet-shell {
    max-width: 1120px;
    grid-template-columns: minmax(0, .98fr) minmax(420px, 520px);
    column-gap: clamp(2.5rem, 4.5vw, 5rem);
    align-items: center;
    padding-top: clamp(.75rem, 1.35vh, 1.15rem);
    padding-bottom: clamp(.75rem, 1.35vh, 1.15rem);
  }

  body.login-sheet-page:not(.register-sheet-page) .sheet-hero {
    min-width: 0;
    max-width: 100%;
    justify-self: stretch;
    padding-top: clamp(.8rem, 1.4vh, 1.2rem);
    padding-bottom: clamp(.8rem, 1.4vh, 1.2rem);
  }

  body.login-sheet-page:not(.register-sheet-page) .sheet-card {
    width: min(100%, 520px);
    justify-self: center;
    padding: clamp(.9rem, 1.4vh, 1.05rem) 1.35rem clamp(1rem, 1.8vh, 1.25rem);
  }

  body.login-sheet-page:not(.register-sheet-page) .card-head {
    margin-bottom: .9rem;
  }

  body.login-sheet-page:not(.register-sheet-page) .hero-title {
    max-width: min(100%, 30rem);
    font-size: clamp(2.78rem, 4.45vw, 3.58rem);
    line-height: 1.04;
    white-space: normal;
    overflow: visible;
    text-overflow: clip;
    overflow-wrap: anywhere;
    word-break: normal;
    hyphens: auto;
    text-wrap: balance;
  }

  body.login-sheet-page:not(.register-sheet-page) .hero-copy,
  body.login-sheet-page:not(.register-sheet-page) .hero-stat-row,
  body.login-sheet-page:not(.register-sheet-page) .login-demo-entry--hero {
    max-width: min(100%, 26rem);
  }

  body.login-sheet-page:not(.register-sheet-page) .hero-copy {
    line-height: 1.5;
  }

  body.login-sheet-page:not(.register-sheet-page) .hero-stat-row {
    margin-top: .95rem;
    gap: .65rem;
  }

  body.login-sheet-page:not(.register-sheet-page) .hero-stat {
    min-height: 5.6rem;
    padding: .78rem .85rem;
  }

  body.login-sheet-page:not(.register-sheet-page) .login-demo-entry--hero {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    gap: .65rem;
    align-items: start;
    margin: .65rem 0 0;
    padding: .72rem .82rem;
    border-radius: 1rem;
  }

  body.login-sheet-page:not(.register-sheet-page) .login-demo-entry--hero .login-demo-entry__badge {
    width: 2rem;
    height: 2rem;
    border-radius: .8rem;
  }

  body.login-sheet-page:not(.register-sheet-page) .login-demo-entry--hero h3 {
    margin-bottom: .12rem;
    font-size: .92rem;
    line-height: 1.22;
  }

  body.login-sheet-page:not(.register-sheet-page) .login-demo-entry--hero p {
    font-size: .78rem;
    line-height: 1.32;
  }

  body.login-sheet-page:not(.register-sheet-page) .login-demo-entry--hero .login-demo-entry__actions {
    margin-top: .48rem;
    gap: .45rem .6rem;
  }

  body.login-sheet-page:not(.register-sheet-page) .login-demo-entry--hero .login-demo-entry__button {
    min-height: 2rem;
    padding: .38rem .68rem;
    border-radius: .72rem;
    font-size: .86rem;
  }

  body.login-sheet-page:not(.register-sheet-page) .login-demo-entry--hero .login-demo-entry__note {
    font-size: .72rem;
    line-height: 1.25;
  }

  body.login-sheet-page:not(.register-sheet-page) .auth-input {
    min-height: 3.25rem;
  }

  body.login-sheet-page:not(.register-sheet-page) .mb-3 {
    margin-bottom: .82rem !important;
  }

  body.login-sheet-page:not(.register-sheet-page) .actions-row {
    gap: .55rem;
    margin-bottom: .82rem;
  }

  body.login-sheet-page:not(.register-sheet-page) .btn-primary {
    min-height: 3.25rem;
  }

  body.login-sheet-page:not(.register-sheet-page) .footer-links {
    margin-top: .8rem;
  }
}

@media (min-width: 992px) and (max-height: 820px) {
  body.login-sheet-page:not(.register-sheet-page) .hero-title {
    font-size: clamp(2.55rem, 4.1vw, 3.25rem);
  }

  body.login-sheet-page:not(.register-sheet-page) .hero-stat {
    min-height: 5.05rem;
    padding: .65rem .75rem;
  }

  body.login-sheet-page:not(.register-sheet-page) .login-demo-entry--hero {
    margin-top: .55rem;
    padding: .62rem .72rem;
  }

  body.login-sheet-page:not(.register-sheet-page) .login-demo-entry--hero p {
    font-size: .75rem;
  }

  body.login-sheet-page:not(.register-sheet-page) .login-demo-entry--hero .login-demo-entry__note {
    display: none;
  }
}

@media (min-width: 992px) and (max-width: 1180px) {
  body.login-sheet-page:not(.register-sheet-page) .sheet-shell {
    grid-template-columns: minmax(0, .92fr) minmax(410px, 500px);
    column-gap: clamp(2rem, 3.6vw, 4rem);
  }

  body.login-sheet-page:not(.register-sheet-page) .hero-title {
    max-width: min(100%, 27rem);
    font-size: clamp(2.45rem, 4.05vw, 3.18rem);
  }

  body.login-sheet-page:not(.register-sheet-page) .hero-copy,
  body.login-sheet-page:not(.register-sheet-page) .hero-stat-row,
  body.login-sheet-page:not(.register-sheet-page) .login-demo-entry--hero {
    max-width: min(100%, 24.5rem);
  }
}

@media (max-width: 991.98px) {
  body.login-sheet-page:not(.register-sheet-page) .login-demo-entry--hero {
    margin-top: 1rem;
  }
}

@media (max-width: 575.98px) {
  body.login-sheet-page:not(.register-sheet-page) .login-demo-entry--hero {
    padding: .9rem;
  }

  body.login-sheet-page:not(.register-sheet-page) .login-demo-entry--hero .login-demo-entry__button {
    min-height: 2.75rem;
  }
}
/* LOGIN_DEMO_CTA_HERO_PLACEMENT_V2_END */

/* ==========================================================================
   Demo setup hero-side return navigation
   Scope: demo setup page only.
   Purpose: place the return-to-login navigation below the left mini benefit
   cards, matching the login-page hero-side navigation pattern.
   ========================================================================== */
/* DEMO_BACK_LOGIN_HERO_NAV_START */
.demo-setup-page .demo-setup-hero .demo-return-login-nav {
  display: flex;
  justify-content: flex-start;
  margin: 1rem 0 0;
}

.demo-setup-page .demo-setup-hero .demo-return-login-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .45rem;
  width: auto;
  min-height: 2.35rem;
  margin-left: 0;
  padding: .52rem .82rem;
  border-radius: .85rem;
  color: var(--hc-primary-dark);
  background: rgba(255,255,255,.74);
  border: 1px solid rgba(94,146,227,.16);
  box-shadow: 0 10px 24px rgba(63,110,194,.09);
  text-decoration: none;
  font-size: .88rem;
  font-weight: 800;
  line-height: 1.15;
}

.demo-setup-page .demo-setup-hero .demo-return-login-link:hover,
.demo-setup-page .demo-setup-hero .demo-return-login-link:focus-visible {
  color: #0e2342;
  background: rgba(255,255,255,.9);
  border-color: rgba(94,146,227,.24);
  text-decoration: none;
}

.demo-setup-page .demo-setup-hero .demo-return-login-link:focus-visible {
  outline: 3px solid rgba(94,146,227,.28);
  outline-offset: 3px;
}

@media (max-width: 575.98px) {
  .demo-setup-page .demo-setup-hero .demo-return-login-nav {
    margin-top: .85rem;
  }

  .demo-setup-page .demo-setup-hero .demo-return-login-link {
    max-width: 100%;
  }
}
/* DEMO_BACK_LOGIN_HERO_NAV_END */


/* PUBLIC_QA_LOGIN_TITLE_COLOR_RESTORE_20260527_START */
body.login-sheet-page .sheet-card .form-title,
body.login-sheet-page .sheet-card .auth-brand-card-title {
  color: var(--hc-text-on-dark) !important;
}
/* PUBLIC_QA_LOGIN_TITLE_COLOR_RESTORE_20260527_END */
