
    :root {
      --accent: #3b82f6;
      --accent-indigo: #6366f1;
      --text-main: #e5e7eb;
      --text-soft: #9ca3af;
      --bg-deep: #020617;
      --glass: rgba(15, 23, 42, 0.96);
      --border: rgba(148, 163, 184, 0.22);
      --input-bg: rgba(5, 10, 25, 0.9);
      --safe-bottom: env(safe-area-inset-bottom, 0px);
      --safe-top: env(safe-area-inset-top, 0px);
    }

    * { box-sizing: border-box; margin: 0; padding: 0; }

    html, body {
      height: 100%;
      font-family: system-ui, -apple-system, BlinkMacSystemFont,
        "SF Pro Text", "San Francisco", "Segoe UI", sans-serif;
      color: var(--text-main);
      background: #020617;
      overflow: hidden;
    }

    /* Animated background */
    .bg {
      position: fixed; inset: 0; z-index: 0;
      background: #02081a; background: radial-gradient(ellipse at top center, #0b1120 0%, #020617 50%, #02081a 100%);
    }
    .bg::before {
      content: '';
      position: absolute; inset: 0;
      background:
        radial-gradient(circle at 15% 10%, rgba(96,165,250,0.13), transparent 52%),
        radial-gradient(circle at 85% 90%, rgba(129,140,248,0.13), transparent 52%);
      animation: bgDrift 12s ease-in-out infinite alternate;
    }
    @keyframes bgDrift {
      from { transform: translate(0, 0) scale(1); }
      to   { transform: translate(20px, -20px) scale(1.04); }
    }

    /* Page layout */
    .page {
      position: relative; z-index: 1;
      min-height: 100%;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: calc(24px + var(--safe-top)) 20px calc(24px + var(--safe-bottom));
    }

    /* Logo area */
    .logo-area {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 14px;
      margin-bottom: 32px;
      animation: fadeUp 0.5s ease-out both;
    }
    .logo-ring {
      width: 64px; height: 64px;
      border-radius: 50%; overflow: hidden;
      box-shadow:
        0 0 0 1px rgba(148,163,184,0.18),
        0 0 22px 6px rgba(120,180,255,0.45),
        0 0 44px 12px rgba(180,100,255,0.25),
        0 10px 30px rgba(0,0,0,0.7);
      animation: logoPulse 3.5s ease-in-out infinite;
    }
    .logo-ring img {
      width: 100%; height: 100%;
      object-fit: cover; display: block;
    }
    @keyframes logoPulse {
      0%,100% { box-shadow: 0 0 0 1px rgba(148,163,184,0.18), 0 0 22px 6px rgba(120,180,255,0.45), 0 0 44px 12px rgba(180,100,255,0.25), 0 10px 30px rgba(0,0,0,0.7); }
      50%      { box-shadow: 0 0 0 1px rgba(148,163,184,0.28), 0 0 32px 10px rgba(120,200,255,0.6), 0 0 60px 18px rgba(180,100,255,0.35), 0 12px 36px rgba(0,0,0,0.75); }
    }
    .logo-wordmark {
      text-align: center;
    }
    .logo-wordmark-main {
      font-size: 17px; font-weight: 700; letter-spacing: 0.06em;
      color: var(--text-main);
    }
    .logo-wordmark-sub {
      font-size: 10px; text-transform: uppercase; letter-spacing: 0.24em;
      color: var(--text-soft); margin-top: 3px;
    }

    /* Card */
    .card {
      width: 100%; max-width: 400px;
      background:
        radial-gradient(circle at top left, rgba(148,163,184,0.07), transparent 55%),
        radial-gradient(circle at bottom right, rgba(59,130,246,0.1), transparent 55%),
        var(--glass);
      border: 1px solid var(--border);
      border-radius: 24px;
      padding: 32px 28px 28px;
      box-shadow: 0 32px 80px rgba(0,0,0,0.85), 0 0 0 1px rgba(148,163,184,0.06);
      animation: fadeUp 0.55s 0.08s ease-out both;
    }
    @keyframes fadeUp {
      from { opacity: 0; transform: translateY(18px); }
      to   { opacity: 1; transform: translateY(0); }
    }

    .card-heading {
      font-size: 22px; font-weight: 800;
      letter-spacing: -0.02em;
      margin-bottom: 5px;
    }
    .card-sub {
      font-size: 13px; color: var(--text-soft);
      margin-bottom: 24px; line-height: 1.45;
    }

    /* Fields */
    .field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
    .field-label {
      font-size: 11px; font-weight: 700; letter-spacing: 0.05em;
      text-transform: uppercase; color: rgba(148,163,184,0.7);
    }
    .field-input {
      width: 100%; padding: 12px 14px;
      border-radius: 12px;
      border: 1px solid rgba(75,85,99,0.6);
      background: var(--input-bg);
      color: var(--text-main);
      font-size: 15px; /* 15px+ prevents iOS zoom */
      font-family: inherit;
      outline: none;
      transition: border-color 0.18s, box-shadow 0.18s;
      -webkit-appearance: none;
    }
    .field-input::placeholder { color: rgba(148,163,184,0.35); }
    .field-input:focus {
      border-color: rgba(99,102,241,0.6);
      box-shadow: 0 0 0 3px rgba(99,102,241,0.12);
    }

    /* Submit button */
    .submit-btn {
      width: 100%; margin-top: 22px;
      padding: 14px 0;
      border-radius: 999px; border: none;
      background: linear-gradient(135deg, #3b82f6, #6366f1);
      color: #fff;
      font-size: 15px; font-weight: 700;
      font-family: inherit;
      cursor: pointer;
      box-shadow: 0 16px 40px rgba(59,130,246,0.55);
      transition: transform 0.18s, box-shadow 0.18s, filter 0.18s;
      -webkit-tap-highlight-color: transparent;
      letter-spacing: 0.01em;
    }
    .submit-btn:hover { transform: translateY(-1px); box-shadow: 0 20px 48px rgba(59,130,246,0.7); filter: brightness(1.05); }
    .submit-btn:active { transform: translateY(0); }
    .submit-btn:disabled { opacity: 0.5; cursor: default; transform: none; box-shadow: none; filter: none; }

    /* Error message */
    .error-msg {
      min-height: 20px; margin-top: 12px;
      font-size: 13px; color: #fca5a5;
      text-align: center; line-height: 1.4;
    }

    /* Footer link */
    .foot {
      margin-top: 20px;
      font-size: 13px; color: var(--text-soft);
      text-align: center;
    }
    .foot a { color: #93c5fd; text-decoration: none; font-weight: 600; }
    .foot a:hover { text-decoration: underline; }

    /* Divider */
    .divider {
      border: none; border-top: 1px solid rgba(148,163,184,0.1);
      margin: 20px 0;
    }

    /* ── MOBILE adjustments ── */
    @media (max-width: 480px) {
      .page {
        justify-content: flex-start;
        padding-top: calc(40px + var(--safe-top));
      }
      .logo-area { margin-bottom: 24px; }
      .logo-ring { width: 54px; height: 54px; }
      .logo-wordmark-main { font-size: 15px; }
      .card { padding: 26px 20px 22px; border-radius: 20px; }
      .card-heading { font-size: 20px; }
    }

    /* Very small screens — compact further */
    @media (max-height: 650px) {
      .logo-area { margin-bottom: 16px; }
      .logo-ring { width: 44px; height: 44px; }
      .logo-wordmark-sub { display: none; }
      .card { padding: 22px 18px 18px; }
      .card-heading { font-size: 18px; margin-bottom: 3px; }
      .card-sub { margin-bottom: 16px; }
      .field { margin-bottom: 10px; }
      .field-input { padding: 10px 12px; }
      .submit-btn { margin-top: 16px; padding: 12px 0; }
    }

/* Page-specific presentation, extracted from trusted static markup. */
.login-detail-1 { text-decoration:none;color:inherit; }
.login-detail-2 { display:flex;justify-content:space-between;align-items:center; }
.login-detail-3 { font-size:12px;color:#818cf8;text-decoration:none; }
.login-detail-4 { margin-top:16px;padding:14px;background:rgba(99,102,241,.06);border:1px solid rgba(99,102,241,.18);border-radius:12px; }
.login-help-link { color:#93c5fd; }
#forgotSection[hidden] { display:none; }
.login-detail-5 { font-size:13px;font-weight:700;color:rgba(165,180,252,.9);margin-bottom:8px; }
.login-detail-6 { font-size:12px;color:rgba(148,163,184,.7);margin-bottom:12px; }
.login-detail-7 { margin-bottom:10px; }
.login-detail-8 { font-size:12px;margin-bottom:8px; }
.login-detail-9 { display:flex;gap:8px; }
.login-detail-10 { flex:1;padding:10px; }
.login-detail-11 { padding:10px 14px;background:transparent;border:1px solid rgba(255,255,255,.12);border-radius:10px;color:rgba(148,163,184,.7);font-size:13px;cursor:pointer; }
.login-detail-12 { margin-top:14px;padding:10px 12px;background:rgba(99,102,241,.05);border:1px solid rgba(99,102,241,.14);border-radius:10px;font-size:11.5px;color:rgba(148,163,184,.6);line-height:1.55;text-align:center; }
.login-detail-13 { color:#93c5fd; }
