/*
 * ELALAN unified authentication experience
 * ----------------------------------------
 * One visual system for every public authentication/onboarding viewport:
 * mobile, tablet and desktop all use the same Bella Bellucci image-first
 * composition that originally existed only on mobile login/register.
 */

.elp-auth-property-backdrop {
  position: fixed;
  z-index: 0;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(
      180deg,
      rgba(6, 9, 6, .08) 0%,
      rgba(6, 9, 6, .10) 24%,
      rgba(7, 10, 7, .34) 44%,
      rgba(7, 10, 7, .72) 64%,
      rgba(6, 8, 6, .94) 84%,
      rgba(6, 8, 6, .99) 100%
    ),
    url("../img/auth/bella-bellucci.png") center top / cover no-repeat;
  transform: translateZ(0);
}

html {
  min-height: 100%;
  background: #0d110b;
}

body.elp-auth-body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  background: #0d110b !important;
  color: #fff;
}

body.elp-auth-body #loader {
  background: #0d110b;
}

/* The split desktop story pane and utility toolbar are intentionally retired.
 * Every auth step now uses the same single-column image-first shell.
 */
body.elp-auth-body .elp-auth-header,
body.elp-auth-body .elp-auth-story {
  display: none !important;
}

body.elp-auth-body .elp-auth-shell {
  position: relative;
  z-index: 1;
  display: block !important;
  width: 100%;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  padding: 0 !important;
  overflow: visible !important;
  background: transparent !important;
}

/* Bootstrap appends the modal backdrop directly to <body>. The auth shell
 * normally sits in its own low z-index stacking context so it stays above the
 * Bella Bellucci background. Release that stacking context only while a modal
 * is open; otherwise an in-shell modal (z-index 2200) is trapped underneath
 * the body-level backdrop (z-index 2190) and appears greyed-out/unusable. */
body.elp-auth-body.modal-open .elp-auth-shell {
  z-index: auto;
}


body.elp-auth-body .elp-auth-main {
  display: flex !important;
  flex-direction: column;
  justify-content: flex-start !important;
  width: 100%;
  max-width: none !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  margin: 0 !important;
  padding:
    calc(max(28px, var(--elp-safe-top) + 18px))
    max(22px, calc(var(--elp-safe-right) + 20px))
    calc(24px + var(--elp-safe-bottom))
    max(22px, calc(var(--elp-safe-left) + 20px)) !important;
  overflow: visible !important;
  background: transparent !important;
}

/* Shared in-page ELALAN mark. It is the visual header on every auth step. */
body.elp-auth-body .elp-auth-mobile-brand {
  display: block !important;
  flex: 0 0 auto;
  width: 100%;
  margin: clamp(18px, 5.5vh, 54px) 0 0 !important;
  text-align: center;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .35);
}

body.elp-auth-body .elp-auth-mobile-brand .elp-brand {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 100%;
}

body.elp-auth-body .elp-auth-mobile-brand img {
  width: min(54vw, 230px) !important;
  max-width: 230px !important;
  height: auto !important;
  filter: drop-shadow(0 3px 14px rgba(0, 0, 0, .3));
}

body.elp-auth-body .elp-auth-mobile-brand p {
  display: none !important;
}

/* -------------------------------------------------------------------------
   Shared auth card typography/layout
   ------------------------------------------------------------------------- */
body.elp-auth-body .elp-auth-card,
body.elp-auth-body .elp-auth-card-wide {
  width: 100%;
  max-width: 560px !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  flex: 0 0 auto !important;
  margin: clamp(34px, 6vh, 62px) auto 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  color: #fff;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

body.elp-auth-body .elp-auth-card-wide {
  max-width: 560px !important;
}

/* Compact auth/status steps keep the same lower-screen rhythm as mobile login. */
body[data-page="auth-login"] .elp-auth-card,
body[data-page="auth-forgot_password"] .elp-auth-card,
body[data-page="auth-reset_password"] .elp-auth-card,
body[data-page="auth-verify_email"] .elp-auth-card,
body[data-page="auth-verify_phone"] .elp-auth-card,
body[data-page="auth-two_factor"] .elp-auth-card,
body[data-page="auth-under_review"] .elp-auth-card,
body[data-page="auth-approved"] .elp-auth-card {
  margin-top: auto !important;
}

body.elp-auth-body .elp-auth-card > .elp-kicker,
body.elp-auth-body .elp-auth-card .elp-kicker {
  color: #dfe9c6;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .28);
}

body.elp-auth-body .elp-auth-card > h2,
body.elp-auth-body .elp-auth-card h2 {
  margin: 7px 0 8px;
  color: #fff !important;
  font-size: clamp(25px, 4vw, 31px);
  line-height: 1.17;
  letter-spacing: -.032em;
  text-shadow: 0 2px 14px rgba(0, 0, 0, .34);
}

body.elp-auth-body .elp-auth-card > p,
body.elp-auth-body .elp-auth-card .elp-section-copy,
body.elp-auth-body .elp-auth-card .elp-identity-help,
body.elp-auth-body .elp-auth-card .elp-communication-setup-note {
  color: rgba(255, 255, 255, .74) !important;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .26);
}

