:root {
  --login-bg: #f4f7fb;
  --login-line: #dfe7f1;
  --login-text: #172b3d;
  --login-muted: #738198;
  --login-blue: #2563eb;
  --login-blue-soft: #eef4ff;
  --login-green: #16a36a;
  --login-red: #dc4c43;
  --login-navy: #173a67;
  --login-gold: #d58a00
}

.auth-login-page {
  min-height: 100vh;
  margin: 0;
  background: var(--login-bg);
  color: var(--login-text);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  display: grid;
  place-items: center;
  padding: 24px
}

.auth-login-shell {
  width: min(930px, 100%);
  min-height: 548px;
  display: grid;
  grid-template-columns: .92fr 1.08fr;
  background: #fff;
  border: 1px solid var(--login-line);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: none
}

.auth-login-brand {
  position: relative;
  padding: 42px;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, #163a69 0%, #24559a 100%);
  color: #fff
}

.auth-login-brand:after {
  content: "";
  position: absolute;
  left: 42px;
  right: 42px;
  bottom: 86px;
  height: 1px;
  background: rgba(255, 255, 255, .16)
}

.auth-brand-mark {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--login-navy);
  font-size: 24px;
  font-weight: 900;
  letter-spacing: -.04em
}

.auth-brand-copy {
  margin: auto 0;
  padding: 36px 0 54px
}

.auth-eyebrow {
  display: block;
  font-size: 10px;
  line-height: 1.3;
  font-weight: 900;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #94a3b8
}

.auth-login-brand .auth-eyebrow {
  color: #c8daf5
}

.auth-brand-copy h1 {
  font-size: clamp(30px, 4.5vw, 46px);
  line-height: 1.03;
  letter-spacing: -.045em;
  margin: 9px 0 10px
}

.auth-brand-copy p {
  margin: 0;
  color: #dbe8fa;
  font-size: 13px;
  line-height: 1.6
}

.auth-brand-note {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 3px;
  color: #d6e3f7;
  font-size: 11px
}

.auth-brand-note strong {
  color: #fff;
  font-size: 12px
}

.auth-login-card {
  padding: 48px;
  display: flex;
  flex-direction: column;
  justify-content: center
}

.auth-login-heading {
  margin-bottom: 24px
}

.auth-login-heading h2 {
  font-size: 29px;
  letter-spacing: -.035em;
  margin: 6px 0 5px
}

.auth-login-heading p {
  margin: 0;
  color: var(--login-muted);
  font-size: 12px;
  line-height: 1.55
}

.auth-login-alert {
  display: none;
  margin: 0 0 18px;
  padding: 10px 12px;
  border: 1px solid #f0c2bf;
  border-radius: 8px;
  background: #fff7f6;
  color: #a73530;
  font-size: 12px;
  line-height: 1.45
}

.auth-login-alert.is-visible {
  display: block
}

.auth-login-alert.is-success {
  border-color: #b9e2ce;
  background: #f2fbf6;
  color: #12764d
}

.auth-login-form {
  display: grid;
  gap: 16px
}

.auth-field {
  display: grid;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  color: #34465d
}

.auth-input-wrap {
  position: relative
}

.auth-field input {
  display: block;
  width: 100%;
  min-height: 46px;
  border: 1px solid #ccd8e6;
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  color: var(--login-text);
  font: inherit;
  font-size: 13px;
  outline: none;
  box-shadow: none !important
}

.auth-field input:hover {
  border-color: #aebdd0
}

.auth-field input:focus {
  border-color: #4d7fc9;
  box-shadow: none !important
}

.auth-field input::placeholder {
  color: #a0adbd
}

.auth-password-input {
  padding-right: 78px !important
}

.auth-password-toggle {
  position: absolute;
  top: 5px;
  right: 5px;
  bottom: 5px;
  min-width: 66px;
  border: 0;
  border-left: 1px solid #e5ebf2;
  border-radius: 5px;
  background: #f8fafc;
  color: #586a80;
  padding: 0 9px;
  font: inherit;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer
}

.auth-password-toggle:hover {
  background: var(--login-blue-soft);
  color: var(--login-blue)
}

.auth-submit {
  min-height: 46px;
  margin-top: 2px;
  border: 0;
  border-radius: 8px;
  background: var(--login-blue);
  color: #fff;
  padding: 0 15px;
  font: inherit;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  transition: background .15s ease
}

