/* Authorization
 * Page-owned styles only. Shared tokens, themes, layout and components live in their dedicated modules.
 */

.auth-page {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 18% 22%, rgba(24, 168, 145, 0.25), transparent 30%),
    radial-gradient(circle at 82% 18%, rgba(211, 163, 72, 0.22), transparent 28%),
    linear-gradient(135deg, #07121b 0%, #102839 48%, #0b181d 100%);
}

.auth-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 100vh;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(360px, 440px);
  align-items: center;
  gap: 42px;
  padding: 42px 0;
}

.auth-hero {
  position: relative;
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 38px;
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.12), rgba(255, 255, 255, 0.03)),
    rgba(255, 255, 255, 0.06);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.auth-hero::before {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 6px;
  pointer-events: none;
}

.auth-brand,
.auth-copy,
.auth-safe-info {
  position: relative;
  z-index: 2;
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 16px;
}

.auth-brand img {
  width: 74px;
  height: 74px;
  object-fit: cover;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  box-shadow: var(--shadow-sm);
}

.auth-brand span,
.auth-brand strong {
  display: block;
}

.auth-brand span {
  font-size: 26px;
  font-weight: 800;
  letter-spacing: 0;
}

.auth-brand strong {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 14px;
  font-weight: 600;
}

.auth-copy {
  width: min(610px, 100%);
  padding: 18px 20px 20px;
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  background:
    linear-gradient(90deg, rgba(7, 18, 27, 0.72), rgba(7, 18, 27, 0.42) 72%, transparent);
  box-shadow: -18px 0 46px rgba(0, 0, 0, 0.12);
}

.auth-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(40px, 6vw, 76px);
  line-height: 0.95;
  letter-spacing: 0;
  text-shadow: 0 3px 22px rgba(0, 0, 0, 0.42);
}

.auth-copy h1 span {
  display: inline-block;
  color: var(--gold);
  text-shadow: 0 10px 34px rgba(215, 168, 78, 0.24);
}

.auth-copy p:not(.eyebrow) {
  width: min(520px, 100%);
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.6;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.32);
}

.route-map {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.route-map::before {
  content: "";
  position: absolute;
  right: -80px;
  bottom: -110px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background:
    linear-gradient(rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.28;
}

.route-map__point {
  position: absolute;
  width: 72px;
  height: 72px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 50%;
  background: rgba(8, 19, 28, 0.62);
  color: #fff;
  font-size: 11px;
  font-weight: 800;
  text-align: center;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.28);
  opacity: 0.78;
}

.route-map__point--spb {
  left: 40%;
  top: 9%;
}

.route-map__point--msk {
  left: 58%;
  top: 15%;
}

.route-map__point--tbs {
  right: 5%;
  top: 39%;
}

.route-map__point--batumi {
  right: 5%;
  bottom: 25%;
  background: var(--gold);
  color: #1d1a13;
}

.route-map__line {
  position: absolute;
  height: 2px;
  transform-origin: left center;
  background: linear-gradient(90deg, transparent, rgba(24, 168, 145, 0.86), rgba(215, 168, 78, 0.84));
  opacity: 0.28;
}

.route-map__line--one {
  left: 49%;
  top: 17%;
  width: 165px;
  transform: rotate(17deg);
}

.route-map__line--two {
  left: 66%;
  top: 24%;
  width: 210px;
  transform: rotate(31deg);
}

.route-map__line--three {
  right: 13%;
  top: 50%;
  width: 150px;
  transform: rotate(91deg);
}

.auth-safe-info {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.auth-safe-info div {
  min-height: 94px;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(7, 18, 27, 0.34);
}

.auth-safe-info span,
.auth-safe-info strong {
  display: block;
}

.auth-safe-info span {
  color: rgba(255, 255, 255, 0.7);
  font-size: 12px;
}

.auth-safe-info strong {
  margin-top: 10px;
  color: #fff;
  font-size: 15px;
  line-height: 1.35;
}

.login-card {
  padding: 30px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04)),
    rgba(7, 18, 27, 0.72);
  box-shadow: var(--shadow-lg), inset 0 1px 0 rgba(255, 255, 255, 0.12);
  color: #fff;
}

.login-card__header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 28px;
}