body.elp-auth-body .elp-auth-card > p {
  margin: 0 0 20px !important;
  font-size: 12px;
  line-height: 1.6;
}

/* Preserve the intentionally minimal mobile login composition. */
body[data-page="auth-login"] .elp-auth-card > .elp-kicker,
body[data-page="auth-login"] .elp-auth-card > h2,
body[data-page="auth-login"] .elp-auth-card > p:not(.elp-auth-note) {
  display: none !important;
}

body[data-page="auth-register"] .elp-auth-card > .elp-kicker {
  display: none !important;
}

/* Every auth form stays single-column at every viewport, matching mobile. */
body.elp-auth-body .elp-form-grid,
body.elp-auth-body .elp-onboarding-preference-grid,
body.elp-auth-body .elp-onboarding-settings,
body.elp-auth-body .elp-communication-setup-grid,
body.elp-auth-body .elp-identity-choice-grid {
  grid-template-columns: 1fr !important;
}

body.elp-auth-body .elp-stack {
  gap: 15px;
}

/* -------------------------------------------------------------------------
   Inputs: mobile login language, shared throughout onboarding
   ------------------------------------------------------------------------- */
body.elp-auth-body .elp-field {
  gap: 6px;
}

body.elp-auth-body .elp-field > label,
body.elp-auth-body .elp-label {
  color: rgba(255, 255, 255, .82) !important;
  font-size: 11px;
  font-weight: 600;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .25);
}

body.elp-auth-body .elp-input,
body.elp-auth-body .elp-select {
  height: 60px !important;
  padding: 0 8px !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, .72) !important;
  border-radius: 0 !important;
  background: rgba(6, 9, 6, .06) !important;
  color: #fff !important;
  caret-color: #fff;
  font-size: 15px;
  font-weight: 400;
  box-shadow: none !important;
  color-scheme: dark;
}

body.elp-auth-body .elp-textarea {
  min-height: 110px;
  padding: 14px !important;
  border: 1px solid rgba(255, 255, 255, .42) !important;
  border-radius: 6px !important;
  background: rgba(6, 9, 6, .22) !important;
  color: #fff !important;
  caret-color: #fff;
  box-shadow: none !important;
}

body.elp-auth-body .elp-input::placeholder,
body.elp-auth-body .elp-textarea::placeholder {
  color: rgba(255, 255, 255, .58) !important;
  opacity: 1;
}

body.elp-auth-body .elp-input:focus,
body.elp-auth-body .elp-select:focus {
  border-bottom-color: var(--elp-primary) !important;
  box-shadow: 0 1px 0 var(--elp-primary) !important;
}

body.elp-auth-body .elp-textarea:focus {
  border-color: rgba(185, 193, 66, .86) !important;
  box-shadow: 0 0 0 2px rgba(185, 193, 66, .16) !important;
}

body.elp-auth-body .elp-select option {
  background: #fff;
  color: #141515;
}

body.elp-auth-body .elp-input:-webkit-autofill,
body.elp-auth-body .elp-input:-webkit-autofill:hover,
body.elp-auth-body .elp-input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff !important;
  caret-color: #fff;
  transition: background-color 9999s ease-out 0s;
  box-shadow: 0 0 0 1000px transparent inset !important;
}

/* Shared leading-icon field pattern. Login, register, recovery and every
 * onboarding step use this same mobile-derived control language. */
body.elp-auth-body .elp-auth-icon-field {
  position: relative;
  display: block;
  min-width: 0;
}

