/* Morong Health MIS — Authentication V4.3 */
body.auth-page {
  --auth-surface: #ffffff;
  --auth-surface-2: #f5f9fa;
  --auth-text: #12343d;
  --auth-heading: #0c3640;
  --auth-input: #ffffff;
  --auth-muted: #667f86;
  --auth-border: #d5e4e7;
  --auth-primary: #0e7e78;
  --auth-blue: #1778a6;
  --auth-success: #167a57;
  --auth-danger: #b43e48;
  --auth-shadow: 0 28px 80px rgba(5, 32, 41, .22);
  min-height: 100dvh !important;
  margin: 0 !important;
  color: var(--auth-text) !important;
  background:
    linear-gradient(115deg, rgba(3, 38, 49, .78), rgba(13, 102, 102, .32)),
    url('/assets/background-login.jpg') center/cover fixed no-repeat !important;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif !important;
}
html[data-mhs-theme="dark"] body.auth-page {
  --auth-surface: #10262d;
  --auth-surface-2: #142f36;
  --auth-text: #eff7f8;
  --auth-heading: #f5fbfc;
  --auth-input: #0b2027;
  --auth-muted: #a4b9be;
  --auth-border: #31505a;
  --auth-primary: #2ab8ab;
  --auth-blue: #5ab9e1;
  --auth-success: #54c994;
  --auth-danger: #f17b84;
  --auth-shadow: 0 30px 90px rgba(0,0,0,.42);
  background:
    linear-gradient(115deg, rgba(0, 16, 23, .88), rgba(5, 60, 64, .58)),
    url('/assets/background-login.jpg') center/cover fixed no-repeat !important;
}
body.auth-page::before { content: ""; position: fixed; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(0,0,0,.08)); }

body.auth-page .mhs-auth-theme-toggle,
body.auth-page [data-mhs-theme-toggle] {
  position: fixed !important;
  top: 18px !important;
  right: 18px !important;
  z-index: 50 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 7px !important;
  min-height: 38px !important;
  padding: 8px 11px !important;
  color: #eff9f8 !important;
  background: rgba(9, 55, 61, .82) !important;
  border: 1px solid rgba(255,255,255,.17) !important;
  border-radius: 10px !important;
  backdrop-filter: blur(10px) !important;
  font-size: .73rem !important;
  font-weight: 750 !important;
  box-shadow: 0 8px 25px rgba(0,0,0,.16) !important;
}