.login-card__mark {
  width: 48px;
  height: 48px;
  flex: 0 0 auto;
  border-radius: 8px;
  background:
    linear-gradient(135deg, var(--accent), transparent 58%),
    linear-gradient(315deg, var(--gold), #f8e6b8);
  box-shadow: 0 14px 32px rgba(24, 168, 145, 0.22);
}

.login-card h2 {
  margin: 2px 0 0;
  font-size: 30px;
  line-height: 1.15;
  letter-spacing: 0;
}

.form {
  display: grid;
  gap: 16px;
}

.form label {
  display: grid;
  gap: 7px;
  color: var(--text-secondary);
  font-size: 14px;
}

.form input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  padding: 0 12px;
  color: var(--text-primary);
  background: var(--surface-control);
}

.login-form {
  gap: 18px;
}

.login-form label {
  gap: 9px;
  color: rgba(244, 251, 255, 0.96);
  font-weight: 700;
}

.login-form label span {
  font-size: 14px;
}

.login-form input {
  min-height: 52px;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
}

.login-form input::placeholder {
  color: rgba(244, 251, 255, 0.7);
}

.login-form input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 0 4px rgba(24, 168, 145, 0.18);
}

.login-button {
  min-height: 54px;
  margin-top: 4px;
  font-weight: 800;
  background: linear-gradient(135deg, var(--accent), var(--accent-dark));
}

.login-note {
  margin: 18px 0 0;
  color: rgba(218, 231, 237, 0.82);
  font-size: 13px;
  line-height: 1.5;
}

.login-form input {
  min-height: 52px;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}
@media (max-width: 980px) {
.auth-shell {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 20px 0;
  }

.auth-hero {
    min-height: 520px;
  }

.login-card {
    order: -1;
  }
}

@media (max-width: 640px) {
.auth-shell {
    width: min(100% - 24px, 520px);
  }

.auth-hero,
.login-card {
    padding: 22px;
  }

.auth-hero {
    min-height: 560px;
  }

.auth-brand img {
    width: 58px;
    height: 58px;
  }

.auth-brand span {
    font-size: 22px;
  }

.auth-copy h1 {
    font-size: 42px;
  }

.auth-copy p:not(.eyebrow) {
    font-size: 16px;
  }

.auth-safe-info {
    grid-template-columns: 1fr;
  }

.route-map {
    display: none;
  }
}
.auth-page::before,
.auth-page::after {
  content: "";
  position: fixed;
  z-index: 0;
  width: 52vw;
  aspect-ratio: 1;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.13;
  pointer-events: none;
  animation: authAmbientDrift 16s ease-in-out infinite alternate;
}

.auth-page::before {
  left: -24vw;
  top: -28vw;
  background: #28d8bb;
}

.auth-page::after {
  right: -28vw;
  bottom: -30vw;
  background: #d7a84e;
  animation-delay: -8s;
}

.auth-shell {
  position: relative;
  z-index: 1;
  perspective: 1400px;
}

.auth-hero {
  animation: authHeroReveal 1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.auth-brand,
.auth-copy,
.auth-safe-info {
  animation: authContentReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.auth-brand { animation-delay: 0.18s; }

.auth-copy { animation-delay: 0.34s; }

.auth-safe-info { animation-delay: 0.5s; }

.route-map__point {
  animation: authMapPointReveal 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.route-map__point--spb { animation-delay: 0.42s; }

.route-map__point--msk { animation-delay: 0.5s; }

.route-map__point--tbs { animation-delay: 0.58s; }

.route-map__point--batumi { animation-delay: 0.66s; }

.route-map__line {
  background-size: 200% 100%;
  animation: authRouteFlow 3.4s linear infinite, authRouteReveal 0.9s 0.54s ease-out both;
}

.login-card {
  position: relative;
  min-height: 438px;
  isolation: isolate;
  overflow: hidden;
  animation: authCardReveal 0.9s 0.16s cubic-bezier(0.16, 1, 0.3, 1) both;
  transition: border-color 0.35s ease, box-shadow 0.35s ease;
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background: linear-gradient(115deg, transparent 20%, rgba(255,255,255,0.08) 42%, transparent 62%);
  transform: translateX(-120%);
  animation: authGlassSweep 1.2s 0.62s ease-out both;
  pointer-events: none;
}

.login-card__aura {
  position: absolute;
  z-index: -1;
  top: -150px;
  right: -150px;
  width: 290px;
  height: 290px;
  border-radius: 50%;
  background: rgba(24, 168, 145, 0.18);
  filter: blur(55px);
  transition: background 0.45s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.login-card__header,
.login-form,
.login-note {
  position: relative;
  z-index: 2;
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), filter 0.35s ease;
}

.login-card__mark {
  position: relative;
  overflow: hidden;
  animation: authMarkBreathe 4.6s ease-in-out infinite;
}

.login-card__mark::after {
  content: "";
  position: absolute;
  inset: -50%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.68), transparent);
  transform: rotate(35deg) translateX(-80%);
  animation: authMarkSweep 4.6s 1.2s ease-in-out infinite;
}

.login-field__control {
  position: relative;
  display: block;
}

.login-form .login-field__control > svg {
  position: absolute;
  z-index: 1;
  left: 15px;
  top: 50%;
  width: 20px;
  height: 20px;
  transform: translateY(-50%);
  fill: none;
  stroke: rgba(244, 251, 255, 0.62);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: stroke 0.2s ease, transform 0.25s ease, filter 0.25s ease;
  pointer-events: none;
}

.login-form .login-field__control:focus-within > svg {
  stroke: #58e3ca;
  transform: translateY(-50%) scale(1.08);
  filter: drop-shadow(0 0 7px rgba(88, 227, 202, 0.5));
}

.login-form .login-field__control input {
  padding-left: 47px;
}

.login-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  box-shadow: 0 14px 28px rgba(12, 132, 113, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.login-button::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 20%, rgba(255,255,255,0.27) 46%, transparent 72%);
  transform: translateX(-130%);
  transition: transform 0.55s ease;
}

