:root {
  --login-ink: #07111f;
  --login-navy: #0a1a2d;
  --login-blue: #178cff;
  --login-blue-deep: #0b67dc;
  --login-cyan: #61d9ff;
  --login-card: rgba(255, 255, 255, .96);
  --login-text: #10233b;
  --login-muted: #65758b;
  --login-line: #dce6f1;
  --login-danger: #c83d54;
  --login-success: #168b61;
}

html,
body.login-page {
  min-height: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

body.login-page {
  color-scheme: dark;
  margin: 0;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
  color: #fff;
  background: #07111f;
  font-family: Inter, ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  -webkit-font-smoothing: antialiased;
}

.login-page button,
.login-page input { font: inherit; }

.login-atmosphere {
  position: fixed;
  inset: 0;
  overflow: hidden;
  contain: strict;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 12%, rgba(33, 139, 255, .20), transparent 33%),
    radial-gradient(circle at 91% 82%, rgba(0, 210, 255, .11), transparent 32%),
    linear-gradient(132deg, #07111f 0%, #0a1828 48%, #07111d 100%);
}

.login-grid {
  position: absolute;
  inset: 0;
  opacity: .14;
  background-image:
    linear-gradient(rgba(116, 179, 239, .22) 1px, transparent 1px),
    linear-gradient(90deg, rgba(116, 179, 239, .22) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(100deg, #000, transparent 62%);
  -webkit-mask-image: linear-gradient(100deg, #000, transparent 62%);
}

.login-orb {
  position: absolute;
  display: block;
  border-radius: 999px;
  filter: blur(1px);
  animation: orb-float 14s ease-in-out infinite alternate;
}

.login-orb-one {
  width: 470px;
  height: 470px;
  left: -190px;
  top: 35%;
  border: 1px solid rgba(87, 184, 255, .17);
  box-shadow: 0 0 120px rgba(20, 124, 232, .13) inset;
}

.login-orb-two {
  width: 300px;
  height: 300px;
  right: -110px;
  top: -100px;
  background: rgba(27, 129, 239, .09);
  animation-delay: -5s;
}

.login-shell {
  position: relative;
  z-index: 1;
  width: min(1420px, calc(100% - 48px));
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(470px, .92fr);
  align-items: stretch;
}

.login-story {
  position: relative;
  min-height: 720px;
  padding: clamp(38px, 6.5vh, 74px) clamp(42px, 6vw, 92px) 38px 8px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.story-top {
  display: flex;
  align-items: center;
  gap: 24px;
}

.story-logo {
  width: 168px;
  height: auto;
  object-fit: contain;
}

.secure-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border: 1px solid rgba(255, 255, 255, .12);
  border-radius: 999px;
  color: rgba(232, 244, 255, .74);
  background: rgba(255, 255, 255, .045);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.secure-pill svg,
.form-foot svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.story-copy {
  position: relative;
  z-index: 2;
  margin: auto 0;
  padding: 78px 0 125px;
  max-width: 680px;
}

.eyebrow {
  margin: 0 0 22px;
  color: #61d9ff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .24em;
}

.story-copy h1 {
  margin: 0;
  max-width: 650px;
  color: #f7fbff;
  font-size: clamp(51px, 5.5vw, 80px);
  line-height: .98;
  letter-spacing: -.055em;
  font-weight: 790;
}

.story-copy h1 span {
  color: transparent;
  background: linear-gradient(96deg, #72dfff, #2c93ff 55%, #6a80ff);
  background-clip: text;
  -webkit-background-clip: text;
}

.story-lead {
  max-width: 520px;
  margin: 28px 0 0;
  color: rgba(219, 233, 247, .70);
  font-size: clamp(16px, 1.5vw, 19px);
  line-height: 1.65;
  letter-spacing: -.01em;
}

.story-chips {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 32px;
  color: rgba(237, 247, 255, .9);
  font-size: 12px;
  font-weight: 760;
  letter-spacing: .04em;
}

.story-chips i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #279dff;
  box-shadow: 0 0 12px #279dff;
}

.story-foot {
  margin: auto 0 0;
  color: rgba(209, 225, 241, .42);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .11em;
  text-transform: uppercase;
}

.route-visual {
  position: absolute;
  left: 5px;
  right: 13%;
  bottom: 74px;
  height: 84px;
  opacity: .62;
}

.route-line {
  position: absolute;
  left: 5%;
  right: 0;
  top: 34px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(73, 169, 255, .65), rgba(73, 169, 255, .12));
  overflow: hidden;
}

.route-line::after {
  content: "";
  position: absolute;
  inset: -3px 0;
  background: linear-gradient(90deg, transparent 3%, rgba(77, 173, 255, .95) 26%, transparent 50%);
  animation: route-scan 5s linear infinite;
  filter: blur(2px);
}

.route-stop {
  position: absolute;
  top: 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 11px;
}

.route-stop-one { left: 17%; }
.route-stop-two { left: 49%; }
.route-stop-three { left: 80%; }

.route-stop b {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #0a1828;
  border: 3px solid #6cc9ff;
  box-shadow: 0 0 0 5px rgba(63, 164, 255, .10), 0 0 25px rgba(75, 179, 255, .62);
}

.route-stop em {
  color: rgba(199, 222, 242, .62);
  font-style: normal;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.route-bus {
  position: absolute;
  top: 17px;
  left: 23%;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  color: #fff;
  background: linear-gradient(145deg, #42b8ff, #157af0);
  box-shadow: 0 8px 28px rgba(27, 137, 255, .42);
  animation: bus-route 11s ease-in-out infinite;
}

.route-bus svg {
  width: 23px;
  fill: currentColor;
}

.login-panel {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 42px 0 42px clamp(24px, 5vw, 78px);
}

.mobile-brand { display: none; }

.login-card {
  position: relative;
  width: min(100%, 540px);
  max-height: calc(100dvh - 64px);
  overflow-y: auto;
  overflow-x: hidden;
  padding: clamp(31px, 4vw, 46px);
  color: var(--login-text);
  background: linear-gradient(145deg, rgba(255, 255, 255, .99), rgba(247, 251, 255, .96));
  border: 1px solid rgba(255, 255, 255, .85);
  border-radius: 30px;
  box-shadow:
    0 38px 100px rgba(0, 5, 14, .48),
    0 2px 0 rgba(255, 255, 255, .7) inset;
  scrollbar-width: thin;
  scrollbar-color: #bdccdc transparent;
  isolation: isolate;
}

.login-card::before {
  content: "";
  position: absolute;
  z-index: -1;
  width: 230px;
  height: 230px;
  right: -130px;
  top: -130px;
  border-radius: 50%;
  background: rgba(47, 154, 255, .15);
  filter: blur(10px);
}

.login-heading { margin-bottom: 25px; }

.login-kicker {
  display: block;
  margin: 0 0 10px;
  color: #1581ed;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .21em;
}

.login-heading h2 {
  margin: 0;
  color: #0c1f37;
  font-size: clamp(27px, 3vw, 35px);
  line-height: 1.08;
  letter-spacing: -.04em;
  font-weight: 790;
}

.login-heading p {
  margin: 11px 0 0;
  color: var(--login-muted);
  font-size: 13px;
  line-height: 1.5;
}

.login-toggle {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1fr;
  padding: 5px;
  margin-bottom: 25px;
  border: 1px solid #dbe6f2;
  border-radius: 14px;
  background: #eef4fa;
  isolation: isolate;
}

.toggle-glider {
  position: absolute;
  z-index: -1;
  left: 5px;
  top: 5px;
  width: calc(50% - 5px);
  height: calc(100% - 10px);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 5px 16px rgba(41, 75, 109, .12), 0 0 0 1px rgba(199, 215, 231, .75);
  transition: transform .36s cubic-bezier(.2, .75, .25, 1);
}

.login-toggle.is-otp .toggle-glider { transform: translateX(100%); }

.login-toggle button {
  min-height: 40px;
  padding: 0 12px;
  border: 0;
  border-radius: 10px;
  color: #758399;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 820;
  letter-spacing: .01em;
  transition: color .25s ease;
}

.login-toggle button.active { color: #11263f; }

.login-toggle button:focus-visible,
.text-action:focus-visible,
.password-reveal:focus-visible,
.primary-action:focus-visible,
.secondary-action:focus-visible {
  outline: 3px solid rgba(23, 140, 255, .28);
  outline-offset: 2px;
}

.alert-stack {
  display: grid;
  gap: 9px;
}

.notice {
  display: none;
  align-items: flex-start;
  gap: 10px;
  margin: 0 0 18px;
  padding: 11px 12px;
  border: 1px solid;
  border-radius: 12px;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.45;
  animation: notice-in .3s ease both;
}

.notice.is-visible { display: flex; }

.notice-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  margin-top: -1px;
  border-radius: 50%;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.notice-ok {
  color: #14724f;
  border-color: #b9e6d4;
  background: #effaf5;
}

.notice-ok .notice-icon { background: #19a574; }

.notice-error {
  color: #a52b42;
  border-color: #f0c5ce;
  background: #fff3f5;
}

.notice-error .notice-icon { background: #d64960; }

.field-wrap {
  position: relative;
  margin-bottom: 15px;
}

.field-shell {
  position: relative;
  display: block;
  color: #718198;
}

.field-shell input {
  color-scheme: light;
  width: 100%;
  height: 60px;
  padding: 21px 48px 7px 49px;
  border: 1.5px solid #d8e3ee;
  border-radius: 15px;
  outline: none;
  color: #0c2038;
  -webkit-text-fill-color: #0c2038;
  background: rgba(255, 255, 255, .9);
  font-size: 15px;
  font-weight: 720;
  letter-spacing: .01em;
  caret-color: #1289ff;
  box-shadow: 0 1px 2px rgba(21, 48, 78, .02);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease;
}

.field-shell input:hover { border-color: #bdcde0; }

.field-shell input:focus {
  border-color: #2b92f5;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(29, 139, 246, .12), 0 10px 30px rgba(30, 105, 180, .08);
}

.field-shell input:disabled {
  opacity: 1;
  color: #496179;
  -webkit-text-fill-color: #496179;
  background: #f2f6fa;
  cursor: not-allowed;
}

.floating-label {
  position: absolute;
  left: 49px;
  top: 21px;
  color: #75859a;
  font-size: 14px;
  line-height: 1;
  pointer-events: none;
  transform-origin: left top;
  transition: transform .18s ease, color .18s ease;
}

.field-shell input:focus ~ .floating-label,
.field-shell input:not(:placeholder-shown) ~ .floating-label,
.field-shell input:-webkit-autofill ~ .floating-label,
.field-shell.has-value .floating-label {
  color: #257fda;
  transform: translateY(-10px) scale(.76);
}

/* Chrome restores saved credentials after the first layout pass. The native
   autofill state must float the label before focus, while JS mirrors it for
   browsers that expose the value without updating :placeholder-shown. */
.field-shell input:-webkit-autofill {
  animation: login-autofill-start .01s both;
  -webkit-text-fill-color: #0c2038;
  caret-color: #1289ff;
}

.field-icon {
  position: absolute;
  z-index: 2;
  left: 17px;
  top: 19px;
  width: 20px;
  height: 20px;
  color: #8091a6;
  pointer-events: none;
  transition: color .2s ease, transform .2s ease;
}

.field-shell:focus-within .field-icon {
  color: #178cff;
  transform: translateY(-1px);
}

.field-icon svg,
.password-reveal svg,
.flow-icon svg,
.primary-action svg,
.text-action svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.field-state {
  position: absolute;
  right: 16px;
  top: 20px;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  color: #fff;
  background: #19a574;
  font-size: 11px;
  font-weight: 900;
  opacity: 0;
  transform: scale(.7);
  transition: opacity .2s ease, transform .2s ease;
}

#usernameRow.has-value .field-state {
  opacity: 1;
  transform: scale(1);
}

#usernameRow .field-shell input:-webkit-autofill ~ .field-state {
  opacity: 1;
  transform: scale(1);
}

@keyframes login-autofill-start {
  from { filter: none; }
  to { filter: none; }
}

.password-reveal {
  position: absolute;
  z-index: 3;
  right: 10px;
  top: 10px;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  color: #6f8196;
  background: transparent;
  cursor: pointer;
}

.password-reveal:hover {
  color: #187fdc;
  background: #edf6ff;
}

.password-reveal .eye-closed,
.password-reveal[aria-pressed="true"] .eye-open { display: none; }
.password-reveal[aria-pressed="true"] .eye-closed { display: block; }

.login-actions { margin-top: 6px; }

.primary-action,
.secondary-action {
  position: relative;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 14px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .01em;
  transition: transform .16s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease, opacity .2s ease;
}

.primary-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  overflow: hidden;
  border: 1px solid #0871e1;
  color: #fff;
  background: linear-gradient(132deg, #229cff 0%, #0876eb 58%, #0c62d1 100%);
  box-shadow: 0 11px 28px rgba(13, 116, 226, .25), 0 1px 0 rgba(255, 255, 255, .35) inset;
}

.primary-action::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 25%, rgba(255, 255, 255, .27) 48%, transparent 70%);
  transform: translateX(-120%);
  transition: transform .65s ease;
}

.primary-action:hover:not(:disabled)::before { transform: translateX(120%); }

.primary-action:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: 0 15px 34px rgba(13, 116, 226, .34), 0 1px 0 rgba(255, 255, 255, .35) inset;
}

.primary-action:active:not(:disabled),
.secondary-action:active:not(:disabled) { transform: translateY(0) scale(.985); }

.primary-action:disabled,
.secondary-action:disabled {
  cursor: not-allowed;
  opacity: .48;
  box-shadow: none;
}

.primary-action svg {
  width: 17px;
  height: 17px;
  transition: transform .2s ease;
}

.primary-action:hover:not(:disabled) svg { transform: translateX(3px); }

.primary-action.is-loading,
.secondary-action.is-loading {
  color: transparent;
  pointer-events: none;
}

.primary-action.is-loading::after,
.secondary-action.is-loading::after {
  content: "";
  position: absolute;
  left: calc(50% - 9px);
  top: calc(50% - 9px);
  width: 18px;
  height: 18px;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  color: #fff;
  animation: button-spin .7s linear infinite;
}

.secondary-action.is-loading::after { color: #1983e8; }
.full-width { width: 100%; }

.flow-pane { animation: pane-in .38s cubic-bezier(.2, .72, .25, 1) both; }

.flow-pane[hidden],
.set-password[hidden],
#passwordPane[hidden] { display: none !important; }

.flow-intro {
  display: flex;
  align-items: center;
  gap: 13px;
  margin: 2px 0 22px;
  padding: 13px 14px;
  border: 1px solid #d8e8f7;
  border-radius: 15px;
  background: linear-gradient(135deg, #f2f8fe, #f7fbff);
}

.flow-icon {
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  padding: 9px;
  border-radius: 12px;
  color: #fff;
  background: linear-gradient(145deg, #30a7ff, #1578e5);
  box-shadow: 0 8px 20px rgba(19, 121, 225, .22);
}

.flow-intro h3 {
  margin: 0;
  color: #10253e;
  font-size: 14px;
  font-weight: 850;
}

.flow-intro p {
  margin: 4px 0 0;
  color: #62758c;
  font-size: 11px;
  line-height: 1.45;
}

.code-fieldset {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.code-fieldset legend {
  margin: 0 0 10px;
  padding: 0;
  color: #5b6e84;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .02em;
}

.digit-code {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) 12px repeat(3, minmax(0, 1fr));
  gap: 8px;
  align-items: center;
}

.digit-code input {
  color-scheme: light;
  min-width: 0;
  width: 100%;
  aspect-ratio: 1 / 1.08;
  max-height: 67px;
  padding: 0;
  border: 1.5px solid #cedbea;
  border-radius: 14px;
  outline: none;
  color: #132b46;
  -webkit-text-fill-color: #132b46;
  background: #f8fbfe;
  text-align: center;
  font-size: clamp(20px, 3vw, 27px);
  font-weight: 850;
  line-height: 1;
  caret-color: #168bfa;
  transition: border-color .2s ease, box-shadow .2s ease, transform .22s cubic-bezier(.2, .8, .25, 1), background .2s ease, color .2s ease;
}

.digit-code input:hover { border-color: #aebfd2; }

.digit-code input:focus {
  position: relative;
  z-index: 2;
  border-color: #168cff;
  background: #fff;
  box-shadow: 0 0 0 4px rgba(22, 140, 255, .13), 0 10px 22px rgba(24, 103, 181, .12);
  transform: translateY(-3px) scale(1.03);
}

.digit-code input.is-filled {
  border-color: #45a8ff;
  color: #086acb;
  -webkit-text-fill-color: #086acb;
  background: linear-gradient(145deg, #edf8ff, #f8fcff);
  box-shadow: 0 7px 17px rgba(34, 132, 225, .10);
  animation: digit-pop .28s cubic-bezier(.2, .8, .25, 1);
}

.digit-code.is-complete input {
  border-color: #34b987;
  color: #127a56;
  -webkit-text-fill-color: #127a56;
  background: #f0fbf6;
}

.digit-code.is-invalid { animation: code-shake .42s ease both; }

.digit-code.is-invalid input {
  border-color: #e56376;
  color: #ae2c44;
  -webkit-text-fill-color: #ae2c44;
  background: #fff5f7;
}

.digit-separator {
  width: 8px;
  height: 2px;
  justify-self: center;
  border-radius: 99px;
  background: #9eb0c4;
}

.code-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 21px;
  margin-top: 9px;
  color: #8290a2;
  font-size: 10px;
  font-weight: 700;
}

.digit-code.is-complete + .code-meta .code-status { color: #168b61; }
.code-count { font-variant-numeric: tabular-nums; }

.flow-actions {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 10px;
  margin-top: 16px;
}

.secondary-action {
  border: 1px solid #d5e1ed;
  color: #29435f;
  background: #f5f8fb;
  box-shadow: 0 4px 12px rgba(38, 69, 101, .05);
}

.secondary-action:hover:not(:disabled) {
  border-color: #b8cce0;
  background: #eef5fc;
  transform: translateY(-1px);
}

.text-action {
  display: flex;
  align-items: center;
  gap: 5px;
  margin: 17px auto 0;
  padding: 7px 8px;
  border: 0;
  border-radius: 8px;
  color: #62748a;
  background: transparent;
  cursor: pointer;
  font-size: 11px;
  font-weight: 780;
}

.text-action:hover {
  color: #157cdc;
  background: #edf6ff;
}

.text-action svg {
  width: 14px;
  height: 14px;
}

.set-password {
  margin-top: 22px;
  padding: 16px;
  border: 1px solid #cde4dc;
  border-radius: 17px;
  background: #f5fbf8;
  animation: pane-in .35s ease both;
}

.set-password-head {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.set-password-head > span {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  color: #fff;
  background: #19a574;
  font-size: 13px;
  font-weight: 900;
}

.set-password-head div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.set-password-head strong {
  color: #15583f;
  font-size: 12px;
}

.set-password-head small {
  color: #6a8177;
  font-size: 10px;
}

.set-password .field-wrap { margin-bottom: 8px; }

.password-strength {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 2px 15px;
}

.password-strength > span {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 4px;
}

.password-strength i {
  height: 3px;
  border-radius: 9px;
  background: #d7e1e6;
  transition: background .2s ease;
}

.password-strength em {
  color: #71847c;
  font-size: 9px;
  font-style: normal;
  font-weight: 700;
  white-space: nowrap;
}

.password-strength[data-level="1"] i:nth-child(1) { background: #db5369; }
.password-strength[data-level="2"] i:nth-child(-n+2) { background: #e9a338; }
.password-strength[data-level="3"] i:nth-child(-n+3) { background: #5aaa80; }
.password-strength[data-level="4"] i { background: #159b68; }

.form-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 23px;
  padding-top: 19px;
  border-top: 1px solid #e5ecf3;
  color: #8a98a9;
  font-size: 10px;
  font-weight: 730;
}

.form-foot span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.form-foot a {
  color: #687b91;
  text-decoration: none;
}

.form-foot a:hover {
  color: #137fe2;
  text-decoration: underline;
}

.login-shell {
  transition: filter .45s ease, transform .55s cubic-bezier(.2, .75, .25, 1), opacity .4s ease;
}

body.login-success-active {
  overflow: hidden;
}

body.login-success-active .login-shell {
  filter: blur(12px);
  transform: scale(.985);
  opacity: .5;
}

.login-success-overlay[hidden] {
  display: none !important;
}

.login-success-overlay {
  position: fixed;
  z-index: 1000;
  inset: 0;
  display: grid;
  place-items: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 24px;
  overflow: hidden;
  color: #f6fffb;
  background:
    radial-gradient(circle at 50% 43%, rgba(30, 200, 129, .2), transparent 31%),
    rgba(3, 12, 21, .84);
  backdrop-filter: blur(15px) saturate(1.1);
  -webkit-backdrop-filter: blur(15px) saturate(1.1);
  opacity: 0;
  visibility: hidden;
  transition: opacity .3s ease, visibility .3s ease, background .45s ease;
}

.login-success-overlay.is-active {
  opacity: 1;
  visibility: visible;
}

.login-success-overlay.is-leaving {
  opacity: 0;
  visibility: hidden;
  background-color: rgba(3, 12, 21, .98);
}

.success-content {
  position: relative;
  z-index: 2;
  width: min(460px, 100%);
  text-align: center;
  opacity: 0;
  transform: translateY(22px) scale(.92);
}

.login-success-overlay.is-active .success-content {
  animation: success-content-in .62s cubic-bezier(.16, 1, .3, 1) .08s both;
}

.success-check {
  position: relative;
  width: clamp(148px, 19vw, 184px);
  height: clamp(148px, 19vw, 184px);
  margin: 0 auto 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background:
    radial-gradient(circle at 38% 30%, rgba(113, 255, 191, .42), transparent 30%),
    linear-gradient(145deg, #20c982, #0c9a63);
  box-shadow:
    0 28px 70px rgba(9, 164, 100, .34),
    0 0 0 1px rgba(143, 255, 203, .38) inset,
    0 3px 0 rgba(255, 255, 255, .23) inset;
  transform: scale(.65);
}

.login-success-overlay.is-active .success-check {
  animation: success-check-pop .72s cubic-bezier(.18, 1.28, .32, 1) .12s both;
}

.success-check::before,
.success-check::after {
  content: "";
  position: absolute;
  inset: -17px;
  border: 1px solid rgba(72, 233, 157, .28);
  border-radius: 50%;
  opacity: 0;
}

.success-check::after {
  inset: -35px;
  border-color: rgba(72, 233, 157, .13);
}

.login-success-overlay.is-active .success-check::before {
  animation: success-ripple 1s ease-out .48s both;
}

.login-success-overlay.is-active .success-check::after {
  animation: success-ripple 1.15s ease-out .62s both;
}

.success-glow {
  position: absolute;
  inset: 14%;
  border-radius: 50%;
  background: rgba(118, 255, 195, .22);
  filter: blur(16px);
}

.success-check svg {
  position: relative;
  z-index: 2;
  width: 75%;
  height: 75%;
  overflow: visible;
  fill: none;
  stroke: #fff;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.success-ring {
  stroke-width: 4;
  stroke: rgba(255, 255, 255, .36);
  stroke-dasharray: 321;
  stroke-dashoffset: 321;
  transform: rotate(-90deg);
  transform-origin: center;
}

.login-success-overlay.is-active .success-ring {
  animation: success-ring-draw .72s cubic-bezier(.65, 0, .35, 1) .22s forwards;
}

.success-tick {
  stroke-width: 9;
  stroke-dasharray: 72;
  stroke-dashoffset: 72;
  filter: drop-shadow(0 4px 7px rgba(0, 91, 54, .28));
}

.login-success-overlay.is-active .success-tick {
  animation: success-tick-draw .44s cubic-bezier(.65, 0, .35, 1) .72s forwards;
}

.success-kicker {
  margin: 0 0 11px;
  color: #5ee6a9;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .23em;
}

.success-content h2 {
  margin: 0;
  color: #f7fffb;
  font-size: clamp(34px, 5vw, 48px);
  line-height: 1.02;
  letter-spacing: -.045em;
  font-weight: 820;
  text-shadow: 0 10px 35px rgba(0, 0, 0, .26);
}

.success-message {
  margin: 13px 0 0;
  color: rgba(225, 244, 235, .68);
  font-size: 14px;
  font-weight: 650;
}

.success-progress {
  display: block;
  width: 118px;
  height: 3px;
  margin: 28px auto 0;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, .12);
}

.success-progress i {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #38d493, #96ffd0);
  box-shadow: 0 0 12px rgba(80, 231, 164, .7);
  transform: translateX(-100%);
}

.login-success-overlay.is-active .success-progress i {
  animation: success-progress 1.45s cubic-bezier(.2, .75, .25, 1) .25s forwards;
}

.success-ambient {
  position: absolute;
  left: 50%;
  top: 50%;
  width: min(640px, 92vw);
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  pointer-events: none;
}

.success-ambient span {
  --spark-x: 0px;
  --spark-y: -180px;
  position: absolute;
  left: calc(50% - 4px);
  top: calc(50% - 4px);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #68efae;
  box-shadow: 0 0 16px rgba(87, 238, 166, .8);
  opacity: 0;
}

.success-ambient span:nth-child(1) { --spark-x: 0px; --spark-y: -214px; }
.success-ambient span:nth-child(2) { --spark-x: 148px; --spark-y: -145px; }
.success-ambient span:nth-child(3) { --spark-x: 215px; --spark-y: 0px; }
.success-ambient span:nth-child(4) { --spark-x: 148px; --spark-y: 145px; }
.success-ambient span:nth-child(5) { --spark-x: 0px; --spark-y: 214px; }
.success-ambient span:nth-child(6) { --spark-x: -148px; --spark-y: 145px; }
.success-ambient span:nth-child(7) { --spark-x: -215px; --spark-y: 0px; }
.success-ambient span:nth-child(8) { --spark-x: -148px; --spark-y: -145px; }

.login-success-overlay.is-active .success-ambient span {
  animation: success-spark .9s cubic-bezier(.16, .8, .3, 1) .72s both;
}

@keyframes pane-in {
  from { opacity: 0; transform: translateY(12px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes notice-in {
  from { opacity: 0; transform: translateY(-5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes digit-pop {
  0% { transform: scale(.87); }
  70% { transform: scale(1.06); }
  100% { transform: scale(1); }
}

@keyframes code-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(3px); }
}

@keyframes button-spin { to { transform: rotate(360deg); } }
@keyframes orb-float { to { transform: translate3d(28px, -20px, 0) scale(1.05); } }

@keyframes route-scan {
  from { transform: translateX(-70%); }
  to { transform: translateX(130%); }
}

@keyframes bus-route {
  0%, 8% { left: 12%; transform: translateY(0); }
  47%, 56% { left: 48%; transform: translateY(-3px); }
  92%, 100% { left: 80%; transform: translateY(0); }
}

@keyframes success-content-in {
  from { opacity: 0; transform: translateY(22px) scale(.92); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes success-check-pop {
  0% { opacity: 0; transform: scale(.55) rotate(-7deg); }
  62% { opacity: 1; transform: scale(1.08) rotate(2deg); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

@keyframes success-ring-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes success-tick-draw {
  to { stroke-dashoffset: 0; }
}

@keyframes success-ripple {
  0% { opacity: 0; transform: scale(.7); }
  20% { opacity: 1; }
  100% { opacity: 0; transform: scale(1.25); }
}

@keyframes success-spark {
  0% { opacity: 0; transform: translate(0, 0) scale(.25); }
  35% { opacity: .95; }
  100% { opacity: 0; transform: translate(var(--spark-x), var(--spark-y)) scale(1); }
}

@keyframes success-progress {
  to { transform: translateX(0); }
}

@media (max-width: 1040px) {
  .login-shell {
    width: min(1100px, calc(100% - 36px));
    grid-template-columns: minmax(0, .7fr) minmax(440px, 1fr);
  }

  .login-story { padding-right: 30px; }
  .story-copy h1 { font-size: clamp(45px, 6vw, 62px); }
  .route-visual { right: 2%; }
}

@media (max-width: 800px) {
  .login-page { overflow-y: auto; }

  .login-grid {
    mask-image: linear-gradient(#000, transparent 85%);
    -webkit-mask-image: linear-gradient(#000, transparent 85%);
  }

  .login-shell {
    width: 100%;
    min-height: 100dvh;
    display: block;
  }

  .login-story { display: none; }

  .login-panel {
    min-height: 100vh;
    min-height: 100dvh;
    padding: max(24px, env(safe-area-inset-top)) 18px max(24px, env(safe-area-inset-bottom));
    flex-direction: column;
    gap: 21px;
  }

  .mobile-brand { display: block; }

  .mobile-brand img {
    display: block;
    width: 130px;
    height: auto;
  }

  .login-card {
    width: min(100%, 540px);
    max-height: none;
    overflow: visible;
    padding: clamp(25px, 7vw, 39px);
    border-radius: 25px;
  }
}

@media (max-width: 450px) {
  .login-panel {
    justify-content: flex-start;
    padding-left: 12px;
    padding-right: 12px;
  }

  .login-card {
    padding: 24px 18px;
    border-radius: 22px;
  }

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

  .login-toggle button {
    padding: 0 6px;
    font-size: 10px;
  }

  .digit-code {
    grid-template-columns: repeat(3, minmax(0, 1fr)) 8px repeat(3, minmax(0, 1fr));
    gap: 5px;
  }

  .digit-code input {
    border-radius: 11px;
    font-size: 21px;
  }

  .flow-actions { grid-template-columns: 1fr; }
  .flow-actions .primary-action { grid-row: 1; }
  .form-foot { align-items: flex-start; }
}

@media (max-height: 760px) and (min-width: 801px) {
  .login-story { min-height: 650px; }
  .story-copy { padding: 48px 0 115px; }
  .story-copy h1 { font-size: 54px; }
  .login-card { padding-top: 31px; padding-bottom: 31px; }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .01ms !important;
  }
}
