    * { box-sizing: border-box; }

    body {
      margin: 0;
      min-height: 100vh;
      display: flex;
      align-items: center;
      justify-content: center;
      background: var(--ui-color-bg);
      color: var(--ui-color-text);
      font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
      overflow: hidden;
    }

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

    .bg-circle {
      position: absolute;
      border-radius: 50%;
      background: radial-gradient(circle, rgba(91, 92, 226, 0.12) 0%, rgba(91, 92, 226, 0) 70%);
    }

    .bg-circle--tl {
      width: 420px;
      height: 420px;
      top: -120px;
      right: -80px;
    }

    .bg-circle--br {
      width: 360px;
      height: 360px;
      bottom: -100px;
      right: -60px;
      left: auto;
      background: radial-gradient(circle, rgba(99, 102, 241, 0.1) 0%, rgba(99, 102, 241, 0) 70%);
    }

    .bg-quarter-bl {
      position: absolute;
      bottom: 0;
      left: 0;
      width: min(420px, 55vw);
      height: min(420px, 55vw);
      border-radius: 0 100% 0 0;
      background: #e8ecf3;
    }

    .bg-dots {
      position: absolute;
      display: grid;
      grid-template-columns: repeat(6, 10px);
      grid-template-rows: repeat(4, 10px);
      gap: 10px;
      place-items: center;
    }

    .bg-dots span {
      display: block;
      border-radius: 50%;
      background: #94a3b8;
    }

    .bg-dots--tl { top: 48px; left: 56px; }
    .bg-dots--br { bottom: 56px; right: 64px; }

    .page {
      position: relative;
      z-index: 1;
      width: min(440px, calc(100vw - 40px));
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 28px;
    }

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

    .brand-icon {
      width: 40px;
      height: 44px;
      flex-shrink: 0;
    }

    .brand-title {
      font-size: 22px;
      font-weight: 800;
      letter-spacing: -0.01em;
      color: var(--ui-color-text);
    }

    .brand-copy {
      display: grid;
      gap: 2px;
    }

    .brand-subtitle {
      color: var(--ui-color-text-subtle);
      font-size: 10px;
      font-weight: 750;
      letter-spacing: 0.14em;
      text-transform: uppercase;
    }

    .card {
      width: 100%;
      padding: 36px 32px 32px;
      border: 1px solid var(--ui-color-border);
      border-radius: var(--ui-radius-xl);
      background: var(--ui-color-surface);
      box-shadow: var(--ui-shadow-md);
    }

    .card h1 {
      margin: 0;
      text-align: center;
      font-size: 24px;
      font-weight: 800;
      color: var(--ui-color-text);
      letter-spacing: -0.02em;
    }

    .desc {
      margin: 10px 0 0;
      text-align: center;
      color: var(--ui-color-text-muted);
      font-size: 13px;
      line-height: 1.55;
    }

    .err {
      margin: 18px 0 0;
      padding: 10px 14px;
      border: 1px solid color-mix(in srgb, var(--ui-color-danger) 28%, white);
      border-radius: 10px;
      background: var(--ui-color-danger-soft);
      color: var(--ui-color-danger);
      font-size: 13px;
      line-height: 1.45;
    }

    .field {
      margin-top: 24px;
    }

    .input-wrap {
      position: relative;
    }

    .input-icon {
      position: absolute;
      left: 14px;
      top: 50%;
      transform: translateY(-50%);
      width: 18px;
      height: 18px;
      color: var(--ui-color-text-subtle);
      pointer-events: none;
    }

    .toggle-password {
      position: absolute;
      right: 8px;
      top: 50%;
      transform: translateY(-50%);
      width: 36px;
      height: 36px;
      display: grid;
      place-items: center;
      border: 0;
      border-radius: 8px;
      background: transparent;
      color: var(--ui-color-text-subtle);
      cursor: pointer;
      padding: 0;
    }

    .toggle-password:hover {
      color: var(--ui-color-text-secondary);
      background: var(--ui-color-surface-subtle);
    }

    .toggle-password svg {
      width: 18px;
      height: 18px;
    }

    .toggle-password .icon-hide { display: none; }
    .toggle-password.is-visible .icon-show { display: none; }
    .toggle-password.is-visible .icon-hide { display: block; }

    .input-wrap input {
      width: 100%;
      min-height: 48px;
      border: 1px solid var(--ui-color-border-strong);
      border-radius: var(--ui-radius-lg);
      padding: 0 44px 0 42px;
      font: inherit;
      font-size: 14px;
      color: var(--ui-color-text);
      background: var(--ui-color-surface);
      transition: border-color 0.15s, box-shadow 0.15s;
    }

    .input-wrap input::placeholder {
      color: var(--ui-color-text-subtle);
    }

    .input-wrap input:focus {
      outline: none;
      border-color: #a7a8f4;
      box-shadow: 0 0 0 3px rgba(91, 92, 226, 0.12);
    }

    .remember {
      display: flex;
      align-items: center;
      gap: 8px;
      margin-top: 14px;
      color: var(--ui-color-text-muted);
      font-size: 13px;
      user-select: none;
      cursor: pointer;
    }

    .remember input {
      width: 16px;
      height: 16px;
      margin: 0;
      accent-color: var(--ui-color-brand);
      cursor: pointer;
    }

    .submit {
      width: 100%;
      min-height: 48px;
      margin-top: 20px;
      border: 0;
      border-radius: var(--ui-radius-lg);
      background: var(--ui-color-brand);
      color: #fff;
      font: inherit;
      font-size: 15px;
      font-weight: 700;
      cursor: pointer;
      transition: background 0.15s, transform 0.1s;
    }

    .submit:hover {
      background: var(--ui-color-brand-hover);
    }

    .submit:active {
      transform: scale(0.99);
    }

    .submit:disabled {
      cursor: wait;
      opacity: 0.78;
    }

    .security-note {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 6px;
      color: var(--ui-color-text-subtle);
      font-size: 11px;
      text-align: center;
    }

    .security-note svg {
      width: 13px;
      height: 13px;
      fill: none;
      stroke: currentColor;
      stroke-width: 1.8;
    }

    .sr-only {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }

    @media (max-width: 520px) {
      body {
        align-items: flex-start;
        overflow-y: auto;
      }

      .page {
        width: min(100% - 24px, 440px);
        padding: max(42px, env(safe-area-inset-top)) 0 32px;
        gap: 22px;
      }

      .card {
        padding: 30px 22px 24px;
      }

      .bg-dots { display: none; }
    }

    @media (max-height: 620px) {
      body {
        align-items: flex-start;
        overflow-y: auto;
      }

      .page { padding-block: 28px; }
    }