.auth-submit:hover {
  background: #1f56ca
}

.auth-submit:disabled {
  cursor: wait;
  opacity: .72
}

.auth-submit-arrow {
  font-size: 17px;
  line-height: 1
}

.auth-submit-spinner {
  display: none;
  width: 14px;
  height: 14px;
  border: 2px solid rgba(255, 255, 255, .4);
  border-top-color: #fff;
  border-radius: 50%;
  animation: auth-spin .65s linear infinite
}

.auth-submit.is-loading .auth-submit-arrow {
  display: none
}

.auth-submit.is-loading .auth-submit-spinner {
  display: block
}

.auth-login-footer {
  margin-top: 22px;
  padding-top: 17px;
  border-top: 1px solid #e7edf4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--login-muted);
  font-size: 10px
}

.auth-switch-link {
  color: var(--login-blue);
  text-decoration: none;
  font-weight: 900;
  white-space: nowrap
}

.auth-switch-link:hover {
  text-decoration: underline
}

.auth-login-status {
  min-height: 15px;
  margin-top: 10px;
  color: var(--login-muted);
  font-size: 10px
}

.auth-login-status[data-state="success"] {
  color: var(--login-green)
}

.auth-login-status[data-state="error"] {
  color: var(--login-red)
}

@keyframes auth-spin {
  to {
    transform: rotate(360deg)
  }
}

@media(max-width:760px) {
  .auth-login-page {
    display: block;
    padding: 0;
    background: #fff
  }

  .auth-login-shell {
    min-height: 100vh;
    border: 0;
    border-radius: 0;
    display: block
  }

  .auth-login-brand {
    min-height: 215px;
    padding: 26px
  }

  .auth-login-brand:after {
    display: none
  }

  .auth-brand-mark {
    width: 42px;
    height: 42px;
    font-size: 21px
  }

  .auth-brand-copy {
    padding: 29px 0 10px;
    margin: 0
  }

  .auth-brand-copy h1 {
    font-size: 31px
  }

  .auth-brand-note {
    display: none
  }

  .auth-login-card {
    padding: 30px 26px 40px
  }

  .auth-login-heading h2 {
    font-size: 26px
  }

  .auth-login-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px
  }
}

@media(prefers-reduced-motion:reduce) {
  .auth-submit {
    transition: none
  }

  .auth-submit-spinner {
    animation-duration: 1.2s
  }
}


/* M74 — login follows the global theme preset. */
.auth-login-page[data-theme] {
  --theme-primary: #2563eb;
  --theme-primary-hover: #1d4ed8;
  --theme-accent: #06b6d4;
  --theme-soft: #eff6ff;
  --theme-rgb: 37, 99, 235;
  --login-blue: var(--theme-primary);
  --login-blue-soft: var(--theme-soft)
}

.auth-login-page[data-theme="emerald"] {
  --theme-primary: #059669;
  --theme-primary-hover: #047857;
  --theme-accent: #14b8a6;
  --theme-soft: #ecfdf5;
  --theme-rgb: 5, 150, 105
}

.auth-login-page[data-theme="violet"] {
  --theme-primary: #7c3aed;
  --theme-primary-hover: #6d28d9;
  --theme-accent: #a855f7;
  --theme-soft: #f5f3ff;
  --theme-rgb: 124, 58, 237
}

.auth-login-page[data-theme="coral"] {
  --theme-primary: #e85d4a;
  --theme-primary-hover: #cf4938;
  --theme-accent: #f59e0b;
  --theme-soft: #fff3f0;
  --theme-rgb: 232, 93, 74
}

.auth-login-page[data-theme="sunset"] {
  --theme-primary: #ea580c;
  --theme-primary-hover: #c2410c;
  --theme-accent: #eab308;
  --theme-soft: #fff7ed;
  --theme-rgb: 234, 88, 12
}

.auth-login-page[data-theme="cyan"] {
  --theme-primary: #0891b2;
  --theme-primary-hover: #0e7490;
  --theme-accent: #2563eb;
  --theme-soft: #ecfeff;
  --theme-rgb: 8, 145, 178
}

.auth-login-page[data-theme="berry"] {
  --theme-primary: #db2777;
  --theme-primary-hover: #be185d;
  --theme-accent: #8b5cf6;
  --theme-soft: #fdf2f8;
  --theme-rgb: 219, 39, 119
}