body.elp-auth-body .elp-auth-icon-field > label {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.elp-auth-field-icon,
body.elp-auth-body .elp-auth-field-icon {
  position: absolute;
  z-index: 3;
  left: 1px;
  top: 50%;
  display: grid;
  place-items: center;
  width: 34px;
  height: 44px;
  color: rgba(255, 255, 255, .94);
  font-size: 19px;
  transform: translateY(-50%);
  pointer-events: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}

body.elp-auth-body .elp-auth-icon-field .elp-input,
body.elp-auth-body .elp-auth-icon-field .elp-select {
  padding-left: 45px !important;
  padding-right: 48px !important;
}

body.elp-auth-body .elp-auth-icon-field.elp-auth-textarea-field .elp-auth-field-icon {
  top: 18px;
  transform: none;
}

body.elp-auth-body .elp-auth-icon-field.elp-auth-textarea-field .elp-textarea {
  padding-left: 45px !important;
}

body.elp-auth-body .elp-auth-icon-field.elp-auth-captioned-field .elp-auth-field-icon {
  top: 52%;
}

body.elp-auth-body .elp-auth-field-caption {
  position: absolute;
  z-index: 4;
  left: 45px;
  top: 7px;
  color: rgba(255, 255, 255, .60);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: .035em;
  line-height: 1;
  text-transform: uppercase;
  pointer-events: none;
}

body.elp-auth-body .elp-auth-captioned-field .elp-input,
body.elp-auth-body .elp-auth-captioned-field .elp-select {
  padding-top: 14px !important;
}

/* Auth selects use the same captioned control language as typed date fields.
 * Every auth select receives an explicit in-field caption in its view, while
 * the native select remains accessible and keeps the familiar chevron. */
body.elp-auth-body .elp-auth-captioned-field .elp-select {
  cursor: pointer;
}

body.elp-auth-body .elp-auth-captioned-field .elp-select:disabled {
  cursor: not-allowed;
  opacity: .72;
}

body.elp-auth-body .elp-password-control {
  width: 100%;
}

body.elp-auth-body .elp-password-control .elp-input {
  padding-right: 48px !important;
}

body.elp-auth-body .elp-auth-icon-field .elp-password-control .elp-input {
  padding-left: 45px !important;
}

body.elp-auth-body .elp-password-toggle {
  top: 8px !important;
  right: 0 !important;
  width: 44px !important;
  height: 44px !important;
  border-radius: 0 !important;
  color: rgba(255, 255, 255, .96) !important;
  background: transparent !important;
  font-size: 17px;
}

body.elp-auth-body .elp-password-toggle:hover,
body.elp-auth-body .elp-password-toggle[aria-pressed="true"] {
  color: #fff !important;
}

body.elp-auth-body .elp-password-toggle:focus-visible {
  outline: 2px solid var(--elp-primary) !important;
  outline-offset: -4px !important;
}

/* -------------------------------------------------------------------------
   Onboarding rhythm: the post-registration journey intentionally reuses the
   compact login/register form width and field language.
   ------------------------------------------------------------------------- */
body.elp-auth-body [data-auth-wizard],
body[data-page="auth-identity_verification"] .elp-auth-card,
body[data-page="auth-communication_setup"] .elp-auth-card,
body[data-page="auth-communication_preferences"] .elp-auth-card,
body[data-page="auth-preferences"] .elp-auth-card,
body[data-page="auth-terms"] .elp-auth-card {
  max-width: 560px !important;
}

body.elp-auth-body [data-wizard-panel]:not([hidden]) {
  display: block;
}

body.elp-auth-body [data-wizard-panel] .elp-form-grid {
  gap: 15px !important;
}

body.elp-auth-body .elp-auth-card .elp-card-pad {
  padding: 16px !important;
  border-radius: 8px !important;
}

body.elp-auth-body .elp-auth-card .elp-callout {
  border-radius: 8px !important;
}

body.elp-auth-body .elp-auth-card .elp-choice,
body.elp-auth-body .elp-auth-card .elp-list-item,
body.elp-auth-body .elp-auth-card .elp-consent-row,
body.elp-auth-body .elp-auth-card .elp-communication-setup-option {
  border-radius: 8px !important;
}

body.elp-auth-body .elp-auth-card .elp-wizard-footer .elp-btn {
  flex: 1 1 0;
}

/* -------------------------------------------------------------------------
   Buttons, checks, progress and messages
   ------------------------------------------------------------------------- */
body.elp-auth-body .elp-btn {
  min-height: 58px;
  padding: 0 18px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .035em;
  text-transform: uppercase;
}

body.elp-auth-body .elp-btn-primary {
  background: var(--elp-primary) !important;
  color: #fff !important;
  box-shadow: 0 12px 30px rgba(8, 12, 7, .25) !important;
}

body.elp-auth-body .elp-btn-primary:hover {
  background: var(--elp-primary-dark) !important;
}

body.elp-auth-body .elp-btn-secondary {
  border: 1px solid rgba(255, 255, 255, .78) !important;
  background: rgba(255, 255, 255, .96) !important;
  color: var(--elp-primary-dark) !important;
  box-shadow: 0 10px 24px rgba(8, 12, 7, .18) !important;
}

body.elp-auth-body .elp-btn-secondary:hover {
  background: #fff !important;
  color: var(--elp-primary-dark) !important;
}

body.elp-auth-body .elp-auth-meta {
  margin: 8px 0 2px;
  color: #fff;
  font-size: 13px;
}

body.elp-auth-body .elp-auth-meta a,
body.elp-auth-body .elp-auth-note a {
  color: #fff !important;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

body.elp-auth-body .elp-check {
  align-items: flex-start;
  color: rgba(255, 255, 255, .92) !important;
  font-size: 13px;
  line-height: 1.5;
  text-shadow: 0 1px 9px rgba(0, 0, 0, .24);
}

body.elp-auth-body .elp-check input,
body.elp-auth-body input[type="checkbox"] {
  accent-color: var(--elp-primary);
}

body.elp-auth-body .elp-auth-note {
  margin: 22px 0 0 !important;
  color: rgba(255, 255, 255, .72) !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  text-align: center;
  text-shadow: 0 1px 9px rgba(0, 0, 0, .25);
}

body.elp-auth-body [data-auth-message] {
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, .28);
  border-radius: 5px;
  background: rgba(255, 255, 255, .95);
  color: var(--elp-text) !important;
  text-shadow: none;
}

body.elp-auth-body .elp-progress {
  background: rgba(255, 255, 255, .22);
}

body.elp-auth-body .elp-progress span {
  background: var(--elp-accent, #B9C142);
}

body.elp-auth-body .elp-wizard-footer {
  border-top-color: rgba(255, 255, 255, .20) !important;
}

body.elp-auth-body .elp-code-inputs {
  flex-wrap: wrap;
}

body.elp-auth-body .elp-code-inputs input {
  width: 45px;
  height: 54px;
  border: 1px solid rgba(255, 255, 255, .48) !important;
  background: rgba(7, 10, 7, .38) !important;
  color: #fff !important;
  box-shadow: none !important;
}

body.elp-auth-body .elp-code-inputs input:focus {
  border-color: var(--elp-primary) !important;
  box-shadow: 0 0 0 3px rgba(124, 154, 92, .18) !important;
}

/* -------------------------------------------------------------------------
   Nested onboarding surfaces use restrained glass, not a second white theme.
   ------------------------------------------------------------------------- */
body.elp-auth-body .elp-auth-card .elp-card,
body.elp-auth-body .elp-auth-card .elp-callout,
body.elp-auth-body .elp-auth-card .elp-list,
body.elp-auth-body .elp-auth-card .elp-list-item,
body.elp-auth-body .elp-auth-card .elp-choice,
body.elp-auth-body .elp-auth-card .elp-consent-row,
body.elp-auth-body .elp-auth-card .elp-onboarding-option,
body.elp-auth-body .elp-auth-card .elp-communication-setup-option,
body.elp-auth-body .elp-auth-card .elp-communication-setup-progress {
  border-color: rgba(255, 255, 255, .18) !important;
  background: rgba(8, 12, 8, .48) !important;
  color: #fff !important;
  box-shadow: none !important;
  backdrop-filter: blur(12px) saturate(108%);
  -webkit-backdrop-filter: blur(12px) saturate(108%);
}

body.elp-auth-body .elp-auth-card .elp-card h3,
body.elp-auth-body .elp-auth-card .elp-callout strong,
body.elp-auth-body .elp-auth-card .elp-list-copy strong,
body.elp-auth-body .elp-auth-card .elp-consent-row-copy strong,
body.elp-auth-body .elp-auth-card .elp-communication-setup-option h3,
body.elp-auth-body .elp-auth-card .elp-info-item strong {
  color: #fff !important;
}

body.elp-auth-body .elp-auth-card .elp-callout p,
body.elp-auth-body .elp-auth-card .elp-list-copy p,
body.elp-auth-body .elp-auth-card .elp-list-copy small,
body.elp-auth-body .elp-auth-card .elp-consent-row-copy p,
body.elp-auth-body .elp-auth-card .elp-communication-setup-option > p,
body.elp-auth-body .elp-auth-card .elp-communication-setup-option-default > p,
body.elp-auth-body .elp-auth-card .elp-communication-setup-list,
body.elp-auth-body .elp-auth-card .elp-setup-progress-copy small,
body.elp-auth-body .elp-auth-card .elp-setup-progress-foot,
body.elp-auth-body .elp-auth-card .elp-info-item span {
  color: rgba(255, 255, 255, .70) !important;
}

body.elp-auth-body .elp-auth-card .elp-list-item:hover {
  background: rgba(255, 255, 255, .09) !important;
}

body.elp-auth-body .elp-auth-card .elp-list-item a {
  color: #dfe9c6 !important;
  font-weight: 700;
}

body.elp-auth-body .elp-auth-card .elp-list-icon,
body.elp-auth-body .elp-auth-card .elp-communication-setup-icon {
  background: rgba(185, 193, 66, .14) !important;
  color: #dfe9c6 !important;
}

body.elp-auth-body .elp-auth-card .elp-choice.is-selected,
body.elp-auth-body .elp-auth-card .elp-communication-setup-option.is-recommended {
  border-color: rgba(185, 193, 66, .75) !important;
  outline-color: rgba(185, 193, 66, .75) !important;
  background: rgba(101, 127, 72, .48) !important;
}

body.elp-auth-body .elp-auth-card .elp-info-list {
  width: 100%;
}

body.elp-auth-body .elp-auth-card .elp-info-item {
  border-bottom-color: rgba(255, 255, 255, .18) !important;
  color: #fff;
}

body.elp-auth-body .elp-auth-card .elp-auth-status-icon {
  background: rgba(243, 246, 234, .16) !important;
  color: #dfe9c6 !important;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .18);
}

body.elp-auth-body .elp-auth-card .elp-auth-status-success,
body.elp-auth-body .elp-auth-card .elp-auth-status-success .elp-auth-status-icon {
  color: #dfe9c6 !important;
}

/* Identity upload/choice surfaces have strong legacy white !important rules;
 * these higher-specificity overrides keep them in the same auth theme.
 */
body.elp-auth-body .elp-auth-card .elp-identity-choice,
body.elp-auth-body .elp-auth-card .elp-identity-upload-slot {
  border-color: rgba(255, 255, 255, .22) !important;
  background: rgba(8, 12, 8, .50) !important;
  color: #fff !important;
}

body.elp-auth-body .elp-auth-card .elp-identity-choice:hover,
body.elp-auth-body .elp-auth-card .elp-identity-choice:focus-within,
body.elp-auth-body .elp-auth-card .elp-identity-upload-slot:hover,
body.elp-auth-body .elp-auth-card .elp-identity-upload-slot:focus-within,
body.elp-auth-body .elp-auth-card .elp-identity-upload-slot.is-selected {
  border-color: rgba(185, 193, 66, .72) !important;
  background: rgba(101, 127, 72, .36) !important;
}

body.elp-auth-body .elp-auth-card .elp-identity-choice-heading strong,
body.elp-auth-body .elp-auth-card .elp-identity-upload-copy strong {
  color: #fff !important;
}

body.elp-auth-body .elp-auth-card .elp-identity-choice > p,
body.elp-auth-body .elp-auth-card .elp-identity-upload-copy small,
body.elp-auth-body .elp-auth-card .elp-identity-help,
body.elp-auth-body .elp-auth-card .elp-identity-modal-note {
  color: rgba(255, 255, 255, .70) !important;
}

body.elp-auth-body .elp-auth-card .elp-identity-upload-icon {
  background: rgba(185, 193, 66, .14) !important;
  color: #dfe9c6 !important;
}

body.elp-auth-body .elp-auth-card .elp-identity-optional-indicator {
  background: rgba(255, 255, 255, .12) !important;
  color: rgba(255, 255, 255, .76) !important;
}

body.elp-auth-body .elp-auth-card .elp-identity-required-indicator {
  background: rgba(185, 193, 66, .15) !important;
  color: #dfe9c6 !important;
}

/* Native file actions inside the dark onboarding surface. */
body.elp-auth-body .elp-auth-card .elp-native-file-action {
  border-color: rgba(255, 255, 255, .28) !important;
  background: rgba(255, 255, 255, .10) !important;
  color: #fff !important;
}

body.elp-auth-body .elp-auth-card .elp-native-file-action:hover,
body.elp-auth-body .elp-auth-card .elp-native-file-action:focus-visible {
  border-color: rgba(185, 193, 66, .70) !important;
  background: rgba(185, 193, 66, .14) !important;
}

/* Keep Bootstrap/modal document pickers on the established light modal system. */
/* The identity/document modal intentionally uses the portal's light modal
 * surface. The modal is nested inside .elp-auth-card, so the dark auth-shell
 * kicker/copy rules would otherwise win and render these introductory texts
 * almost white on white. Re-establish the light-modal typography explicitly. */
body.elp-auth-body .elp-auth-card .modal .elp-modal-intro .elp-kicker {
  color: var(--elp-primary-dark) !important;
  text-shadow: none !important;
}

body.elp-auth-body .elp-auth-card .modal .elp-modal-intro h3 {
  color: var(--elp-text) !important;
  text-shadow: none !important;
}

body.elp-auth-body .elp-auth-card .modal .elp-modal-intro .elp-section-copy {
  color: #606760 !important;
  text-shadow: none !important;
}

body.elp-auth-body .modal .elp-identity-upload-slot {
  border-color: #dfe2e6 !important;
  background: #fff !important;
  color: var(--elp-text) !important;
}

body.elp-auth-body .modal .elp-identity-upload-copy strong {
  color: #20242a !important;
}

body.elp-auth-body .modal .elp-identity-upload-copy small,
body.elp-auth-body .modal .elp-identity-modal-note {
  color: #737b87 !important;
  text-shadow: none !important;
}

body.elp-auth-body .modal .elp-identity-upload-icon {
  background: #f1f5e9 !important;
  color: #7c9a5c !important;
}

body.elp-auth-body .modal .elp-native-file-action {
  border-color: var(--elp-border) !important;
  background: #fff !important;
  color: var(--elp-primary-dark) !important;
}

body.elp-auth-body .modal .elp-btn {
  min-height: 42px;
  text-transform: none;
  letter-spacing: normal;
}

/* Communication setup progress keeps its meaning while matching the dark shell. */
body.elp-auth-body .elp-auth-card .elp-communication-setup-badge {
  border-color: rgba(185, 193, 66, .45) !important;
  background: rgba(185, 193, 66, .15) !important;
  color: #edf3db !important;
}

body.elp-auth-body .elp-auth-card .elp-setup-progress-copy strong,
body.elp-auth-body .elp-auth-card .elp-setup-progress-percent,
body.elp-auth-body .elp-auth-card .elp-setup-progress-step.is-active,
body.elp-auth-body .elp-auth-card .elp-setup-progress-step.is-complete {
  color: #fff !important;
}

body.elp-auth-body .elp-auth-card .elp-setup-progress-track.progress {
  background: rgba(255, 255, 255, .18) !important;
}

/* Biometric sign-in follows the same glass language. */
body.elp-auth-body .elp-biometric-login-option,
body.elp-auth-body .elp-biometric-login-status {
  border-color: rgba(255, 255, 255, .28) !important;
  background: rgba(8, 11, 8, .56) !important;
  color: #fff !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

body.elp-auth-body .elp-biometric-login-option small,
body.elp-auth-body .elp-biometric-login-status {
  color: rgba(255, 255, 255, .70) !important;
}

/* -------------------------------------------------------------------------
   Footer + shared Continue as guest
   ------------------------------------------------------------------------- */
body.elp-auth-body .elp-auth-footer {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  max-width: 680px;
  margin: 18px auto 0 !important;
  padding: 14px 0 0 !important;
  border-top: 1px solid rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .64) !important;
  font-size: 10px;
  line-height: 1.5;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .28);
}

body.elp-auth-body .elp-auth-footer a {
  color: rgba(255, 255, 255, .84) !important;
}

.elp-auth-guest-choice {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  margin: 20px auto 2px;
  padding: 10px 0;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, .3);
}

