    :root {
      --ink: #07111d;
      --ink-2: #0d1b2b;
      --steel: #475d74;
      --steel-2: #8ca1b4;
      --ice: #eef3f8;
      --white: #ffffff;
      --muted: #72849a;
      --line: rgba(142, 164, 187, .24);
      --line-strong: rgba(187, 204, 222, .42);
      --danger: #991b1b;
      --danger-bg: #fff1f2;
      --warning: #92400e;
      --warning-bg: #fffbeb;
      --focus: 0 0 0 4px rgba(140, 161, 180, .22);
      --font-ui: "Plus Jakarta Sans", system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
      --font-mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
    }

    * {
      box-sizing: border-box;
    }

    html,
    body {
      min-height: 100%;
    }

    body {
      align-items: center;
      background:
        radial-gradient(860px 520px at 20% 10%, rgba(91, 119, 145, .42), transparent 62%),
        radial-gradient(780px 520px at 86% 24%, rgba(238, 243, 248, .26), transparent 58%),
        linear-gradient(135deg, #03070d 0%, #07111d 42%, #142235 100%);
      color: var(--ice);
      display: grid;
      font-family: var(--font-ui);
      margin: 0;
      min-height: 100dvh;
      overflow-x: hidden;
      padding: 24px;
    }

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

    body::before {
      background:
        linear-gradient(rgba(255, 255, 255, .028) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .022) 1px, transparent 1px);
      background-size: 46px 46px;
      mask-image: linear-gradient(115deg, #000 0%, transparent 72%);
    }

    body::after {
      background:
        radial-gradient(circle at 50% 45%, rgba(255, 255, 255, .1), transparent 16rem),
        linear-gradient(135deg, transparent, rgba(255, 255, 255, .035), transparent);
      opacity: 1;
    }

    .login-stage {
      display: grid;
      grid-template-columns: minmax(0, 460px);
      justify-content: center;
      margin: 0 auto;
      max-width: 520px;
      position: relative;
      width: 100%;
      z-index: 1;
    }

    .login-shell {
      align-self: center;
      width: 100%;
    }

    .login-card {
      background: rgba(255, 255, 255, .96);
      border: 1px solid rgba(203, 213, 225, .9);
      border-radius: 26px;
      box-shadow: 0 32px 90px rgba(15, 35, 55, .14);
      color: var(--ink);
      overflow: hidden;
      padding: clamp(24px, 3vw, 38px);
      position: relative;
      transform-origin: center;
    }

    .login-card::before {
      background: linear-gradient(90deg, #ffffff, #8ca1b4, #475d74);
      content: "";
      height: 3px;
      left: 0;
      position: absolute;
      right: 0;
      top: 0;
    }

    .login-header {
      align-items: center;
      display: grid;
      gap: 14px;
      margin-bottom: 28px;
      text-align: center;
    }

    .login-logo {
      border-radius: 0;
      box-shadow: none;
      display: block;
      height: auto;
      justify-self: center;
      max-width: 330px;
      padding: 0;
      width: 100%;
    }

    .login-header h2 {
      color: var(--ink);
      font-size: clamp(1.8rem, 3vw, 2.35rem);
      font-weight: 900;
      letter-spacing: 0;
      line-height: 1;
      margin: 0;
    }

    .login-header p {
      color: #5d6d80;
      font-size: .95rem;
      font-weight: 600;
      line-height: 1.5;
      margin: 0;
    }

    form {
      margin: 0;
    }

    .alert {
      background: var(--danger-bg);
      border: 1px solid #fecdd3;
      border-left: 4px solid #e11d48;
      border-radius: 14px;
      color: var(--danger);
      font-size: .9rem;
      font-weight: 700;
      line-height: 1.35;
      margin-bottom: 16px;
      padding: 12px 14px;
    }

    .login-form-fields {
      display: block;
    }

    .login-card.is-submitting .btn-primary svg {
      display: none;
    }

    .login-card.is-submitting .btn-primary::after {
      animation: loginSpin .72s linear infinite;
      border: 2px solid rgba(255, 255, 255, .45);
      border-radius: 50%;
      border-top-color: #ffffff;
      content: "";
      height: 16px;
      width: 16px;
    }

    .group {
      margin-top: 16px;
    }

    label {
      color: #344457;
      display: block;
      font-size: .75rem;
      font-weight: 900;
      letter-spacing: .08em;
      margin: 0 0 8px;
      text-transform: uppercase;
    }

    .field {
      position: relative;
    }

    .input {
      background: #ffffff;
      border: 1px solid #c8d3df;
      border-radius: 14px;
      box-shadow: inset 0 1px 0 rgba(7, 17, 29, .04);
      color: var(--ink);
      font: inherit;
      font-size: .98rem;
      font-weight: 650;
      min-height: 52px;
      outline: 0;
      padding: 14px 15px;
      transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
      width: 100%;
    }

    .input:hover {
      border-color: #9fb0c2;
    }

    .input:focus {
      border-color: #475d74;
      box-shadow: var(--focus);
    }

    .input::placeholder {
      color: #9aaabd;
      font-weight: 600;
    }

    .field.has-toggle .input {
      padding-right: 52px;
    }

    .toggle {
      align-items: center;
      background: transparent;
      border: 0;
      border-radius: 10px;
      color: #607286;
      cursor: pointer;
      display: inline-flex;
      justify-content: center;
      padding: 8px;
      position: absolute;
      right: 8px;
      top: 50%;
      transform: translateY(-50%);
      transition: background-color .18s ease, color .18s ease;
    }

    .toggle:hover {
      background: rgba(71, 93, 116, .1);
      color: var(--ink);
    }

    .toggle:focus-visible,
    .btn:focus-visible {
      box-shadow: var(--focus);
      outline: 0;
    }

    .btn {
      align-items: center;
      border: 0;
      cursor: pointer;
      display: inline-flex;
      font: inherit;
      font-weight: 900;
      gap: 10px;
      justify-content: center;
      min-height: 54px;
      padding: 14px 18px;
      transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
    }

    .btn-primary {
      background: linear-gradient(135deg, #07111d, #1d2e42 58%, #475d74);
      border-radius: 14px;
      box-shadow: 0 18px 38px rgba(7, 17, 29, .28);
      color: #ffffff;
      margin-top: 24px;
      width: 100%;
    }

    .btn-primary:hover {
      box-shadow: 0 24px 48px rgba(7, 17, 29, .34);
      transform: translateY(-1px);
    }

    .btn-primary:active {
      transform: translateY(0) scale(.99);
    }

    .btn-primary svg {
      transition: transform .18s ease;
    }

    .btn-primary:hover svg {
      transform: translateX(3px);
    }

    .caps {
      background: var(--warning-bg);
      border: 1px solid #fde68a;
      border-radius: 12px;
      color: var(--warning);
      display: none;
      font-size: .82rem;
      font-weight: 800;
      margin-top: 10px;
      padding: 9px 11px;
    }

    .caps.on {
      display: block;
    }

    .foot {
      border-top: 1px solid #dfe7ef;
      color: #7a8a9b;
      font-family: var(--font-mono);
      font-size: .7rem;
      font-weight: 700;
      letter-spacing: .12em;
      margin-top: 28px;
      padding-top: 18px;
      text-align: center;
      text-transform: uppercase;
    }

    .timeout-backdrop {
      align-items: center;
      background: rgba(7, 17, 29, .72);
      backdrop-filter: blur(10px);
      display: flex;
      inset: 0;
      justify-content: center;
      padding: 16px;
      position: fixed;
      z-index: 50;
    }

    .timeout-backdrop.hidden {
      display: none;
    }

    .timeout-modal {
      background: #eef3f8;
      border: 1px solid rgba(255, 255, 255, .62);
      border-radius: 22px;
      box-shadow: 0 30px 80px rgba(0, 0, 0, .34);
      color: var(--ink);
      padding: 28px;
      width: min(440px, 100%);
    }

    .timeout-modal h3 {
      font-size: 1.2rem;
      font-weight: 900;
      margin: 0;
    }

    .timeout-message {
      color: #5d6d80;
      font-weight: 600;
      line-height: 1.5;
      margin: 10px 0 0;
    }

    .timeout-modal .btn {
      margin-top: 20px;
    }

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

    @media (max-width: 920px) {
      body {
        padding: 16px;
      }

      .login-stage {
        grid-template-columns: 1fr;
        max-width: 560px;
      }
    }

    @media (max-width: 560px) {
      .login-card {
        border-radius: 22px;
        padding: 22px;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      * {
        animation: none !important;
        scroll-behavior: auto !important;
        transition: none !important;
      }
    }