.mhs-auth-shell {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(370px, .82fr);
  align-items: stretch;
  width: min(1080px, calc(100vw - 44px));
  min-height: 610px;
  margin: 0 auto;
  padding: max(70px, 8vh) 0 38px;
  gap: 28px;
}
.mhs-auth-story {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 100%;
  padding: 34px 38px;
  color: #f2fbfa !important;
  background: linear-gradient(145deg, rgba(5, 68, 70, .92), rgba(8, 94, 72, .82)) !important;
  border: 1px solid rgba(203, 241, 236, .18) !important;
  border-radius: 24px;
  box-shadow: 0 28px 80px rgba(4, 31, 37, .22);
  backdrop-filter: blur(12px);
}
.mhs-auth-story * { color: inherit; }
.mhs-auth-story-brand { display: flex; align-items: center; gap: 11px; }
.mhs-auth-story-brand img { width: 54px; height: 54px; object-fit: contain; padding: 4px; background: #fff; border-radius: 14px; }
.mhs-auth-story-brand span { display: block; color: #b8ddda !important; font-size: .63rem; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.mhs-auth-story-brand strong { display: block; margin-top: 2px; color: #fff !important; font-size: .96rem; }
.mhs-auth-story-copy { margin: 45px 0 30px; }
.mhs-auth-eyebrow { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; color: #eaf8ce !important; background: rgba(255,255,255,.09); border: 1px solid rgba(255,255,255,.13); border-radius: 999px; font-size: .68rem; font-weight: 750; }
.mhs-auth-story-copy h1 { max-width: 620px; margin: 20px 0 13px; color: #fff !important; font-size: clamp(2.1rem, 4vw, 3.75rem); line-height: .98; letter-spacing: -.055em; font-weight: 850; }
.mhs-auth-story-copy p { max-width: 610px; margin: 0; color: #d7ece9 !important; font-size: .96rem; line-height: 1.7; }
.mhs-auth-service-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.mhs-auth-service { display: flex; align-items: flex-start; gap: 10px; min-width: 0; padding: 12px; background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); border-radius: 12px; }
.mhs-auth-service > i { display: grid; place-items: center; width: 34px; height: 34px; flex: 0 0 34px; color: #d8f5ef !important; background: rgba(45, 190, 165, .2); border-radius: 9px; }
.mhs-auth-service span { min-width: 0; }
.mhs-auth-service strong { display: block; color: #fff !important; font-size: .75rem; }
.mhs-auth-service small { display: block; margin-top: 3px; color: #c7dfdd !important; font-size: .64rem; line-height: 1.4; }
.mhs-auth-story-footer { display: flex; align-items: center; gap: 18px; margin-top: 24px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); color: #d6ece8 !important; font-size: .66rem; font-weight: 650; }
.mhs-auth-story-footer span { display: inline-flex; align-items: center; gap: 7px; }
.mhs-auth-story-footer i { color: #f3d451 !important; }

.mhs-auth-form-panel { display: flex; align-items: center; justify-content: center; min-width: 0; }
body.auth-page .login-card,
body.auth-page .forgot-card,
body.auth-page .otp-card,
body.auth-page .verify-card,
body.auth-page .reset-card {
  width: 100% !important;
  max-width: 470px !important;
  margin: 0 auto !important;
  padding: 28px !important;
  color: var(--auth-text) !important;
  background: var(--auth-surface) !important;
  border: 1px solid var(--auth-border) !important;
  border-top: 4px solid var(--auth-primary) !important;
  border-radius: 20px !important;
  box-shadow: var(--auth-shadow) !important;
  backdrop-filter: none !important;
}
body.auth-page .login-card { max-width: 470px !important; }
body.auth-page .logo-wrapper { text-align: left !important; margin-bottom: 18px !important; }
body.auth-page .logo-wrapper img { width: 54px !important; height: 54px !important; object-fit: contain !important; padding: 4px !important; background: #fff !important; border: 1px solid var(--auth-border) !important; border-radius: 14px !important; box-shadow: 0 4px 12px rgba(0,0,0,.08) !important; }
body.auth-page .logo-wrapper h2,
body.auth-page h1,
body.auth-page h2,
body.auth-page h3 { color: var(--auth-text) !important; }
body.auth-page .logo-wrapper h2 { margin: 14px 0 4px !important; font-size: 1.5rem !important; line-height: 1.08 !important; letter-spacing: -.035em !important; font-weight: 850 !important; }
body.auth-page .auth-subtitle,
body.auth-page p,
body.auth-page small,
body.auth-page .text-muted,
body.auth-page .helper-text { color: var(--auth-muted) !important; }

body.auth-page label { color: var(--auth-text) !important; font-size: .75rem !important; font-weight: 700 !important; }
body.auth-page .form-control,
body.auth-page input,
body.auth-page select,
body.auth-page textarea {
  min-height: 42px !important;
  color: var(--auth-text) !important;
  background: var(--auth-surface) !important;
  border: 1px solid var(--auth-border) !important;
  border-radius: 10px !important;
  font-size: .82rem !important;
}
body.auth-page .form-control:focus,
body.auth-page input:focus,
body.auth-page select:focus,
body.auth-page textarea:focus { border-color: var(--auth-primary) !important; box-shadow: 0 0 0 3px color-mix(in srgb, var(--auth-primary) 15%, transparent) !important; }
body.auth-page input::placeholder { color: color-mix(in srgb, var(--auth-muted) 80%, transparent) !important; }
body.auth-page .btn-primary,
body.auth-page button[type="submit"] {
  min-height: 42px !important;
  color: #fff !important;
  background: linear-gradient(90deg, var(--auth-blue), var(--auth-primary)) !important;
  border: 0 !important;
  border-radius: 10px !important;
  font-size: .78rem !important;
  font-weight: 800 !important;
  box-shadow: 0 8px 22px color-mix(in srgb, var(--auth-primary) 20%, transparent) !important;
}
body.auth-page .alert { color: var(--auth-text) !important; background: var(--auth-surface-2) !important; border-color: var(--auth-border) !important; border-radius: 10px !important; }
body.auth-page .alert-success { color: var(--auth-success) !important; background: color-mix(in srgb, var(--auth-success) 10%, var(--auth-surface)) !important; }
body.auth-page .alert-danger { color: var(--auth-danger) !important; background: color-mix(in srgb, var(--auth-danger) 10%, var(--auth-surface)) !important; }
body.auth-page :where(.info-box,.instructions,.instruction-box,.help-box,.security-info,.otp-info) {
  color: var(--auth-text) !important;
  background: var(--auth-surface-2) !important;
  border-color: var(--auth-border) !important;
  border-radius: 12px !important;
}
body.auth-page :where(.info-box,.instructions,.instruction-box,.help-box,.security-info,.otp-info) * { color: inherit !important; }
body.auth-page :where(.info-box,.instructions,.instruction-box,.help-box,.security-info,.otp-info) p,
body.auth-page :where(.info-box,.instructions,.instruction-box,.help-box,.security-info,.otp-info) li,
body.auth-page :where(.info-box,.instructions,.instruction-box,.help-box,.security-info,.otp-info) small { color: var(--auth-muted) !important; }
body.auth-page a { color: var(--auth-blue) !important; }

body.auth-page .modal-overlay { color: var(--auth-text) !important; background: rgba(1, 17, 22, .72) !important; backdrop-filter: blur(6px) !important; }
body.auth-page .modal-container { color: var(--auth-text) !important; background: var(--auth-surface) !important; border: 1px solid var(--auth-border) !important; border-radius: 18px !important; box-shadow: var(--auth-shadow) !important; }

@media (max-width: 900px) {
  .mhs-auth-shell { grid-template-columns: 1fr; width: min(620px, calc(100vw - 28px)); gap: 14px; padding-top: 68px; }
  .mhs-auth-story { min-height: auto; padding: 24px; }
  .mhs-auth-story-copy { margin: 28px 0 22px; }
  .mhs-auth-story-copy h1 { font-size: clamp(2rem, 9vw, 3rem); }
  .mhs-auth-form-panel { align-items: flex-start; }
}
@media (max-width: 560px) {
  body.auth-page [data-mhs-theme-toggle] { top: 10px !important; right: 10px !important; width: 40px !important; padding: 0 !important; }
  body.auth-page [data-mhs-theme-toggle] span { display: none !important; }
  .mhs-auth-shell { width: calc(100vw - 18px); padding-top: 60px; padding-bottom: 18px; }
  .mhs-auth-story { padding: 19px; border-radius: 17px; }
  .mhs-auth-service-grid { grid-template-columns: 1fr; }
  .mhs-auth-story-footer { flex-direction: column; align-items: flex-start; gap: 7px; }
  body.auth-page .login-card,
  body.auth-page .forgot-card,
  body.auth-page .otp-card,
  body.auth-page .verify-card,
  body.auth-page .reset-card { padding: 20px !important; border-radius: 16px !important; }
}

/* ========================================================================== */
/* Successful sign-in transition                                               */
/* ========================================================================== */
.mhs-auth-redirect {
    min-height: 100vh;
    display: grid;
    place-items: center;
    padding: 32px 20px;
}

.mhs-redirect-shell {
    width: min(100%, 520px);
}

.mhs-redirect-card {
    position: relative;
    overflow: hidden;
    text-align: center;
    padding: 40px 38px 34px;
    border: 1px solid var(--auth-border);
    border-radius: 24px;
    background: var(--auth-surface);
    color: var(--auth-text);
    box-shadow: 0 24px 70px rgba(6, 35, 47, .22);
    backdrop-filter: blur(18px);
}

.mhs-redirect-card::before {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 4px;
    background: linear-gradient(90deg, #197ca7, #0d9c7f, #e7b928);
}

.mhs-redirect-logo {
    width: 76px;
    height: 76px;
    object-fit: contain;
    margin-bottom: 18px;
    padding: 8px;
    border-radius: 20px;
    background: #fff;
    box-shadow: 0 10px 30px rgba(9, 50, 65, .16);
}

.mhs-redirect-check {
    width: 58px;
    height: 58px;
    display: grid;
    place-items: center;
    margin: 0 auto 18px;
    border-radius: 50%;
    background: color-mix(in srgb, #0d9c7f 15%, var(--auth-surface));
    color: #0d9c7f;
    font-size: 25px;
}

.mhs-redirect-card h1 {
    margin: 0 0 10px;
    font-size: clamp(1.55rem, 4vw, 2rem);
    color: var(--auth-text);
}

.mhs-redirect-card p {
    margin: 0;
    color: var(--auth-muted);
    line-height: 1.6;
}

.mhs-redirect-destination {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 22px 0;
    padding: 10px 14px;
    border: 1px solid var(--auth-border);
    border-radius: 999px;
    background: var(--auth-surface-2);
    color: var(--auth-text);
    font-weight: 700;
}

.mhs-redirect-progress {
    height: 7px;
    overflow: hidden;
    margin: 2px 0 14px;
    border-radius: 999px;
    background: color-mix(in srgb, var(--auth-border) 72%, transparent);
}

.mhs-redirect-progress span {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: inherit;
    transform-origin: left center;
    background: linear-gradient(90deg, #197ca7, #0d9c7f);
    animation: mhsRedirectProgress 1.05s linear forwards;
}

@keyframes mhsRedirectProgress {
    from { transform: scaleX(0); }
    to { transform: scaleX(1); }
}

@media (prefers-reduced-motion: reduce) {
    .mhs-redirect-progress span { animation: none; transform: scaleX(1); }
}

/* ========================================================================== */
/* V4.1 authentication theme completion                                       */
/* ========================================================================== */
body.auth-page :where(.glass-card,.forgot-card,.otp-card,.verify-card,.reset-card,.login-card) {
  width: min(100%, 470px) !important;
  margin-inline: auto !important;
  color: var(--auth-text) !important;
  background: var(--auth-surface) !important;
  border: 1px solid var(--auth-border) !important;
  border-top: 4px solid var(--auth-primary) !important;
  border-radius: 20px !important;
  box-shadow: var(--auth-shadow) !important;
}
body.auth-page .glass-card { padding: 28px !important; }
body.auth-page :where(.guidelines-box,.warning-box,.requirements-list,.timer-display,.otp-expiry-display,.match-indicator,.separator,.info-box) {
  color: var(--auth-text) !important;
  background: var(--auth-surface-2) !important;
  border-color: var(--auth-border) !important;
}
body.auth-page :where(.guidelines-box,.warning-box,.requirements-list,.timer-display,.otp-expiry-display,.match-indicator,.info-box) :where(p,li,span,small) {
  color: var(--auth-muted) !important;
}
body.auth-page :where(.guideline-item,.requirements-list li) { color: var(--auth-muted) !important; }
body.auth-page :where(.guideline-item i,.requirements-list i) { color: var(--auth-primary) !important; }
body.auth-page :where(.input-group-text,.password-toggle) {
  color: var(--auth-muted) !important;
  background: var(--auth-surface-2) !important;
  border-color: var(--auth-border) !important;
}
body.auth-page .password-toggle:hover { color: var(--auth-primary) !important; background: color-mix(in srgb,var(--auth-primary) 10%,var(--auth-surface)) !important; }
body.auth-page :where(.btn-outline-light-custom,.btn-secondary-custom,.btn-modal) {
  color: var(--auth-text) !important;
  background: var(--auth-surface-2) !important;
  border: 1px solid var(--auth-border) !important;
}
body.auth-page :where(.btn-outline-light-custom,.btn-secondary-custom,.btn-modal):hover { border-color: var(--auth-primary) !important; }
body.auth-page :where(.btn-close,.modal-close) {
  color: var(--auth-text) !important;
  background-color: var(--auth-surface-2) !important;
  border: 1px solid var(--auth-border) !important;
  background-image: none !important;
  opacity: 1 !important;
}
body.auth-page :where(.btn-close,.modal-close)::before {
  content: "×" !important;
  display: grid !important;
  place-items: center !important;
  color: var(--auth-text) !important;
  font-size: 1rem !important;
  line-height: 1 !important;
}
body.auth-page :where(.modal-container,.modal-header-custom,.modal-body-custom,.modal-footer-custom) {
  color: var(--auth-text) !important;
  border-color: var(--auth-border) !important;
}
body.auth-page :where(.modal-header-custom,.modal-footer-custom) { background: var(--auth-surface-2) !important; }
body.auth-page .modal-body-custom { background: var(--auth-surface) !important; }
body.auth-page :where(.form-check-input) { background-color: var(--auth-surface) !important; border-color: var(--auth-border) !important; }
body.auth-page .form-check-input:checked { background-color: var(--auth-primary) !important; border-color: var(--auth-primary) !important; }
body.auth-page :where(select,.form-select) {
  appearance: auto !important;
  -webkit-appearance: auto !important;
  background-image: none !important;
  color-scheme: light;
}
html[data-mhs-theme="dark"] body.auth-page :where(select,.form-select) { color-scheme: dark; }
html[data-mhs-theme="dark"] body.auth-page :where(.text-light-emphasis,.text-dark,.text-black) { color: var(--auth-muted) !important; }
html[data-mhs-theme="dark"] body.auth-page :where([style*="background: white"],[style*="background:white"],[style*="background: #fff"],[style*="background:#fff"],[style*="background-color: white"],[style*="background-color:white"]) {
  background: var(--auth-surface) !important;
  background-color: var(--auth-surface) !important;
}
html[data-mhs-theme="dark"] body.auth-page :where([style*="color: #333"],[style*="color:#333"],[style*="color: #555"],[style*="color:#555"],[style*="color: #666"],[style*="color:#666"]) { color: var(--auth-text) !important; }

@media (max-width: 560px) {
  body.auth-page .glass-card { width: calc(100vw - 18px) !important; padding: 20px !important; border-radius: 16px !important; }
}
body.auth-page :where(.btn-close,.modal-close) {
  width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  padding: 0 !important;
  border-radius: 8px !important;
}

/* ========================================================================== */
/* Authentication V4.3 — checkbox, unified dialogs, compact privacy accordion */
/* ========================================================================== */
body.auth-page .form-check {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 30px !important;
  padding-left: 0 !important;
  margin-bottom: 14px !important;
}
body.auth-page .form-check-input[type="checkbox"] {
  appearance: none !important;
  -webkit-appearance: none !important;
  flex: 0 0 19px !important;
  width: 19px !important;
  height: 19px !important;
  min-height: 19px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 1.5px solid var(--auth-border) !important;
  border-radius: 6px !important;
  background: var(--auth-surface-2) center/12px 12px no-repeat !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--auth-border) 40%, transparent) !important;
  cursor: pointer !important;
  transition: background-color .15s ease, border-color .15s ease, box-shadow .15s ease !important;
}
body.auth-page .form-check-input[type="checkbox"]:checked {
  border-color: var(--auth-primary) !important;
  background-color: var(--auth-primary) !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='white' stroke-linecap='round' stroke-linejoin='round' stroke-width='2.2' d='m3 8 3 3 7-7'/%3E%3C/svg%3E") !important;
}
body.auth-page .form-check-input[type="checkbox"]:focus-visible {
  outline: 0 !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--auth-primary) 22%, transparent) !important;
}
body.auth-page .form-check-label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  margin: 0 !important;
  color: var(--auth-text) !important;
  cursor: pointer !important;
  user-select: none !important;
}

/* One information/policy modal architecture in both themes. */
body.auth-page .modal-overlay {
  padding: 18px !important;
  background: rgba(1, 17, 22, .72) !important;
  backdrop-filter: blur(7px) !important;
}
body.auth-page .modal-container.mhs-auth-info-modal {
  width: min(100%, 720px) !important;
  max-height: min(88dvh, 760px) !important;
  color: var(--auth-text) !important;
  background: var(--auth-surface) !important;
  border: 1px solid var(--auth-border) !important;
  border-radius: 18px !important;
  box-shadow: var(--auth-shadow) !important;
}
body.auth-page .mhs-auth-policy-modal { width: min(100%, 760px) !important; }
body.auth-page .modal-header-custom {
  min-height: 62px !important;
  padding: 13px 58px 13px 17px !important;
  color: var(--auth-text) !important;
  background: var(--auth-surface-2) !important;
  border-bottom: 1px solid var(--auth-border) !important;
  border-radius: 18px 18px 0 0 !important;
}
body.auth-page .modal-header-custom.warning,
body.auth-page .modal-header-custom.privacy,
body.auth-page .modal-header-custom.success {
  background: var(--auth-surface-2) !important;
}
body.auth-page .modal-header-custom::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--auth-primary);
  border-radius: 18px 0 0 0;
}
body.auth-page .modal-header-custom.warning::before { background: #d9a72a; }
body.auth-page .modal-header-custom h2,
body.auth-page .modal-header-custom h2 i { color: var(--auth-text) !important; }
body.auth-page .modal-header-custom h2 { font-size: 1.02rem !important; }
body.auth-page .modal-close {
  position: absolute !important;
  top: 12px !important;
  right: 14px !important;
  width: 36px !important;
  height: 36px !important;
  color: var(--auth-text) !important;
  background: var(--auth-surface) !important;
  border: 1px solid var(--auth-border) !important;
  border-radius: 9px !important;
}
body.auth-page .modal-close:hover { color: #fff !important; background: var(--auth-danger) !important; border-color: var(--auth-danger) !important; }
body.auth-page .modal-body-custom {
  padding: 17px !important;
  color: var(--auth-text) !important;
  background: var(--auth-surface) !important;
  border: 0 !important;
}
body.auth-page .modal-body-custom :where(h3,strong) { color: var(--auth-text) !important; }
body.auth-page .modal-body-custom :where(p,li,small) { color: var(--auth-muted) !important; }
body.auth-page .modal-body-custom h3 { border-left-color: var(--auth-primary) !important; }
body.auth-page .modal-footer-custom {
  min-height: 58px !important;
  display: flex !important;
  justify-content: flex-end !important;
  gap: 8px !important;
  padding: 10px 16px !important;
  color: var(--auth-text) !important;
  background: var(--auth-surface-2) !important;
  border-top: 1px solid var(--auth-border) !important;
}
body.auth-page .btn-modal {
  min-height: 38px !important;
  padding: 8px 13px !important;
  color: #fff !important;
  background: var(--auth-primary) !important;
  border: 1px solid var(--auth-primary) !important;
  border-radius: 9px !important;
  font-weight: 800 !important;
}
body.auth-page :where(.warning-box,.info-box) {
  color: var(--auth-text) !important;
  background: var(--auth-surface-2) !important;
  border-color: var(--auth-border) !important;
}
body.auth-page :where(.warning-box,.info-box) * { color: inherit !important; }

/* Privacy Policy: numbered disclosure rows replace the very long document. */
.mhs-policy-accordion {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}
.mhs-policy-item {
  overflow: hidden;
  color: var(--auth-text);
  background: var(--auth-surface-2);
  border: 1px solid var(--auth-border);
  border-radius: 11px;
}
.mhs-policy-item summary {
  display: grid;
  grid-template-columns: 30px minmax(0,1fr) 22px;
  align-items: center;
  gap: 10px;
  min-height: 48px;
  padding: 8px 12px;
  color: var(--auth-text) !important;
  cursor: pointer;
  list-style: none;
  font-size: .8rem;
  font-weight: 800;
}
.mhs-policy-item summary::-webkit-details-marker { display: none; }
.mhs-policy-number {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  color: #fff !important;
  background: var(--auth-primary);
  border-radius: 8px;
  font-size: .72rem;
  font-weight: 850;
}
.mhs-policy-item summary > i {
  color: var(--auth-muted) !important;
  transition: transform .16s ease;
}
.mhs-policy-item[open] summary > i { transform: rotate(180deg); }
.mhs-policy-item[open] summary {
  color: var(--auth-text) !important;
  background: color-mix(in srgb, var(--auth-primary) 8%, var(--auth-surface-2));
  border-bottom: 1px solid var(--auth-border);
}
.mhs-policy-content {
  padding: 12px 14px 13px 52px;
  color: var(--auth-muted);
  background: var(--auth-surface);
}
.mhs-policy-content :where(p,li) { color: var(--auth-muted) !important; font-size: .78rem !important; line-height: 1.55 !important; }
.mhs-policy-content ul { margin: 5px 0 0; padding-left: 18px; }
.mhs-policy-contact { margin-top: 7px !important; }

/* Brand panel keeps its high-contrast identity in both themes. */
body.auth-page .mhs-auth-story,
body.auth-page .mhs-auth-story :where(h1,h2,h3,strong) { color: #fff !important; }
body.auth-page .mhs-auth-story :where(p,small,span) { color: #d7ece9 !important; }
body.auth-page .mhs-auth-story .mhs-auth-story-brand span { color: #b8ddda !important; }
body.auth-page .mhs-auth-story .mhs-auth-eyebrow { color: #eff9d7 !important; }

@media (max-width: 560px) {
  body.auth-page .modal-overlay { padding: 7px !important; }
  body.auth-page .modal-container.mhs-auth-info-modal { max-height: calc(100dvh - 14px) !important; border-radius: 14px !important; }
  .mhs-policy-content { padding-left: 14px; }
  .mhs-policy-item summary { grid-template-columns: 28px minmax(0,1fr) 18px; padding-inline: 10px; }
}


/* V4.3 auth consistency */
.auth-page input[type="checkbox"] { appearance:none !important; -webkit-appearance:none !important; width:20px !important; height:20px !important; min-width:20px !important; margin:0 !important; display:inline-grid !important; place-content:center !important; border:1.5px solid var(--auth-border,#b9cbd0) !important; border-radius:6px !important; background:var(--auth-input,#fff) !important; cursor:pointer !important; }
.auth-page input[type="checkbox"]::before { content:""; width:9px; height:5px; border-left:2px solid #fff; border-bottom:2px solid #fff; transform:rotate(-45deg) scale(0); transform-origin:center; transition:transform .12s ease; }
.auth-page input[type="checkbox"]:checked { background:#0f8c7e !important; border-color:#0f8c7e !important; }
.auth-page input[type="checkbox"]:checked::before { transform:rotate(-45deg) scale(1); }
.auth-page input[type="checkbox"]:focus-visible { outline:3px solid color-mix(in srgb,#29b6a9 28%,transparent) !important; outline-offset:2px !important; }
.auth-page .privacy-accordion details { color:var(--auth-text) !important; background:var(--auth-surface-2) !important; border:1px solid var(--auth-border) !important; border-radius:12px !important; overflow:hidden !important; }
.auth-page .privacy-accordion details + details { margin-top:8px !important; }
.auth-page .privacy-accordion summary { cursor:pointer !important; list-style:none !important; padding:12px 42px 12px 14px !important; color:var(--auth-heading) !important; font-weight:750 !important; position:relative !important; }
.auth-page .privacy-accordion summary::-webkit-details-marker { display:none; }
.auth-page .privacy-accordion summary::after { content:"⌄"; position:absolute; right:14px; top:50%; transform:translateY(-50%); color:var(--auth-muted); font-size:1.1rem; }
.auth-page .privacy-accordion details[open] summary::after { transform:translateY(-50%) rotate(180deg); }
.auth-page .privacy-accordion .privacy-section-body { padding:0 14px 14px !important; color:var(--auth-muted) !important; }

.auth-page .mhs-policy-accordion details { color:var(--auth-text) !important; background:var(--auth-surface-2) !important; border:1px solid var(--auth-border) !important; border-radius:12px !important; overflow:hidden !important; }
.auth-page .mhs-policy-accordion details + details { margin-top:8px !important; }
.auth-page .mhs-policy-accordion summary { cursor:pointer !important; list-style:none !important; padding:12px 42px 12px 14px !important; color:var(--auth-heading) !important; font-weight:750 !important; position:relative !important; }
.auth-page .mhs-policy-accordion summary::-webkit-details-marker { display:none !important; }
.auth-page .mhs-policy-accordion summary > i.fa-chevron-down { position:absolute !important; right:14px !important; top:50% !important; transform:translateY(-50%) !important; transition:transform .15s ease !important; }
.auth-page .mhs-policy-accordion details[open] summary > i.fa-chevron-down { transform:translateY(-50%) rotate(180deg) !important; }
.auth-page .mhs-policy-content { padding:0 14px 14px !important; color:var(--auth-muted) !important; }