.elp-auth-guest-choice::before,
.elp-auth-guest-choice::after {
  content: "";
  flex: 0 1 54px;
  width: 54px;
  height: 1px;
  background: rgba(255, 255, 255, .36);
}

.elp-auth-guest-choice i {
  font-size: 11px;
}

.elp-auth-guest-choice:hover {
  color: #fff;
}

.elp-auth-guest-choice:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .92);
  outline-offset: 4px;
  border-radius: 6px;
}

/* -------------------------------------------------------------------------
   Logged-out entry screen. Same backdrop, same shared ELALAN buttons.
   ------------------------------------------------------------------------- */
body[data-page="auth-welcome"] {
  overflow: hidden;
}

body[data-page="auth-welcome"] .elp-auth-property-backdrop {
  background:
    linear-gradient(
      180deg,
      rgba(5, 8, 5, .06) 0%,
      rgba(5, 8, 5, .08) 29%,
      rgba(6, 9, 6, .28) 48%,
      rgba(5, 8, 5, .72) 72%,
      rgba(5, 7, 5, .94) 100%
    ),
    url("../img/auth/bella-bellucci.png") center center / cover no-repeat;
}

body[data-page="auth-welcome"] .elp-entry-welcome {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  max-width: 570px;
  margin: 0 auto;
  padding: clamp(180px, 42vh, 430px) 0 0;
  color: #fff;
}

