  :root {
    --blue: #418fcd;
    --blue-tint: #eaf1fb;
    --blue-line: #c3d5ee;
    --sky-top: #d6e6fc;
    --sky-low: #f4f9ff;
    --ink: #16202e;
    --text: #2b3645;
    --muted: #5f6b7b;
    --line: #dfe4ec;
    --soft: #f4f6f9;
    --green: #17703f;
    --green-tint: #e7f5ec;
    --green-line: #b4dcc4;
    --gold: #f2a23c;
    --sun: #ffe7a8;
    --red: #b3261e;
    --red-tint: #fdecea;
    --red-line: #f2b8b5;
    --wrap: 1260px;
    --edge: max(24px, calc((100vw - var(--wrap)) / 2 + 24px));   /* left edge of the site container */
  }
  body { margin: 0; line-height: 1.5; color: var(--text); background: #fff; }
  a { color: inherit; text-decoration: none; }
  button { font: inherit; cursor: pointer; color: inherit; }
  h1, h2, p { margin: 0; }
  [hidden] { display: none !important; }
  :focus-visible { outline: 3px solid #f2b84b; outline-offset: 2px; }
  .wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
  .ico { display: inline-flex; flex: none; }
  /* ---------- The scene: light sky, sea and rig behind everything ---------- */
  .scene { position: relative; overflow: hidden; min-height: calc(100vh - 103px - 76px);
    background: linear-gradient(180deg, var(--sky-top) 0%, #e8f1fe 45%, var(--sky-low) 100%); }
  .sun { position: absolute; top: -60px; left: 44%; width: 300px; height: 300px; border-radius: 50%;
    background: radial-gradient(circle, #fff3cf 0 26%, rgba(255,231,168,.55) 27% 44%, rgba(255,231,168,0) 70%); }
  .cloud { position: absolute; fill: #fff; opacity: .9; }
  .cloud.c1 { width: 170px; top: 24px; left: 47%; }
  .cloud.c2 { width: 120px; top: 220px; left: 52%; opacity: .7; }
  .cloud.c3 { width: 210px; top: 34px; right: -40px; opacity: .75; }
  .birds { position: absolute; top: 150px; left: 47%; width: 70px; stroke: var(--blue); fill: none; opacity: .55; }
  .sea { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 190px; display: block; }
  .sea.back { z-index: 1; }
  .rig { position: absolute; z-index: 2; bottom: 34px; left: calc(var(--edge) + 372px); width: 300px; height: auto; }
  .sea.front { z-index: 3; }

  .scene-grid { position: relative; z-index: 4; display: grid; grid-template-columns: minmax(0, 1fr) 475px; gap: 56px; align-items: start; padding-top: 40px; padding-bottom: 45px; }

  /* Left: headline and the floating account cards */
  .hello h2 { font-size: clamp(34px, 3.6vw, 44px); font-weight: 800; line-height: 1.08; letter-spacing: -.6px; color: #000; margin-bottom: 12px; }
  .hello h2 span { color: var(--blue); }
  .hello p { font-size: 19px; color: #3a4a61; max-width: 24em; }
  .acards { position: relative; height: 310px; margin-top: 34px; max-width: 560px; }
  .acard { position: absolute; background: #fff; border-radius: 14px; padding: 16px 18px; color: var(--ink);
    box-shadow: 0 14px 34px rgba(53, 89, 143, .22), 0 2px 6px rgba(53, 89, 143, .1);
    transform: rotate(var(--r, 0deg)); animation: drop .7s cubic-bezier(.2, .8, .2, 1) both; }
  .acard small { display: block; font-size: 14.5px; color: var(--text); }
  .acard .top { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 700; color: var(--muted); margin-bottom: 6px; }
  .acard .badge-ico { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; }
  .a-wallet { --r: -3deg; left: 0; top: 4px; width: 232px; animation-delay: .1s; }
  .a-wallet .badge-ico { background: var(--green-tint); color: var(--green); }
  .a-wallet .big { font-size: 36px; font-weight: 800; line-height: 1.1; color: var(--green); font-family: 'avenir_lt_std95_black';}
  .a-course { --r: 2deg; left: 222px; top: 64px; width: 310px; z-index: 2; animation-delay: .25s; }
  .a-course .badge-ico { background: var(--blue-tint); color: var(--blue); }
  .a-course strong { display: block; font-size: 19px; line-height: 1.25; }
  .a-course .when { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 8px; font-size: 14.5px; color: var(--text); }
  .a-quiz { --r: -1.5deg; left: 30px; top: 184px; width: 236px; z-index: 1; animation-delay: .4s; }
  .a-quiz .badge-ico { background: #fff3dc; color: #a2620a; }
  .a-quiz strong { font-size: 19px; }
  strong{font-family: 'avenir_lt_std85_heavy'}
  .bar { height: 8px; border-radius: 999px; background: #edf0f5; margin-top: 10px; overflow: hidden; }
  .bar i { display: block; height: 100%; width: 80%; border-radius: 999px; background: var(--gold); }
  .confirmed { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px 2px 6px; border-radius: 999px; background: var(--green-tint); border: 1px solid var(--green-line); color: var(--green); font-size: 12.5px; font-weight: 700; }
  @keyframes drop { from { opacity: 0; transform: translateY(22px) rotate(var(--r, 0deg)); } }

  /* Right: the login card */
  .card { background: #fff; border-radius: 18px; overflow: hidden; box-shadow: 0 24px 60px rgba(53, 89, 143, .26), 0 2px 8px rgba(53, 89, 143, .1); }
  .card-pad { padding: 30px 36px 28px; }
  .card h1 { font-size: 30px; font-weight: 800; color: var(--blue); margin-bottom: 4px; }
  .lead { color: var(--muted); margin-bottom: 15px; }

  .context { display: grid; grid-template-columns: 20px 1fr; gap: 12px; padding: 12px 14px; margin-bottom: 18px; border-radius: 10px; background: var(--blue-tint); border: 1px solid var(--blue-line); color: var(--ink); font-size: 15px; }
  .context .ico { color: var(--blue); margin-top: 2px; }
  .alert { display: grid; grid-template-columns: 20px 1fr; gap: 12px; padding: 12px 14px; margin-bottom: 18px; border-radius: 10px; font-size: 15px; }
  .alert .ico { margin-top: 2px; }
  .alert.bad { background: var(--red-tint); border: 1px solid var(--red-line); color: #7a1a14; }
  .alert.good { background: var(--green-tint); border: 1px solid var(--green-line); color: var(--green); font-weight: 600; }
  .alert a { font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

  .field { margin-bottom: 16px; }
  .label-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
  .field label { font-size: 15px; font-weight: 700; color: var(--ink); }
  .label-row a { font-size: 14.5px; font-weight: 600; color: var(--blue) !important; text-decoration: underline; text-underline-offset: 3px; }
  .input { position: relative; }
  .input > .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--blue); pointer-events: none; }
  .card form .input input { width: 100%; font: inherit; color: var(--ink); padding: 13px 14px 13px 44px; border: 1.5px solid #b7c0ce; border-radius: 10px; background: #fbfcfe; }
  .card form .input input::placeholder { color: #8a94a3; }
  .card form .input input:focus { outline: none; border-color: var(--blue); background: #fff; }
  .input.pw input { padding-right: 76px; }
  .input.pw button { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); border: 0; background: none; padding: 8px 10px; border-radius: 6px; font-size: 14.5px; font-weight: 700; color: var(--blue); }
  .input.pw button:hover { background: var(--blue-tint); }
  .field.invalid input { border-color: var(--red); background: #fffafa; }
  .field.invalid .input > .ico { color: var(--red); }
  .err { color: var(--red); font-size: 14px; font-weight: 600; margin-top: 6px; }

  .btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; padding: 14px 20px; border-radius: 10px; font-weight: 700; font-size: 17px; border: 1.5px solid transparent; transition: all 0.3s cubic-bezier(.165, .84, .44, 1); }
  .btn-primary { margin-top: 4px; color: #fff; background: var(--blue); box-shadow: 0 10px 22px rgba(70, 114, 182, .38);}
  .btn-primary:hover { background: white; color: var(--blue); border-color: var(--blue); }
  .btn-primary:disabled { background: #7f9bc8; box-shadow: none; cursor: default; }
  .btn-primary.done { background: var(--green); }
  .spinner { width: 18px; height: 18px; border-radius: 50%; border: 2.5px solid rgba(255,255,255,.4); border-top-color: #fff; animation: spin .7s linear infinite; }
  @keyframes spin { to { transform: rotate(360deg); } }

  .or { display: flex; align-items: center; gap: 14px; color: var(--muted); font-size: 14px; margin: 20px 0 14px; }
  .or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
  .social { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
  .btn-social { background: #fff; border-color: #c9d0db; color: var(--ink); font-size: 15.5px; font-weight: 600; padding: 11px 10px; }
  .btn-social:hover { background: var(--soft); border-color: #9aa5b5; }

  /* Sign-up strip at the bottom of the card */
  .signup { background: #dff0ff; border-top: 1px solid #9ccaf0; }
  .signup .inner{ display: grid; grid-template-columns: 44px 1fr; gap: 14px; align-items: center; padding: 16px 36px 18px;}
  .signup .gift { width: 44px; height: 44px; border-radius: 12px; background: #fff; color: var(--blue); display: grid; place-items: center; box-shadow: 0 2px 6px rgba(23, 112, 63, .18); }
  .signup p { color: var(--ink); }
  .signup a { font-weight: 800; color: var(--blue) !important; text-decoration: underline; text-underline-offset: 3px; font-size: 16px; }
  .signup small { display: block; font-size: 14.5px; color: var(--ink); font-weight: 600; }

  /* ---------- Trust strip ---------- */
  .trust { background: #fff; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .trust ul { list-style: none; margin: 0 auto; max-width: var(--wrap); padding: 0 24px; min-height: 64px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; align-items: center; }
  .trust li { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--ink); font-size: 15.5px; }
  .trust .ico { width: 38px; height: 38px; border-radius: 50%; background: var(--blue-tint); color: var(--blue); align-items: center; justify-content: center; }


  /* ---------- Responsive ---------- */
  @media (max-width: 1180px) { .rig { left: auto; right: 520px; width: 240px; } .a-course { left: 190px; width: 280px; } }
  @media (max-width: 1020px) {
    .site-header nav, .topbar nav { display: none; }
    .scene { min-height: 0; }
    .scene-grid { grid-template-columns: 1fr; gap: 36px; padding: 0 0; padding-top: 28px; padding-bottom: 250px; }
    .card { order: -1; max-width: 520px; width: 100%; margin: 0 auto; }      /* form first on phones and tablets */
    .hello, .acards { max-width: 520px; width: 100%; margin-left: auto; margin-right: auto; }
    .acards { height: auto; display: grid; gap: 14px; margin-top: 22px; }
    .acard, .a-wallet, .a-course, .a-quiz { position: static; width: auto; --r: 0deg; }
    .rig { right: auto; left: 50%; margin-left: -110px; width: 220px; bottom: 30px; }
    .sun { left: auto; right: -80px; } .cloud.c1, .cloud.c2, .birds { display: none; }
    .trust ul { grid-template-columns: 1fr 1fr; padding: 0 0; padding-top: 14px; padding-bottom: 14px; }
  }
  @media (max-width: 520px) {
    .topbar .wrap { gap: 16px; font-size: 12.5px; }
    .card-pad { padding: 26px 22px 22px; } .signup .inner{ padding: 14px 22px 16px; }
    .trust li { font-size: 14px; } .trust .ico { width: 32px; height: 32px; }
  }
  @media (prefers-reduced-motion: reduce) {
    .acard { animation: none; } .spinner { animation-duration: 2s; } .btn { transition: none; }
  }