.login-button:hover::before { transform: translateX(130%); }

.login-button:hover { transform: translateY(-2px); box-shadow: 0 18px 34px rgba(12, 132, 113, 0.3); }

.login-button:active { transform: translateY(0) scale(0.99); }

.login-button > span,
.login-button > svg {
  position: relative;
  z-index: 1;
}

.login-button > svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform 0.2s ease;
}

.login-button:hover > svg { transform: translateX(3px); }

.auth-key-stage {
  position: absolute;
  z-index: 5;
  inset: 100px 22px 54px;
  display: grid;
  place-items: center;
  opacity: 0;
  visibility: hidden;
  transform: scale(0.96);
  transition: opacity 0.32s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), visibility 0s 0.45s;
  pointer-events: none;
}

.auth-key-stage__grid {
  position: absolute;
  inset: 0;
  border-radius: 8px;
  background-image:
    linear-gradient(rgba(83, 225, 198, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(83, 225, 198, 0.045) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: radial-gradient(circle at center, #000 12%, transparent 72%);
}

.auth-key-core {
  position: absolute;
  left: 50%;
  top: 43%;
  width: 170px;
  height: 170px;
  transform: translate(-50%, -50%);
  display: grid;
  place-items: center;
}

.auth-key-core__orbit {
  position: absolute;
  inset: 5px;
  border: 1px solid rgba(91, 232, 205, 0.25);
  border-radius: 50%;
}

.auth-key-core__orbit--outer {
  border-top-color: #51ddc3;
  border-right-color: rgba(215, 168, 78, 0.65);
  animation: authOrbit 3.2s linear infinite;
}

.auth-key-core__orbit--inner {
  inset: 20px;
  border-style: dashed;
  opacity: 0.62;
  animation: authOrbit 5s linear infinite reverse;
}

.auth-key-core__scanner {
  position: absolute;
  z-index: 2;
  left: 24px;
  right: 24px;
  top: 50%;
  height: 2px;
  border-radius: 50%;
  background: #68f2d8;
  box-shadow: 0 0 8px #68f2d8, 0 0 22px rgba(104, 242, 216, 0.7);
  opacity: 0;
}

.auth-key-icon {
  width: 128px;
  height: 128px;
  overflow: visible;
  color: #63e9d0;
  filter: drop-shadow(0 0 14px rgba(62, 213, 185, 0.3));
  transition: color 0.35s ease, filter 0.35s ease, transform 0.35s ease;
}

.auth-key-icon__halo {
  fill: rgba(54, 210, 181, 0.05);
  stroke: currentColor;
  stroke-width: 1;
  stroke-dasharray: 4 8;
  transform-origin: 80px 80px;
  animation: authOrbit 8s linear infinite;
}

.auth-key-icon__shackle,
.auth-key-icon__body,
.auth-key-icon__stem {
  fill: none;
  stroke: currentColor;
  stroke-width: 6;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
}

.auth-key-icon__body {
  fill: rgba(7, 28, 31, 0.92);
  stroke-width: 5;
}

.auth-key-icon__hole { fill: currentColor; }

.auth-key-icon__stem { stroke-width: 4; }

.auth-key-icon__shackle {
  transform-origin: 57px 71px;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.credential-particle {
  position: absolute;
  top: 39%;
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 88px;
  padding: 7px 10px;
  border: 1px solid rgba(98, 233, 208, 0.42);
  border-radius: 999px;
  background: rgba(6, 25, 31, 0.88);
  color: rgba(225, 255, 249, 0.86);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  opacity: 0;
  box-shadow: 0 0 20px rgba(53, 214, 184, 0.12);
}

.credential-particle svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: #62e9d0;
  stroke-width: 1.7;
}

.credential-particle--login { left: 4%; }

.credential-particle--password { right: 4%; }

.auth-key-stage__status {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  display: grid;
  justify-items: center;
  gap: 5px;
  text-align: center;
}

.auth-key-stage__eyebrow {
  color: #62e9d0;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.2em;
  transition: color 0.3s ease;
}

.auth-key-stage__status strong {
  color: #f5fffd;
  font-size: 14px;
  font-weight: 700;
}

.auth-key-stage__progress {
  width: 150px;
  height: 2px;
  margin-top: 5px;
  overflow: hidden;
  border-radius: 99px;
  background: rgba(255,255,255,0.12);
}

.auth-key-stage__progress i {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, transparent, #62e9d0, transparent);
  transform: translateX(-110%);
}

.login-card:is(.is-forging, .is-scanning, .is-success, .is-error) .auth-key-stage {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  transition-delay: 0s;
}

.login-card:is(.is-forging, .is-scanning, .is-success, .is-error) .login-form,
.login-card:is(.is-forging, .is-scanning, .is-success, .is-error) .flash-list {
  opacity: 0;
  transform: translateY(8px) scale(0.97);
  filter: blur(5px);
  pointer-events: none;
}

.login-card:is(.is-forging, .is-scanning, .is-success, .is-error) .login-note {
  opacity: 0.18;
}

.login-card:is(.is-forging, .is-scanning, .is-success, .is-error) .login-card__header {
  opacity: 0.52;
  transform: translateY(-3px);
}

.login-card.is-forging .credential-particle--login {
  animation: authCredentialLogin 0.66s 0.08s cubic-bezier(0.55, 0, 0.25, 1) both;
}

.login-card.is-forging .credential-particle--password {
  animation: authCredentialPassword 0.66s 0.16s cubic-bezier(0.55, 0, 0.25, 1) both;
}

.login-card.is-forging .auth-key-icon {
  animation: authKeyForge 0.78s 0.2s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.login-card.is-forging .auth-key-stage__progress i,
.login-card.is-scanning .auth-key-stage__progress i {
  animation: authProgress 1.05s ease-in-out infinite;
}

.login-card.is-scanning .auth-key-core__scanner {
  opacity: 1;
  animation: authScan 1.05s ease-in-out infinite;
}

.login-card.is-scanning .auth-key-icon {
  animation: authKeyPulse 1.3s ease-in-out infinite;
}

.login-card.is-success {
  border-color: rgba(77, 240, 165, 0.55);
  box-shadow: 0 24px 72px rgba(0,0,0,0.4), 0 0 42px rgba(61, 227, 150, 0.14), inset 0 1px 0 rgba(255,255,255,0.12);
}

.login-card.is-success .login-card__aura { background: rgba(62, 235, 157, 0.32); transform: scale(1.35); }

.login-card.is-success .auth-key-icon { color: #4df0a5; filter: drop-shadow(0 0 20px rgba(77, 240, 165, 0.65)); animation: authAccessGranted 0.65s cubic-bezier(0.16, 1, 0.3, 1) both; }

.login-card.is-success .auth-key-icon__shackle { transform: translate(-5px, -3px) rotate(-28deg); }

.login-card.is-success .auth-key-stage__eyebrow { color: #4df0a5; }

.login-card.is-success .auth-key-stage__progress i { width: 100%; transform: none; background: #4df0a5; transition: width 0.3s ease; }

.login-card.is-error {
  border-color: rgba(255, 94, 105, 0.52);
  box-shadow: 0 24px 72px rgba(0,0,0,0.4), 0 0 38px rgba(255, 72, 89, 0.12), inset 0 1px 0 rgba(255,255,255,0.12);
  animation: authCardReject 0.42s ease both;
}

.login-card.is-error .login-card__aura { background: rgba(255, 70, 88, 0.27); transform: scale(1.2); }

.login-card.is-error .auth-key-icon { color: #ff6673; filter: drop-shadow(0 0 17px rgba(255, 82, 98, 0.55)); animation: authKeyReject 0.42s ease both; }

.login-card.is-error .auth-key-stage__eyebrow { color: #ff7b86; }

.login-card.is-error .auth-key-stage__progress i { width: 100%; transform: none; background: #ff6673; }
@keyframes authHeroReveal {
  from { opacity: 0; transform: translateX(-32px) rotateY(3deg); filter: blur(7px); }
  to { opacity: 1; transform: none; filter: none; }
}

@keyframes authCardReveal {
  from { opacity: 0; transform: translateX(38px) rotateY(-5deg) scale(0.97); filter: blur(8px); }
  to { opacity: 1; transform: none; filter: none; }
}

@keyframes authContentReveal {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

@keyframes authMapPointReveal {
  from { opacity: 0; transform: scale(0.35); }
  to { opacity: 0.78; transform: scale(1); }
}

@keyframes authRouteReveal { from { opacity: 0; } to { opacity: 0.28; } }

@keyframes authRouteFlow { to { background-position: -200% 0; } }

@keyframes authGlassSweep { to { transform: translateX(120%); } }

@keyframes authOrbit { to { transform: rotate(360deg); } }

@keyframes authMarkBreathe { 50% { box-shadow: 0 14px 38px rgba(24, 168, 145, 0.4); transform: translateY(-1px); } }

@keyframes authMarkSweep { 0%, 58% { transform: rotate(35deg) translateX(-90%); } 76%, 100% { transform: rotate(35deg) translateX(90%); } }

@keyframes authAmbientDrift { to { transform: translate(8vw, 5vw) scale(1.12); } }

@keyframes authCredentialLogin { 0% { opacity: 0; transform: translateX(-28px) scale(0.8); } 35% { opacity: 1; } 82% { opacity: 1; transform: translateX(94px) scale(0.92); } 100% { opacity: 0; transform: translateX(112px) scale(0.3); } }

@keyframes authCredentialPassword { 0% { opacity: 0; transform: translateX(28px) scale(0.8); } 35% { opacity: 1; } 82% { opacity: 1; transform: translateX(-94px) scale(0.92); } 100% { opacity: 0; transform: translateX(-112px) scale(0.3); } }

@keyframes authKeyForge { 0% { opacity: 0; transform: scale(0.45) rotate(-12deg); } 65% { opacity: 1; transform: scale(1.08) rotate(2deg); } 100% { opacity: 1; transform: scale(1); } }

@keyframes authProgress { from { transform: translateX(-110%); } to { transform: translateX(260%); } }

@keyframes authScan { 0%, 100% { transform: translateY(-45px); opacity: 0.3; } 50% { transform: translateY(45px); opacity: 1; } }

@keyframes authKeyPulse { 50% { transform: scale(1.035); filter: drop-shadow(0 0 20px rgba(62, 213, 185, 0.55)); } }

@keyframes authAccessGranted { 0% { transform: scale(0.9); } 55% { transform: scale(1.13); } 100% { transform: scale(1); } }

@keyframes authKeyReject { 20%, 60% { transform: translateX(-5px); } 40%, 80% { transform: translateX(5px); } }

@keyframes authCardReject { 25%, 75% { transform: translateX(-3px); } 50% { transform: translateX(3px); } }

@media (max-width: 640px) {
.login-card { min-height: 430px; }

.auth-key-stage { inset: 98px 12px 50px; }

.auth-key-core { width: 156px; height: 156px; }

.credential-particle { min-width: 74px; padding: 6px 8px; }

.credential-particle--login { left: 0; }

.credential-particle--password { right: 0; }
@keyframes authCredentialLogin { 0% { opacity: 0; transform: translateX(-18px) scale(0.8); } 35%, 82% { opacity: 1; } 82% { transform: translateX(66px) scale(0.9); } 100% { opacity: 0; transform: translateX(82px) scale(0.3); } }

@keyframes authCredentialPassword { 0% { opacity: 0; transform: translateX(18px) scale(0.8); } 35%, 82% { opacity: 1; } 82% { transform: translateX(-66px) scale(0.9); } 100% { opacity: 0; transform: translateX(-82px) scale(0.3); } }
}

@media (prefers-reduced-motion: reduce) {
.auth-page::before,
.auth-page::after,
.auth-hero,
.auth-brand,
.auth-copy,
.auth-safe-info,
.route-map__point,
.route-map__line,
.login-card,
.login-card::before,
.login-card__mark,
.login-card__mark::after,
.auth-key-core__orbit,
.auth-key-icon,
.auth-key-icon__halo,
.credential-particle,
.auth-key-core__scanner,
.auth-key-stage__progress i {
    animation: none !important;
  }

.auth-hero,
.auth-brand,
.auth-copy,
.auth-safe-info,
.route-map__point,
.login-card {
    opacity: 1;
    transform: none;
    filter: none;
  }

.login-card:is(.is-forging, .is-scanning, .is-success, .is-error) .auth-key-icon { opacity: 1; }
}