body[data-page="auth-welcome"] .elp-entry-actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: auto;
}

body[data-page="auth-welcome"] .elp-entry-button {
  width: 100%;
}

/* -------------------------------------------------------------------------
   Responsive refinements. No alternate desktop/tablet design is introduced.
   ------------------------------------------------------------------------- */
@media (min-width: 768px) {
  body.elp-auth-body .elp-auth-main {
    padding-left: max(34px, 5vw) !important;
    padding-right: max(34px, 5vw) !important;
  }

  body.elp-auth-body .elp-auth-mobile-brand img {
    width: min(32vw, 245px) !important;
    max-width: 245px !important;
  }

  body.elp-auth-body .elp-auth-card,
  body.elp-auth-body .elp-auth-card-wide,
  body.elp-auth-body .elp-auth-footer {
    max-width: 620px !important;
  }
}

@media (min-width: 1200px) {
  body.elp-auth-body .elp-auth-main {
    padding-left: max(54px, 8vw) !important;
    padding-right: max(54px, 8vw) !important;
  }

  body.elp-auth-body .elp-auth-card,
  body.elp-auth-body .elp-auth-card-wide,
  body.elp-auth-body .elp-auth-footer {
    max-width: 620px !important;
  }
}

@media (max-width: 640px) {
  body.elp-auth-body .elp-auth-card,
  body.elp-auth-body .elp-auth-card-wide {
    max-width: 100% !important;
  }

  body.elp-auth-body .elp-auth-footer {
    flex-wrap: wrap;
    justify-content: center;
    text-align: center;
  }

  body.elp-auth-body .elp-wizard-footer {
    align-items: stretch;
  }

  body.elp-auth-body .elp-wizard-footer .elp-btn {
    flex: 1 1 0;
  }
}

