
    :root {
      color-scheme: dark;
      --bg: #020817;
      --bg-soft: #04132a;
      --bg-deep: #071b35;
      --card: rgba(6, 15, 35, 0.75);
      --card-border: rgba(59, 130, 246, 0.25);
      --text: #e8f0ff;
      --muted: #94a3b8;
      --brand: #3b82f6;
      --brand-2: #0ea5e9;
      --brand-3: #8b5cf6;
      --glow-cyan: #38bdf8;
      --glow-blue: #60a5fa;
      --danger-bg: rgba(239, 68, 68, 0.14);
      --danger-border: rgba(248, 113, 113, 0.45);
      --danger-text: #fecaca;
      --shadow: 0 28px 70px rgba(2, 6, 23, 0.55);
      --radius: 22px;
    }

    * { box-sizing: border-box; }

    body {
      margin: 0;
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 24px 16px;
      font-family: "Segoe UI", "Inter", system-ui, sans-serif;
      color: var(--text);
      background:
        radial-gradient(circle at 12% 10%, rgba(59, 130, 246, 0.28), transparent 28%),
        radial-gradient(circle at 78% 14%, rgba(6, 182, 212, 0.14), transparent 20%),
        radial-gradient(circle at 84% 82%, rgba(139, 92, 246, 0.16), transparent 24%),
        linear-gradient(180deg, var(--bg-deep) 0%, var(--bg-soft) 48%, var(--bg) 100%);
      position: relative;
      overflow: hidden;
    }

    body::before,
    body::after {
      content: "";
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 0;
    }

    body::before {
      background-image:
        linear-gradient(90deg, transparent 0 40px, rgba(82, 121, 192, 0.07) 40px 41px, transparent 41px 100%),
        linear-gradient(0deg, transparent 0 40px, rgba(82, 121, 192, 0.05) 40px 41px, transparent 41px 100%);
      background-size: 140px 140px;
      opacity: 0.32;
    }

    body::after {
      background:
        radial-gradient(circle at 18% 18%, rgba(59, 130, 246, 0.24), transparent 18%),
        radial-gradient(circle at 76% 18%, rgba(56, 189, 248, 0.16), transparent 16%),
        radial-gradient(circle at 74% 76%, rgba(139, 92, 246, 0.12), transparent 16%);
      filter: blur(22px);
    }

    .login-bg {
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 0;
      overflow: hidden;
    }

    .login-bg__mesh,
    .login-bg__circuits,
    .login-bg__pulses,
    .login-bg__particles {
      position: absolute;
      inset: 0;
    }

    .login-bg__mesh {
      background:
        linear-gradient(90deg, transparent 0 24px, rgba(96, 165, 250, 0.035) 24px 25px, transparent 25px 100%),
        linear-gradient(0deg, transparent 0 24px, rgba(96, 165, 250, 0.025) 24px 25px, transparent 25px 100%);
      background-size: 120px 120px;
      mask-image: radial-gradient(circle at center, rgba(0,0,0,.92), transparent 92%);
    }

    .login-bg__circuits {
      opacity: 0.8;
      background:
        linear-gradient(118deg, transparent 6%, rgba(59, 130, 246, 0.10) 7.8%, transparent 9.6%) 0 0 / 420px 420px,
        linear-gradient(88deg, transparent 18%, rgba(6, 182, 212, 0.10) 19.6%, transparent 21.2%) 0 0 / 360px 360px,
        linear-gradient(152deg, transparent 62%, rgba(139, 92, 246, 0.08) 63.8%, transparent 65.6%) 0 0 / 520px 520px,
        linear-gradient(36deg, transparent 42%, rgba(56, 189, 248, 0.08) 43.2%, transparent 44.4%) 0 0 / 460px 460px;
      animation: driftCircuits 26s linear infinite;
    }

    .login-bg__circuits::before,
    .login-bg__circuits::after {
      content: "";
      position: absolute;
      inset: -10% -10%;
      opacity: 0.58;
      background:
        linear-gradient(102deg, transparent 14%, rgba(96, 165, 250, 0.08) 15.1%, transparent 16.2%) 0 0 / 380px 380px,
        linear-gradient(176deg, transparent 52%, rgba(14, 165, 233, 0.09) 53.3%, transparent 54.6%) 0 0 / 300px 300px,
        linear-gradient(54deg, transparent 74%, rgba(167, 139, 250, 0.06) 75.4%, transparent 76.8%) 0 0 / 540px 540px;
      filter: blur(0.2px);
    }

    .login-bg__circuits::before {
      animation: driftCircuitsAlt 31s linear infinite;
      transform: rotate(1.8deg);
    }

    .login-bg__circuits::after {
      animation: driftCircuitsAltReverse 37s linear infinite;
      transform: rotate(-2.4deg);
    }

    .login-bg__pulses::before,
    .login-bg__pulses::after,
    .login-bg__pulses > span,
    .login-bg__pulses > i {
      content: "";
      position: absolute;
      width: 38%;
      height: 2px;
      background: linear-gradient(90deg, transparent, rgba(56, 189, 248, 0.9), transparent);
      box-shadow: 0 0 18px rgba(56, 189, 248, 0.45);
      opacity: 0;
      filter: blur(0.2px);
    }

    .login-bg__pulses::before {
      top: 28%;
      left: -40%;
      animation: pulseRunX 8.8s linear infinite;
    }

    .login-bg__pulses::after {
      top: 66%;
      left: -46%;
      animation: pulseRunX 11.2s linear infinite 2.6s;
    }

    .login-bg__pulses > span,
    .login-bg__pulses > i {
      display: block;
    }

    .login-bg__pulses > span:nth-child(1) {
      top: 18%;
      left: 12%;
      width: 2px;
      height: 28%;
      background: linear-gradient(180deg, transparent, rgba(56, 189, 248, 0.92), transparent);
      box-shadow: 0 0 18px rgba(56, 189, 248, 0.42);
      animation: pulseRunY 9.4s linear infinite 1.2s;
    }

    .login-bg__pulses > span:nth-child(2) {
      top: 8%;
      left: 72%;
      width: 2px;
      height: 34%;
      background: linear-gradient(180deg, transparent, rgba(96, 165, 250, 0.88), transparent);
      box-shadow: 0 0 20px rgba(96, 165, 250, 0.38);
      animation: pulseRunY 12.6s linear infinite 4.2s;
    }

    .login-bg__pulses > i:nth-child(3) {
      top: 48%;
      left: -32%;
      width: 32%;
      transform: rotate(-14deg);
      animation: pulseRunDiagA 10.8s linear infinite 1.8s;
    }

    .login-bg__pulses > i:nth-child(4) {
      top: 24%;
      left: -28%;
      width: 26%;
      transform: rotate(18deg);
      animation: pulseRunDiagB 13.6s linear infinite 5.4s;
    }

    .login-bg__particles {
      background:
        radial-gradient(circle at 12% 34%, rgba(148, 197, 255, 0.7) 0 1px, transparent 2px),
        radial-gradient(circle at 24% 62%, rgba(56, 189, 248, 0.7) 0 1px, transparent 2px),
        radial-gradient(circle at 68% 28%, rgba(125, 211, 252, 0.7) 0 1px, transparent 2px),
        radial-gradient(circle at 82% 54%, rgba(96, 165, 250, 0.68) 0 1px, transparent 2px),
        radial-gradient(circle at 72% 82%, rgba(167, 139, 250, 0.6) 0 1px, transparent 2px);
      animation: particleFloat 16s ease-in-out infinite;
    }

    .login-page {
      width: min(920px, 100%);
      position: relative;
      z-index: 1;
      perspective: 1400px;
      animation: pageReveal 0.55s ease-out both;
    }

    .login-card {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(280px, 380px);
      gap: 0;
      border: 1px solid var(--card-border);
      border-radius: calc(var(--radius) + 4px);
      background: var(--card);
      box-shadow: var(--shadow);
      overflow: hidden;
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      position: relative;
      isolation: isolate;
      transform-origin: center top;
      animation: cardReveal 1s cubic-bezier(.2,.9,.2,1) both;
    }

    .login-card::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        linear-gradient(120deg, rgba(59, 130, 246, 0.10), transparent 28%),
        linear-gradient(220deg, rgba(14, 165, 233, 0.06), transparent 24%);
      pointer-events: none;
    }

    .login-card::after {
      content: "";
      position: absolute;
      inset: 1px;
      border-radius: calc(var(--radius) + 3px);
      border: 1px solid rgba(255, 255, 255, 0.05);
      pointer-events: none;
      box-shadow:
        inset 0 0 28px rgba(59, 130, 246, 0.06),
        0 0 40px rgba(59, 130, 246, 0.15);
    }

    .login-frame {
      position: absolute;
      inset: 14px;
      pointer-events: none;
      z-index: 2;
    }

    .login-scan {
      position: absolute;
      inset: 0;
      pointer-events: none;
      z-index: 1;
      overflow: hidden;
      border-radius: inherit;
      mix-blend-mode: screen;
      opacity: 0.55;
    }

    .login-scan::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        repeating-linear-gradient(
          180deg,
          rgba(255,255,255,0.018) 0px,
          rgba(255,255,255,0.018) 1px,
          transparent 1px,
          transparent 6px
        );
      opacity: 0.22;
    }

    .login-scan::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      top: -18%;
      height: 20%;
      background: linear-gradient(
        180deg,
        transparent 0%,
        rgba(56, 189, 248, 0.03) 18%,
        rgba(96, 165, 250, 0.10) 50%,
        rgba(56, 189, 248, 0.03) 82%,
        transparent 100%
      );
      filter: blur(10px);
      animation: scanSweep 8.6s ease-in-out infinite;
    }

    .login-frame::before,
    .login-frame::after {
      content: "";
      position: absolute;
      width: 84px;
      height: 84px;
      border: 1px solid rgba(96, 165, 250, 0.22);
      opacity: 0.8;
      filter: drop-shadow(0 0 18px rgba(59, 130, 246, 0.18));
    }

    .login-frame::before {
      top: -2px;
      left: -2px;
      border-right: none;
      border-bottom: none;
      border-top-left-radius: 22px;
    }

    .login-frame::after {
      right: -2px;
      bottom: -2px;
      border-left: none;
      border-top: none;
      border-bottom-right-radius: 22px;
    }

    .login-brand {
      padding: 36px 32px;
      background:
        linear-gradient(145deg, rgba(8, 26, 54, 0.92) 0%, rgba(10, 21, 40, 0.86) 55%, rgba(7, 41, 67, 0.74) 100%);
      border-right: 1px solid rgba(96, 165, 250, 0.12);
      display: flex;
      flex-direction: column;
      justify-content: space-between;
      gap: 28px;
      position: relative;
      overflow: hidden;
    }

    .login-brand::before {
      content: "";
      position: absolute;
      inset: 18px;
      border-radius: 28px;
      border: 1px solid rgba(255, 255, 255, 0.05);
      pointer-events: none;
    }

    .login-brand::after {
      content: "";
      position: absolute;
      width: 220px;
      height: 220px;
      right: -76px;
      bottom: -76px;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(56, 189, 248, 0.22), transparent 68%);
      pointer-events: none;
    }

    .brand-top {
      display: flex;
      align-items: center;
      gap: 16px;
      position: relative;
      z-index: 1;
      animation: floatUp 0.75s ease-out both;
    }

    .brand-top::before {
      content: "";
      position: absolute;
      left: -14px;
      top: 50%;
      width: 112px;
      height: 112px;
      transform: translateY(-50%);
      border-radius: 50%;
      background: radial-gradient(circle, rgba(56, 189, 248, 0.24), rgba(59, 130, 246, 0.12) 44%, transparent 76%);
      filter: blur(14px);
      pointer-events: none;
      z-index: -1;
      animation: logoAuraPulse 5s ease-in-out infinite;
    }

    .tb-brand-logo-wrap--lg {
      position: relative;
      box-shadow:
        0 0 0 1px rgba(255,255,255,.16),
        0 0 18px rgba(56, 189, 248, 0.18),
        0 0 34px rgba(59, 130, 246, 0.16),
        0 16px 34px rgba(2, 8, 23, 0.28);
      animation: logoGlowPulse 5.4s ease-in-out infinite;
    }

    .tb-brand-logo-wrap--lg::before {
      content: "";
      position: absolute;
      inset: -1px;
      border-radius: inherit;
      border: 1px solid rgba(96, 165, 250, 0.26);
      opacity: 0.72;
      pointer-events: none;
      box-shadow:
        inset 0 0 12px rgba(255,255,255,.08),
        0 0 22px rgba(56, 189, 248, 0.16);
    }

    .tb-brand-logo-wrap--lg::after {
      content: "";
      position: absolute;
      inset: 0;
      border-radius: inherit;
      background:
        linear-gradient(135deg, rgba(255,255,255,.20), transparent 26%),
        linear-gradient(225deg, rgba(56, 189, 248, 0.08), transparent 32%);
      opacity: 0.9;
      pointer-events: none;
      mix-blend-mode: screen;
    }

    .tb-brand-logo-wrap--lg .tb-brand-logo {
      position: relative;
      z-index: 1;
      filter:
        drop-shadow(0 0 6px rgba(255,255,255,.22))
        drop-shadow(0 0 10px rgba(56, 189, 248, 0.14));
    }

    .brand-title {
      margin: 0;
      font-size: clamp(1.35rem, 2.4vw, 1.75rem);
      font-weight: 800;
      line-height: 1.15;
      color: #f8fbff;
      text-shadow: 0 0 18px rgba(96, 165, 250, 0.18);
    }

    .brand-subtitle {
      margin: 6px 0 0;
      color: #bfd0f3;
      font-size: 0.95rem;
      line-height: 1.45;
    }

    .brand-points {
      margin: 0;
      padding: 0;
      list-style: none;
      display: grid;
      gap: 12px;
      position: relative;
      z-index: 1;
      animation: floatUp 0.9s ease-out both;
    }

    .brand-points li {
      display: flex;
      align-items: flex-start;
      gap: 10px;
      color: #cbd5e1;
      font-size: 0.9rem;
      line-height: 1.45;
    }

    .brand-points li::before {
      content: "";
      width: 8px;
      height: 8px;
      margin-top: 6px;
      border-radius: 50%;
      background: linear-gradient(135deg, var(--brand), var(--brand-2));
      flex-shrink: 0;
      box-shadow: 0 0 10px rgba(59, 130, 246, 0.55);
    }

    .login-form-panel {
      padding: 36px 32px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      gap: 0;
      background: rgba(8, 14, 28, 0.55);
      position: relative;
    }

    .login-form-panel::before {
      content: "";
      position: absolute;
      inset: 18px;
      border-radius: 22px;
      border: 1px solid rgba(255, 255, 255, 0.04);
      pointer-events: none;
    }

    .panel-eyebrow {
      margin: 0 0 8px;
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: 0.12em;
      text-transform: uppercase;
      color: #7dd3fc;
    }

    .panel-title {
      margin: 0;
      font-size: 1.55rem;
      font-weight: 800;
      line-height: 1.2;
      text-shadow: 0 0 14px rgba(96, 165, 250, 0.12);
    }

    .panel-lead {
      margin: 10px 0 24px;
      color: var(--muted);
      font-size: 0.95rem;
      line-height: 1.55;
      max-width: 36ch;
    }

    .alert-error {
      margin: 0 0 20px;
      padding: 12px 14px;
      border-radius: 14px;
      border: 1px solid var(--danger-border);
      background: var(--danger-bg);
      color: var(--danger-text);
      font-size: 0.92rem;
      line-height: 1.45;
    }

    .alert-success {
      margin-bottom: 16px;
      padding: 12px 14px;
      border-radius: 14px;
      border: 1px solid rgba(34, 197, 94, 0.35);
      background: rgba(34, 197, 94, 0.14);
      color: #bbf7d0;
      font-size: 0.92rem;
      line-height: 1.45;
    }

    .login-form {
      display: grid;
      gap: 18px;
      width: 100%;
    }

    .field {
      display: grid;
      gap: 8px;
      width: 100%;
    }

    .field label {
      font-size: 0.88rem;
      font-weight: 600;
      color: #dbe7ff;
    }

    .field input {
      width: 100%;
      min-height: 50px;
      padding: 0 14px;
      border-radius: 14px;
      border: 1px solid rgba(148, 163, 184, 0.28);
      background:
        linear-gradient(180deg, rgba(11, 20, 38, 0.82), rgba(10, 18, 34, 0.74));
      color: var(--text);
      font: inherit;
      outline: none;
      transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
    }

    .field input::placeholder {
      color: #64748b;
    }

    .field input:hover {
      border-color: rgba(56, 189, 248, 0.36);
      box-shadow: 0 0 0 1px rgba(56, 189, 248, 0.08) inset;
    }

    .field input:focus {
      border-color: rgba(96, 165, 250, 0.85);
      box-shadow:
        0 0 0 3px rgba(37, 99, 235, 0.18),
        0 0 22px rgba(56, 189, 248, 0.18);
      transform: translateY(-1px);
    }

    .btn-submit {
      width: 100%;
      min-height: 52px;
      margin-top: 4px;
      border: 0;
      border-radius: 14px;
      background: linear-gradient(135deg, #2563eb 0%, #06b6d4 100%);
      color: #f8fafc;
      font: inherit;
      font-size: 1rem;
      font-weight: 700;
      cursor: pointer;
      box-shadow:
        0 14px 30px rgba(37, 99, 235, 0.32),
        0 0 22px rgba(6, 182, 212, 0.18);
      transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.16s ease;
      animation: pulseButton 3.8s ease-in-out infinite;
      position: relative;
      overflow: hidden;
    }

    .btn-submit::before {
      content: "";
      position: absolute;
      inset: 1px;
      border-radius: inherit;
      background: linear-gradient(135deg, rgba(255,255,255,0.14), transparent 28%, transparent 72%, rgba(255,255,255,0.08));
      pointer-events: none;
      opacity: 0.9;
    }

    .btn-submit::after {
      content: "";
      position: absolute;
      top: -30%;
      left: -38%;
      width: 34%;
      height: 160%;
      transform: rotate(18deg);
      background: linear-gradient(90deg, transparent, rgba(255,255,255,0.34), transparent);
      opacity: 0;
      pointer-events: none;
      animation: buttonSweep 4.8s ease-in-out infinite;
    }

    .btn-submit:hover {
      filter: brightness(1.06);
      transform: translateY(-2px);
      box-shadow:
        0 16px 34px rgba(37, 99, 235, 0.38),
        0 0 28px rgba(6, 182, 212, 0.28),
        0 0 42px rgba(56, 189, 248, 0.18);
    }

    .btn-submit:active {
      transform: translateY(1px);
    }

    .login-footer {
      margin-top: 22px;
      padding-top: 18px;
      border-top: 1px solid rgba(148, 163, 184, 0.14);
      color: var(--muted);
      font-size: 0.82rem;
      line-height: 1.45;
    }

    .brand-grid {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 12px;
      position: relative;
      z-index: 1;
      animation: floatUp 0.82s ease-out both;
    }

    .brand-metric {
      padding: 14px 14px 12px;
      border-radius: 18px;
      background: linear-gradient(180deg, rgba(11, 20, 38, 0.64), rgba(8, 15, 29, 0.42));
      border: 1px solid rgba(148, 163, 184, 0.10);
      box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
      transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
    }

    .brand-metric:hover {
      transform: translateY(-2px);
      border-color: rgba(96, 165, 250, 0.18);
      box-shadow:
        inset 0 1px 0 rgba(255,255,255,.04),
        0 12px 26px rgba(2, 6, 23, 0.18),
        0 0 24px rgba(59, 130, 246, 0.08);
    }

    .brand-metric__label {
      display: block;
      color: #9fb6da;
      font-size: 0.72rem;
      letter-spacing: 0.08em;
      text-transform: uppercase;
      margin-bottom: 8px;
    }

    .brand-metric strong {
      display: block;
      color: #f8fbff;
      font-size: 1.05rem;
      line-height: 1.1;
      margin-bottom: 6px;
    }

    .brand-metric span {
      display: block;
      color: #9db0ce;
      font-size: 0.8rem;
      line-height: 1.4;
    }

    .brand-signal {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 12px;
      border-radius: 999px;
      border: 1px solid rgba(96, 165, 250, 0.18);
      background: rgba(59, 130, 246, 0.10);
      color: #dcecff;
      font-size: 0.82rem;
      font-weight: 600;
      position: relative;
      z-index: 1;
      width: fit-content;
      animation: floatUp 0.68s ease-out both;
    }

    .brand-signal::before {
      content: "";
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #38bdf8;
      box-shadow: 0 0 12px rgba(56, 189, 248, 0.75);
      flex-shrink: 0;
    }

    .panel-stack {
      position: relative;
      z-index: 1;
      animation: floatUp 0.9s ease-out both;
    }

    .login-card > section {
      animation: sectionFade 0.9s ease-out both;
    }

    .login-card > section:nth-of-type(1) { animation-delay: 0.08s; }
    .login-card > section:nth-of-type(2) { animation-delay: 0.16s; }

    .panel-status {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      padding: 8px 12px;
      margin: 0 0 12px;
      border-radius: 999px;
      border: 1px solid rgba(56, 189, 248, 0.18);
      background: rgba(10, 23, 45, 0.52);
      color: #d9edff;
      font-size: 0.8rem;
      font-weight: 600;
      width: fit-content;
      box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
    }

    .panel-status::before {
      content: "";
      width: 8px;
      height: 8px;
      border-radius: 50%;
      background: #38bdf8;
      box-shadow: 0 0 12px rgba(56, 189, 248, 0.75);
      flex-shrink: 0;
    }

    /* Рабочий вход: спокойная иерархия без декоративного шума. */
    .login-page { width: min(820px, 100%); perspective: none; animation: none; }
    .login-card { grid-template-columns: minmax(260px, .9fr) minmax(320px, 1.1fr); animation: none; }
    .login-card::after, .login-frame, .login-scan { display: none; }
    .login-brand { justify-content: center; gap: 18px; padding: 42px 36px; background: linear-gradient(145deg, rgba(12, 35, 68, .96), rgba(10, 22, 42, .94)); }
    .login-brand::before { inset: 22px; border-radius: 18px; }
    .login-brand::after, .brand-top::before { display: none; }
    .brand-top, .panel-stack { animation: none; }
    .tb-brand-logo-wrap--lg { animation: none; box-shadow: 0 12px 26px rgba(2, 8, 23, .28); }
    .brand-subtitle { margin-top: 8px; color: #cbd5e1; }
    .brand-note { position: relative; z-index: 1; margin: 0; color: #94a3b8; font-size: .9rem; line-height: 1.55; }
    .login-form-panel { padding: 42px 38px; }
    .login-form-panel::before { display: none; }
    .panel-eyebrow { margin-bottom: 6px; font-size: .72rem; }
    .panel-title { font-size: 1.6rem; text-shadow: none; }
    .panel-lead { margin: 8px 0 24px; }
    .password-control { position: relative; }
    .password-control input { padding-right: 88px; }
    .password-toggle { position: absolute; right: 8px; bottom: 7px; min-height: 36px; padding: 0 10px; border: 0; border-radius: 9px; background: rgba(59, 130, 246, .12); color: #bfdbfe; font: inherit; font-size: .78rem; font-weight: 700; cursor: pointer; }
    .password-toggle:hover { background: rgba(59, 130, 246, .22); }
    .btn-submit { animation: none; box-shadow: 0 10px 22px rgba(37, 99, 235, .25); }
    .btn-submit::after { display: none; }
    .login-help { margin: 16px 0 0; color: #94a3b8; font-size: .82rem; line-height: 1.5; text-align: center; }
    .login-help a { color: #93c5fd; text-decoration: none; font-weight: 700; }
    .login-help a:hover { text-decoration: underline; }

    @keyframes driftCircuits {
      from { transform: translate3d(0, 0, 0); }
      to { transform: translate3d(-60px, 24px, 0); }
    }

    @keyframes driftCircuitsAlt {
      from { transform: translate3d(0, 0, 0) rotate(1.8deg); }
      to { transform: translate3d(42px, -18px, 0) rotate(1.8deg); }
    }

    @keyframes driftCircuitsAltReverse {
      from { transform: translate3d(0, 0, 0) rotate(-2.4deg); }
      to { transform: translate3d(-36px, 22px, 0) rotate(-2.4deg); }
    }

    @keyframes pulseRunX {
      0% { transform: translateX(0); opacity: 0; }
      8% { opacity: 0.9; }
      46% { opacity: 0.9; }
      62% { opacity: 0; }
      100% { transform: translateX(420%); opacity: 0; }
    }

    @keyframes pulseRunY {
      0% { transform: translateY(0); opacity: 0; }
      10% { opacity: 0.85; }
      52% { opacity: 0.85; }
      68% { opacity: 0; }
      100% { transform: translateY(220%); opacity: 0; }
    }

    @keyframes pulseRunDiagA {
      0% { transform: translateX(0) rotate(-14deg); opacity: 0; }
      12% { opacity: 0.82; }
      50% { opacity: 0.82; }
      70% { opacity: 0; }
      100% { transform: translateX(430%) rotate(-14deg); opacity: 0; }
    }

    @keyframes pulseRunDiagB {
      0% { transform: translateX(0) rotate(18deg); opacity: 0; }
      12% { opacity: 0.82; }
      46% { opacity: 0.82; }
      66% { opacity: 0; }
      100% { transform: translateX(420%) rotate(18deg); opacity: 0; }
    }

    @keyframes particleFloat {
      0%, 100% { transform: translate3d(0, 0, 0); opacity: 0.78; }
      50% { transform: translate3d(-10px, 8px, 0); opacity: 1; }
    }

    @keyframes pageReveal {
      from { opacity: 0; }
      to { opacity: 1; }
    }

    @keyframes cardReveal {
      0% {
        opacity: 0;
        transform: translateY(22px) rotateX(7deg) scale(0.976);
        filter: blur(3px);
      }
      60% {
        opacity: 1;
        transform: translateY(-2px) rotateX(0deg) scale(1.004);
        filter: blur(0);
      }
      100% {
        opacity: 1;
        transform: translateY(0) rotateX(0deg) scale(1);
        filter: blur(0);
      }
    }

    @keyframes floatUp {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    @keyframes sectionFade {
      from { opacity: 0; transform: translateY(10px); }
      to { opacity: 1; transform: translateY(0); }
    }

    @keyframes pulseButton {
      0%, 100% { box-shadow: 0 14px 30px rgba(37, 99, 235, 0.32), 0 0 22px rgba(6, 182, 212, 0.18); }
      50% { box-shadow: 0 16px 34px rgba(37, 99, 235, 0.36), 0 0 28px rgba(6, 182, 212, 0.24), 0 0 42px rgba(56, 189, 248, 0.14); }
    }

    @keyframes logoGlowPulse {
      0%, 100% {
        box-shadow:
          0 0 0 1px rgba(255,255,255,.16),
          0 0 18px rgba(56, 189, 248, 0.18),
          0 0 34px rgba(59, 130, 246, 0.16),
          0 16px 34px rgba(2, 8, 23, 0.28);
      }
      50% {
        box-shadow:
          0 0 0 1px rgba(255,255,255,.20),
          0 0 24px rgba(56, 189, 248, 0.28),
          0 0 42px rgba(59, 130, 246, 0.24),
          0 18px 38px rgba(2, 8, 23, 0.32);
      }
    }

    @keyframes logoAuraPulse {
      0%, 100% { opacity: 0.72; transform: translateY(-50%) scale(0.96); }
      50% { opacity: 1; transform: translateY(-50%) scale(1.06); }
    }

    @keyframes scanSweep {
      0%, 100% { transform: translateY(0); opacity: 0; }
      12% { opacity: 0.5; }
      48% { opacity: 0.42; }
      70% { opacity: 0; }
      100% { transform: translateY(560%); opacity: 0; }
    }

    @keyframes buttonSweep {
      0%, 100% { transform: translateX(0) rotate(18deg); opacity: 0; }
      12% { opacity: 0; }
      30% { opacity: 0.75; }
      48% { opacity: 0; }
      100% { transform: translateX(360%) rotate(18deg); opacity: 0; }
    }

    @media (max-width: 820px) {
      html, body { min-height: 100%; }
      body {
        min-height: 100dvh;
        align-items: flex-start;
        overflow-x: hidden;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding-top: max(12px, env(safe-area-inset-top));
        padding-bottom: max(20px, env(safe-area-inset-bottom));
      }
      .login-page { margin: auto 0; }
      .login-card { grid-template-columns: 1fr; }
      .login-brand {
        border-right: 0;
        border-bottom: 1px solid rgba(96, 165, 250, 0.12);
        padding: 28px 24px;
      }
      .brand-points { display: none; }
      .brand-grid { grid-template-columns: 1fr; }
      .login-form-panel { padding: 28px 24px 32px; }
    }

    @media (max-width: 480px) {
      body { padding: 12px; }
      .login-bg__circuits, .login-bg__pulses, .login-bg__particles { display: none; }
      .login-brand, .login-form-panel { padding-left: 18px; padding-right: 18px; }
      .panel-title { font-size: 1.35rem; }
      .login-page, .login-card, .brand-top, .brand-signal, .brand-grid,
      .brand-points, .panel-stack, .btn-submit, .tb-brand-logo-wrap--lg,
      .brand-top::before, .login-scan::after, .btn-submit::after {
        animation: none !important;
        transform: none !important;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      .login-page, .login-card, .brand-top, .brand-signal, .brand-grid,
      .brand-points, .panel-stack, .btn-submit, .login-bg__circuits,
      .login-bg__pulses::before, .login-bg__pulses::after, .login-bg__particles,
      .tb-brand-logo-wrap--lg, .brand-top::before, .login-scan::after, .btn-submit::after {
        animation: none !important;
        transform: none !important;
      }
    }
  