.auth-login-page[data-theme] .auth-login-brand {
  background: linear-gradient(160deg, color-mix(in srgb, var(--theme-primary) 78%, #142b46), var(--theme-primary)) !important
}

.auth-login-page[data-theme] .auth-brand-mark {
  color: var(--theme-primary) !important
}

.auth-login-page[data-theme] .auth-submit {
  background: var(--theme-primary) !important
}

.auth-login-page[data-theme] .auth-submit:hover {
  background: var(--theme-primary-hover) !important
}

.auth-login-page[data-theme] .auth-field input:focus {
  border-color: var(--theme-primary) !important
}

.auth-login-page[data-theme] .auth-password-toggle:hover {
  background: var(--theme-soft) !important;
  color: var(--theme-primary) !important
}

.auth-login-page[data-theme] .auth-switch-link {
  color: var(--theme-primary) !important
}

/* M75 — login decorative accent follows selected theme. */
.auth-login-page[data-theme] .auth-login-card .auth-eyebrow,
.auth-login-page[data-theme] .auth-switch-link {
  color: var(--theme-primary) !important
}

/* M78 branding */
.auth-brand-logos {
  display: flex;
  align-items: center;
  gap: 10px
}

.auth-brand-logo {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border: 1px solid var(--classic-line, #dbe4ef);
  border-radius: 10px;
  background: #fff;
  padding: 5px
}

.auth-brand-logo.ministry {
  width: 48px;
  height: 48px
}

/* M90 — Auth polish + Bootstrap-like validation */
.auth-login-form.needs-validation .invalid-feedback {
  display: none;
  margin: 0;
  color: #c43d3d;
  font-size: 10px;
  font-weight: 700;
  line-height: 1.35;
}

.auth-login-form.needs-validation .auth-field.field-invalid .invalid-feedback,
.auth-login-form.needs-validation .auth-field:has(input.is-invalid) .invalid-feedback {
  display: block
}

.auth-login-form.needs-validation .auth-field input.is-invalid {
  border-color: #dc4c43 !important;
  background: #fffafa !important;
  box-shadow: 0 0 0 3px rgba(220, 76, 67, .08) !important;
}

.auth-login-form.needs-validation .auth-field input.is-invalid:focus {
  border-color: #c93d36 !important;
  box-shadow: 0 0 0 3px rgba(220, 76, 67, .12) !important;
}

.auth-login-form.needs-validation .auth-field input.is-valid {
  border-color: #8bcbae !important;
  background: #fff !important;
}

.auth-login-form.needs-validation .auth-field input.is-valid:focus {
  border-color: #50ad80 !important;
  box-shadow: 0 0 0 3px rgba(22, 163, 106, .08) !important;
}

.auth-password-toggle {
  z-index: 3 !important;
  isolation: isolate;
  appearance: none !important;
  -webkit-appearance: none !important;
  opacity: 1 !important;
  -webkit-text-fill-color: currentColor !important;
  text-shadow: none !important;
  box-shadow: none !important;
  line-height: 1 !important;
  overflow: hidden;
}

.auth-password-toggle::before,
.auth-password-toggle::after {
  content: none !important;
  display: none !important
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
  background: var(--login-blue-soft) !important;
  color: var(--login-blue) !important;
  -webkit-text-fill-color: var(--login-blue) !important;
  outline: none !important;
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, .12) !important;
}

.auth-login-page[data-theme] .auth-password-toggle:hover,
.auth-login-page[data-theme] .auth-password-toggle:focus-visible {
  background: var(--theme-soft) !important;
  color: var(--theme-primary) !important;
  -webkit-text-fill-color: var(--theme-primary) !important;
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--theme-primary) 18%, transparent) !important;
}

.auth-password-toggle:active {
  transform: none !important
}

.auth-input-wrap:has(input.is-invalid) .auth-password-toggle {
  border-left-color: #efc2bf
}