@media (max-width: 380px) {
  body.elp-auth-body .elp-auth-main {
    padding-left: max(18px, calc(var(--elp-safe-left) + 16px)) !important;
    padding-right: max(18px, calc(var(--elp-safe-right) + 16px)) !important;
  }

  body.elp-auth-body .elp-btn {
    padding-left: 14px;
    padding-right: 14px;
  }

  body[data-page="auth-welcome"] .elp-entry-actions {
    gap: 8px;
  }

  .elp-auth-guest-choice::before,
  .elp-auth-guest-choice::after {
    width: 36px;
  }
}

@media (prefers-reduced-transparency: reduce) {
  body.elp-auth-body .elp-auth-card .elp-card,
  body.elp-auth-body .elp-auth-card .elp-callout,
  body.elp-auth-body .elp-auth-card .elp-list-item,
  body.elp-auth-body .elp-auth-card .elp-choice,
  body.elp-auth-body .elp-auth-card .elp-consent-row,
  body.elp-auth-body .elp-auth-card .elp-onboarding-option,
  body.elp-auth-body .elp-auth-card .elp-communication-setup-option,
  body.elp-auth-body .elp-biometric-login-option,
  body.elp-auth-body .elp-biometric-login-status {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(7, 10, 7, .90) !important;
  }
}
