body.login-page {
  position: relative;
  isolation: isolate;
  display: flex;
  min-height: 100vh;
  flex-direction: column;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 10% 0%, rgba(255,255,255,.9), transparent 32rem),
    radial-gradient(circle at 90% 70%, rgba(255,255,255,.68), transparent 34rem),
    linear-gradient(180deg, #f2f4f6 0%, #eceff2 100%);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 400;
}

body.login-page::before,
body.login-page::after {
  content: "";
  position: fixed;
  z-index: -1;
  border-radius: 50%;
  pointer-events: none;
}

body.login-page::before {
  width: 72vw;
  height: 72vw;
  left: -37vw;
  top: 20vh;
  border: 1px solid rgba(255,255,255,.7);
  box-shadow: 0 0 0 62px rgba(255,255,255,.12), 0 0 0 124px rgba(255,255,255,.08);
  transform: rotate(-13deg);
}

body.login-page::after {
  width: 64vw;
  height: 64vw;
  right: -34vw;
  bottom: -31vw;
  border: 1px solid rgba(255,255,255,.78);
  box-shadow: 0 0 0 58px rgba(255,255,255,.12), 0 0 0 116px rgba(255,255,255,.07);
}

.login-page .login-brand-header {
  position: relative;
  z-index: 5;
  display: flex;
  min-height: 68px;
  align-items: center;
  justify-content: center;
  padding: 0 24px;
  border: 0;
  background: transparent;
}

.login-page .login-brand-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  line-height: 0;
}

.login-page .login-header-logo {
  display: block;
  width: 180px;
  height: auto;
  background: transparent;
}

.login-page .login-shell {
  display: grid;
  width: 100%;
  max-width: none;
  flex: 1;
  place-items: center;
  padding: 34px 20px 58px;
}

.login-page .mfa-login-card {
  width: min(100%, 480px);
  max-width: none;
  padding: 34px 36px 30px;
  border: 1px solid rgba(213,220,224,.96);
  border-radius: 24px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 24px 70px rgba(28,36,43,.10), 0 2px 8px rgba(28,36,43,.04);
  backdrop-filter: blur(16px);
  animation: login-card-in .55s cubic-bezier(.2,.7,.2,1) both;
}

@keyframes login-card-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-card-header { text-align: center; }

.login-page .mfa-login-card h1 {
  margin: 0;
  color: #121a1f;
  font-size: 36px;
  font-weight: 700;
  letter-spacing: -.04em;
  line-height: 1.08;
}

.login-page .mfa-login-card .login-copy {
  max-width: 390px;
  margin: 11px auto 27px;
  color: #69737a;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.55;
}

.login-page .login-form-grid {
  display: grid;
  gap: 0;
}

.login-page .login-field {
  display: block;
  margin: 0;
  color: #1e272c;
  font-size: 13px;
  font-weight: 600;
}

.login-page .login-field + .login-field { margin-top: 17px; }

.login-page .login-field > label {
  display: block;
  margin: 0 0 8px;
  color: #1e272c;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0;
  line-height: 1.35;
  text-transform: none;
}

.login-page .login-input-wrap {
  position: relative;
  display: flex !important;
  width: 100%;
  height: 54px;
  min-height: 54px !important;
  align-items: center !important;
  overflow: hidden;
  border: 1px solid #ccd3d8;
  border-radius: 13px;
  background: rgba(255,255,255,.96);
  transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease, transform 160ms ease;
}

.login-page .login-input-wrap:focus-within {
  border-color: var(--bell-maroon);
  background: #fff;
  box-shadow: 0 0 0 4px rgba(166,43,69,.10);
  transform: translateY(-1px);
}

.login-page .login-input-icon {
  display: flex !important;
  width: 48px;
  height: 100%;
  flex: 0 0 48px;
  align-items: center !important;
  justify-content: center !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #77828a;
  line-height: 1;
}

.login-page .login-input-icon svg {
  display: block;
  width: 20px;
  height: 20px;
}

.login-page .mfa-login-card .login-input-wrap input {
  display: block;
  width: 100%;
  height: 52px !important;
  min-width: 0;
  min-height: 0 !important;
  margin: 0 !important;
  padding: 0 46px 0 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #182126;
  font-size: 14px;
  font-weight: 400;
  line-height: normal;
  outline: 0;
}

.login-page .mfa-login-card .login-input-wrap-plain input {
  padding: 0 14px !important;
  text-align: center;
  font-variant-numeric: tabular-nums;
  letter-spacing: .18em;
}

.login-page .mfa-login-card .login-input-wrap input::placeholder {
  color: #919aa1;
  font-weight: 400;
  letter-spacing: 0;
}

.password-toggle {
  position: absolute;
  right: 5px;
  top: 50%;
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #737f87;
  transform: translateY(-50%);
  transition: background 140ms ease, color 140ms ease;
}

.password-toggle:hover { background: #f2f4f5; color: var(--bell-maroon); }
.password-toggle:focus-visible { outline: 2px solid var(--bell-maroon); outline-offset: 1px; }
.password-eye { width: 21px; height: 21px; }

.login-page .portal-message {
  margin: 16px 0 0;
  padding: 13px 14px;
  border: 1px solid #f1c5ce;
  border-radius: 11px;
  background: #fff1f4;
  color: #97263f;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.4;
}

.login-page .login-primary-button {
  display: inline-flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 18px !important;
  padding: 0 18px;
  border: 0;
  border-radius: 13px;
  background: linear-gradient(180deg, #b72f50 0%, #a62b47 100%);
  box-shadow: 0 10px 24px rgba(166,43,71,.19);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  transition: transform 140ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.login-page .login-primary-button:hover:not(:disabled) {
  background: linear-gradient(180deg, #bd3456 0%, #9d2843 100%);
  box-shadow: 0 14px 28px rgba(166,43,71,.24);
  transform: translateY(-1px);
}

.login-page .login-primary-button:active:not(:disabled) { transform: translateY(0); }
.login-page .login-primary-button svg { width: 19px; height: 19px; }

.login-page .login-back-button {
  width: 100%;
  margin-top: 12px;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #006557;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

.login-page .login-back-button:hover { text-decoration: underline; }

.login-help { margin-top: 28px; text-align: center; }

.login-help-divider {
  display: flex;
  align-items: center;
  gap: 13px;
  color: #7b858c;
  font-size: 12px;
  font-weight: 400;
}

.login-help-divider::before,
.login-help-divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: #e2e6e9;
}

.login-help-divider span { white-space: nowrap; }

.login-support-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  color: var(--bell-green);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  transition: color 140ms ease, transform 140ms ease;
}

.login-support-link:hover { color: #007a69; transform: translateY(-1px); }
.login-support-link svg { width: 18px; height: 18px; }

.mfa-expiry {
  margin: 8px 0 0;
  color: #748078;
  font-size: 12px;
  line-height: 18px;
  text-align: center;
}

@media (max-width: 640px) {
  .login-page .login-brand-header { min-height: 62px; }
  .login-page .login-shell { align-items: start; padding: 24px 14px 40px; }
  .login-page .mfa-login-card { padding: 28px 22px 25px; border-radius: 20px; }
  .login-page .mfa-login-card h1 { font-size: 32px; }
  .login-page .mfa-login-card .login-copy { margin-bottom: 23px; }
  .login-help { margin-top: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  .mfa-login-card { animation: none; }
  .login-input-wrap,
  .login-primary-button,
  .login-support-link { transition: none; }
}