/* M135 — unified Candy fallback avatar */
.auth-brand-fallback {
  background: var(--theme-primary, var(--login-blue, #2563eb)) !important;
  color: #fff !important;
  border: 1px solid rgba(255, 255, 255, .46) !important;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .14) !important;
}

.auth-brand-logos .auth-brand-fallback {
  flex: 0 0 auto
}


/* M138 / 1.0.0 Stable — login branding visibility + participant badge */
.auth-login-page[data-theme] .auth-login-brand .auth-brand-mark.auth-brand-fallback {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  background: color-mix(in srgb, var(--theme-primary) 72%, #fff 28%) !important;
  border-color: rgba(255, 255, 255, .58) !important;
  box-shadow: 0 10px 24px rgba(15, 23, 42, .18) !important;
  font-weight: 950 !important;
  text-shadow: 0 1px 1px rgba(15, 23, 42, .16);
}

.auth-login-heading .auth-login-badge {
  display: inline-flex;
  align-items: center;
  width: max-content;
  min-height: 28px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--theme-soft, var(--login-blue-soft, #eef4ff));
  border: 1px solid color-mix(in srgb, var(--theme-primary, var(--login-blue, #2563eb)) 20%, transparent);
  color: var(--theme-primary, var(--login-blue, #2563eb)) !important;
  -webkit-text-fill-color: var(--theme-primary, var(--login-blue, #2563eb)) !important;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .12em;
  line-height: 1;
}

.auth-login-heading .auth-login-badge+h2 {
  margin-top: 12px
}


/* Stable login polish */
.auth-password-toggle {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 76px;
  color: var(--theme-primary, var(--login-blue, #2563eb));
  background: var(--theme-soft, #f8fafc);
  border-left-color: color-mix(in srgb, var(--theme-primary, var(--login-blue, #2563eb)) 16%, #dbe4ef);
}

.auth-password-eye {
  position: relative;
  width: 14px;
  height: 10px;
  display: inline-block;
  border: 1.6px solid currentColor;
  border-radius: 50%/60%;
  flex: none
}

.auth-password-eye:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  transform: translate(-50%, -50%)
}

.auth-password-toggle:hover,
.auth-password-toggle:focus-visible {
  background: color-mix(in srgb, var(--theme-primary, var(--login-blue, #2563eb)) 10%, #fff) !important;
  color: var(--theme-primary, var(--login-blue, #2563eb)) !important;
  outline: none
}

/* Responsive login refresh */
.auth-login-page {
  --login-text: #17243b;
  --login-muted: #748198;
  min-height: 100vh;
  min-height: 100svh;
  padding: clamp(16px, 4vw, 48px);
  background:
    radial-gradient(ellipse at 12% 12%, rgba(37, 99, 235, .09), transparent 34rem),
    radial-gradient(ellipse at 92% 88%, rgba(6, 182, 212, .08), transparent 30rem),
    #f3f6fb;
}

.auth-login-shell {
  width: min(1080px, 100%);
  min-height: 620px;
  grid-template-columns: .95fr 1.05fr;
  border: 1px solid rgba(255, 255, 255, .9);
  border-radius: 28px;
  box-shadow: 0 28px 80px rgba(24, 43, 74, .14), 0 4px 14px rgba(24, 43, 74, .05);
}

.auth-login-brand {
  isolation: isolate;
  overflow: hidden;
  min-width: 0;
  padding: clamp(30px, 5vw, 58px);
  background: linear-gradient(145deg, #15355f 0%, #1c4d83 54%, #176d91 100%);
}

.auth-login-page[data-theme] .auth-login-brand {
  background:
    radial-gradient(circle at 88% 18%, color-mix(in srgb, var(--theme-accent) 42%, transparent), transparent 13rem),
    linear-gradient(145deg, color-mix(in srgb, var(--theme-primary) 38%, #102641), color-mix(in srgb, var(--theme-primary) 82%, #176d91)) !important;
}

.auth-login-brand::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 360px;
  height: 360px;
  top: 22%;
  right: -190px;
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: 50%;
  box-shadow: 0 0 0 34px rgba(255, 255, 255, .035), 0 0 0 70px rgba(255, 255, 255, .025);
  pointer-events: none;
}

.auth-login-brand::after {
  left: clamp(30px, 5vw, 58px);
  right: clamp(30px, 5vw, 58px);
  bottom: 116px;
  background: rgba(255, 255, 255, .18);
}

.auth-brand-logos {
  gap: 12px;
}

.auth-brand-logo,
.auth-brand-logo.ministry {
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, .45);
  border-radius: 15px;
  padding: 6px;
  box-shadow: 0 8px 24px rgba(7, 21, 43, .14);
}

.auth-brand-mark {
  width: 52px;
  height: 52px;
  border-radius: 15px;
}

.auth-brand-copy {
  position: relative;
  z-index: 1;
  margin: auto 0;
  padding: 46px 0 70px;
}

.auth-brand-copy h1 {
  max-width: 440px;
  font-size: clamp(34px, 4vw, 50px);
  line-height: 1.04;
  overflow-wrap: anywhere;
}

.auth-brand-copy p {
  max-width: 390px;
  font-size: 14px;
}

.auth-brand-note {
  z-index: 1;
  gap: 5px;
  padding: 15px 17px;
  border: 1px solid rgba(255, 255, 255, .17);
  border-radius: 15px;
  background: rgba(255, 255, 255, .08);
  color: rgba(239, 246, 255, .82);
  backdrop-filter: blur(12px);
  font-size: 12px;
}

.auth-brand-note strong {
  font-size: 13px;
}

.auth-login-card {
  min-width: 0;
  padding: clamp(30px, 5.5vw, 72px);
}

.auth-login-heading {
  margin-bottom: 30px;
}

.auth-login-heading h2 {
  margin: 10px 0 8px;
  color: var(--login-text);
  font-size: clamp(28px, 3vw, 36px);
  line-height: 1.12;
}

.auth-login-heading p {
  max-width: 390px;
  font-size: 14px;
  line-height: 1.65;
}

.auth-login-heading .auth-login-badge {
  min-height: 30px;
  padding: 0 12px;
  font-size: 10px;
}

.auth-login-form {
  gap: 20px;
}

.auth-field {
  gap: 8px;
  color: #34445c;
  font-size: 12px;
}

.auth-field input {
  min-height: 54px;
  padding: 12px 15px;
  border-color: #d7e0ec;
  border-radius: 13px;
  background: #fbfcfe;
  font-size: 15px;
  transition: border-color .16s ease, box-shadow .16s ease, background .16s ease;
}

.auth-field input:hover {
  border-color: #b7c5d8;
  background: #fff;
}

.auth-field input:focus {
  border-color: var(--theme-primary, var(--login-blue)) !important;
  background: #fff;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--theme-primary, var(--login-blue)) 12%, transparent) !important;
}

.auth-field input::placeholder {
  color: #99a6b8;
}

.auth-login-form .auth-field:first-child input {
  padding-left: 44px;
}

.auth-field:first-child .auth-input-wrap::before,
.auth-field:first-child .auth-input-wrap::after {
  content: "";
  position: absolute;
  z-index: 1;
  left: 16px;
  pointer-events: none;
}

.auth-field:first-child .auth-input-wrap::before {
  top: calc(50% - 9px);
  width: 8px;
  height: 8px;
  border: 1.5px solid #91a0b4;
  border-radius: 50%;
}

.auth-field:first-child .auth-input-wrap::after {
  top: calc(50% + 2px);
  left: 13px;
  width: 14px;
  height: 7px;
  border: 1.5px solid #91a0b4;
  border-bottom: 0;
  border-radius: 9px 9px 0 0;
}

.auth-password-input {
  padding-right: 94px !important;
}

.auth-password-toggle {
  top: 6px;
  right: 6px;
  bottom: 6px;
  min-width: 78px;
  border-left: 1px solid #e4eaf2;
  border-radius: 9px;
  font-size: 11px;
}

.auth-submit {
  min-height: 54px;
  margin-top: 2px;
  padding: 0 18px;
  border-radius: 13px;
  box-shadow: 0 8px 18px color-mix(in srgb, var(--theme-primary, var(--login-blue)) 22%, transparent);
  font-size: 13px;
  transition: transform .16s ease, background .16s ease, box-shadow .16s ease;
}

.auth-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 11px 22px color-mix(in srgb, var(--theme-primary, var(--login-blue)) 27%, transparent);
}

.auth-submit:focus-visible,
.auth-password-toggle:focus-visible,
.auth-switch-link:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--theme-primary, var(--login-blue)) 35%, transparent);
  outline-offset: 3px;
}

.auth-login-alert {
  margin-bottom: 20px;
  padding: 12px 14px;
  border-radius: 12px;
  font-size: 13px;
}

.auth-login-status {
  margin-top: 12px;
}

.auth-login-footer {
  margin-top: 20px;
  padding-top: 19px;
  gap: 12px;
  font-size: 11px;
  line-height: 1.5;
}

.auth-switch-link {
  font-size: 11px;
}

@media (max-width: 900px) and (min-width: 761px) {
  .auth-login-shell {
    min-height: 570px;
    grid-template-columns: .88fr 1.12fr;
  }

  .auth-login-card {
    padding: 38px;
  }
}

@media (max-width: 760px) {
  .auth-login-page {
    display: grid;
    min-height: 100vh;
    min-height: 100svh;
    padding: 14px;
    background:
      radial-gradient(ellipse at 10% 0%, rgba(37, 99, 235, .08), transparent 24rem),
      #f3f6fb;
  }

  .auth-login-shell {
    width: min(520px, 100%);
    min-height: 0;
    margin: auto;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    border: 1px solid #e6ebf2;
    border-radius: 24px;
    box-shadow: 0 18px 48px rgba(24, 43, 74, .12);
  }

  .auth-login-brand {
    min-height: 0;
    padding: 24px 26px 26px;
    border-radius: 23px 23px 0 0;
  }

  .auth-login-brand::before {
    width: 240px;
    height: 240px;
    top: -105px;
    right: -112px;
    box-shadow: 0 0 0 24px rgba(255, 255, 255, .035), 0 0 0 50px rgba(255, 255, 255, .025);
  }

  .auth-login-brand::after {
    display: none;
  }

  .auth-brand-logo,
  .auth-brand-logo.ministry,
  .auth-brand-mark {
    width: 44px;
    height: 44px;
    border-radius: 13px;
  }

  .auth-brand-copy {
    margin: 0;
    padding: 23px 0 0;
  }

  .auth-brand-copy h1 {
    margin: 7px 0 5px;
    font-size: clamp(25px, 7vw, 34px);
  }

  .auth-brand-copy p {
    font-size: 12px;
  }

  .auth-brand-note {
    display: none;
  }

  .auth-login-card {
    padding: 28px 26px 24px;
  }

  .auth-login-heading {
    margin-bottom: 23px;
  }

  .auth-login-heading h2 {
    font-size: 29px;
  }

  .auth-login-heading p {
    font-size: 13px;
  }

  .auth-login-form {
    gap: 17px;
  }

  .auth-login-footer {
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 10px;
  }
}

@media (max-width: 420px) {
  .auth-login-page {
    padding: 0;
    background: #fff;
  }

  .auth-login-shell {
    width: 100%;
    min-height: 100vh;
    min-height: 100svh;
    margin: 0;
    border: 0;
    border-radius: 0;
    box-shadow: none;
    align-content: start;
  }

  .auth-login-brand {
    padding: 22px 22px 24px;
    border-radius: 0;
  }

  .auth-login-card {
    padding: 27px 22px 24px;
  }

  .auth-login-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }
}

@media (max-height: 720px) and (min-width: 761px) {
  .auth-login-page {
    place-items: start center;
  }

  .auth-login-shell {
    min-height: 0;
  }

  .auth-login-brand,
  .auth-login-card {
    padding-top: 32px;
    padding-bottom: 32px;
  }

  .auth-brand-copy {
    padding-top: 28px;
    padding-bottom: 42px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-field input,
  .auth-submit {
    transition: none;
  }

  .auth-submit:hover {
    transform: none;
  }
}

.auth-brand-copy h1 {
  overflow-wrap: anywhere
}

@media(max-width:760px) {
  .auth-password-toggle {
    min-width: 72px
  }

  .auth-password-input {
    padding-right: 84px !important
  }
}


/* M139 — password visibility toggle must be readable in normal state */
.auth-login-page .auth-password-toggle,
.auth-login-page[data-theme] .auth-password-toggle {
  background: var(--theme-primary, var(--login-blue, #2563eb)) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  border-left-color: transparent !important;
  opacity: 1 !important;
}

.auth-login-page .auth-password-toggle .auth-password-toggle-label,
.auth-login-page[data-theme] .auth-password-toggle .auth-password-toggle-label,
.auth-login-page .auth-password-toggle .auth-password-eye,
.auth-login-page[data-theme] .auth-password-toggle .auth-password-eye {
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.auth-login-page .auth-password-toggle:hover,
.auth-login-page .auth-password-toggle:focus-visible,
.auth-login-page[data-theme] .auth-password-toggle:hover,
.auth-login-page[data-theme] .auth-password-toggle:focus-visible {
  background: color-mix(in srgb, var(--theme-primary, var(--login-blue, #2563eb)) 86%, #000) !important;
  color: #fff !important;
  -webkit-text-fill-color: #fff !important;
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--theme-primary, var(--login-blue, #2563eb)) 14%, transparent) !important;
}