
    :root{
      --bg: linear-gradient(135deg,#f3f6ff,#eef7ff);
      --card-bg: #ffffff;
      --accent: #0875e9;
      --accent-2: #6e8cfb;
      --muted:#6b7280;
      --radius:12px;
      --gap:14px;
      --max-width:420px;
    }

    /* reset */
    *{box-sizing:border-box;margin:0;padding:0}
    html,body{height:100%}
    body{
      font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial;
      -webkit-font-smoothing:antialiased;
      background: var(--bg);
      display:flex;
      align-items:center;
      justify-content:center;
      padding:28px;
      color:#0b1826;
    }

    /* page container */
    .wrap{
      width:100%;
      max-width:var(--max-width);
      background:linear-gradient(180deg, rgba(255,255,255,0.98), rgba(250,252,255,0.98));
      border-radius:calc(var(--radius) + 6px);
      box-shadow:0 10px 30px rgba(8,22,48,0.12);
      overflow:hidden;
    }

    /* header area */
    .hero{
      padding:20px;
      display:flex;
      gap:12px;
      align-items:center;
      background:linear-gradient(90deg,var(--accent-2),var(--accent));
      color:white;
    }
    .logo {
      width:56px;height:56px;border-radius:10px;display:grid;place-items:center;
      background:rgba(255,255,255,0.12); font-weight:700; font-size:22px;
      box-shadow:0 8px 22px rgba(8,22,48,0.18);
    }
    .hero h1{font-size:18px;margin-bottom:2px}
    .hero p{font-size:12px;opacity:0.95;margin:0}

    /* card content */
    .card{
      padding:22px;
    }

    form { display:flex; flex-direction:column; gap:var(--gap); }

    label{
      font-size:13px;
      color:var(--muted);
      margin-bottom:6px;
      display:block;
      font-weight:600;
    }

    .input{
      width:100%;
      padding:12px 14px;
      border-radius:10px;
      border:1px solid rgba(10,20,40,0.06);
      background:linear-gradient(180deg,#fff,#fbfdff);
      font-size:15px;
      color:#0b1826;
      outline:none;
      transition: box-shadow .12s ease, border-color .12s ease, transform .06s ease;
    }
    .input::placeholder{ color:#a7b1c2; }

    .input:focus{
      box-shadow:0 8px 26px rgba(14,30,60,0.08);
      border-color: rgba(110,140,251,0.9);
      transform: translateY(-1px);
    }

    /* inline field wrapper for password with toggle */
    .field-row{ position:relative; display:flex; align-items:center; }

    .toggle-btn{
      position:absolute;
      right:8px;
      top:50%;
      transform:translateY(-50%);
      border:0;
      background:transparent;
      padding:6px 8px;
      cursor:pointer;
      font-size:13px;
      color:var(--muted);
      border-radius:8px;
    }
    .toggle-btn:active{ transform:translateY(-50%) scale(.98); }

    /* remember + forgot row */
    .row{
      display:flex;
      justify-content:space-between;
      align-items:center;
      gap:12px;
    }
    .remember {
      display:flex;
      gap:8px;
      align-items:center;
      font-size:14px;
      color:var(--muted);
    }
    .remember input{ width:16px; height:16px; }

    .link{
      color:var(--accent);
      text-decoration:none;
      font-weight:700;
      font-size:14px;
    }
    .link:hover{ text-decoration:underline; }

    /* submit */
    .btn{
      display:block;
      width:100%;
      padding:12px;
      border-radius:10px;
      border:0;
      background:linear-gradient(90deg,var(--accent-2),var(--accent));
      color:white;
      font-weight:800;
      font-size:15px;
      cursor:pointer;
      box-shadow:0 12px 34px rgba(110,140,251,0.14);
      transition: transform .12s ease, box-shadow .12s ease;
    }
    .btn:active{ transform:translateY(-1px) }

    /* small helper text & footer */
    .helper{ font-size:13px; color:var(--muted); margin-top:6px; }
    .bottom-links{ display:flex; justify-content:space-between; align-items:center; margin-top:8px; gap:12px; flex-wrap:wrap; }
    .small{ font-size:13px; color:var(--muted); }

    /* responsive: narrow screens */
    @media (max-width:480px){
      :root{ --max-width: 96vw; }
      .hero{ padding:14px; gap:10px; }
      .hero h1{ font-size:16px }
      .logo{ width:48px;height:48px;font-size:18px }
    }

    /* accessibility focus outline for keyboard users */
    :focus{ outline: 3px solid rgba(14,120,255,0.12); outline-offset:2px; }
  