/* 4Cast360 · Login page styles, copied unchanged from the frozen prototype (Docs/prototype/login.html).
   Also used by the 2-step verification, set-up and set-password screens, which reuse the same card. */
  :root { --teal: #0F766E; --teal-d: #0B5F58; --ink: #10231F; --muted: #5A706B; --faint: #8A9C98; --line: #DCE6E3; --bg: #F5F8F7; --card: #FFFFFF; --field: #FFFFFF; --ring: rgba(15,118,110,.22); }
  @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ink: #E7F1EF; --muted: #A3B6B1; --faint: #71857F; --line: #24322F; --bg: #0C1413; --card: #121C1A; --field: #0F1816; --ring: rgba(45,212,191,.25); } }
  * { box-sizing: border-box; }
  html, body { height: 100%; }
  body { margin: 0; font-family: "Inter", "Segoe UI", system-ui, sans-serif; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
  .wrap { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); }

  /* brand side */
  .side { position: relative; overflow: hidden; color: #fff; padding: 44px 52px; display: flex; flex-direction: column; gap: 36px;
          background: radial-gradient(900px 500px at 110% -10%, rgba(94,234,212,.28), transparent 60%), radial-gradient(700px 520px at -20% 110%, rgba(59,122,134,.55), transparent 60%),
                      linear-gradient(155deg, #0F766E 0%, #115E59 45%, #0B3B37 100%); }
  .side::before { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255,255,255,.08) 1px, transparent 1px); background-size: 22px 22px;
                  mask-image: linear-gradient(180deg, rgba(0,0,0,.9), transparent 75%); pointer-events: none; }
  .side > * { position: relative; }
  .brand { display: flex; gap: 12px; align-items: center; font-weight: 700; font-size: 19px; letter-spacing: -.01em; }
  .mark { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; font-size: 14px; font-weight: 700; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.22); }
  .hero { margin-top: auto; }
  .hero h1 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; letter-spacing: -.02em; margin: 0 0 14px; max-width: 460px; }
  .hero p { margin: 0; max-width: 440px; line-height: 1.6; color: rgba(255,255,255,.82); font-size: 15px; }
  .points { display: grid; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; max-width: 440px; }
  .points li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 12px; align-items: center; font-size: 14px; color: rgba(255,255,255,.9); }
  .points i { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.16); font-size: 15px; }
  .points b { display: block; color: #fff; font-weight: 600; }
  .peek { max-width: 380px; border-radius: 16px; padding: 14px 16px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); backdrop-filter: blur(6px); }
  .peek__top { display: flex; justify-content: space-between; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: rgba(255,255,255,.7); font-weight: 600; }
  .peek__val { font-size: 24px; font-weight: 700; margin: 6px 0 10px; letter-spacing: -.01em; }
  .peek__val small { font-size: 13px; font-weight: 500; color: rgba(255,255,255,.7); margin-left: 6px; }
  .peek__bar { position: relative; height: 8px; border-radius: 999px; background: rgba(255,255,255,.14); }
  .peek__bar span { position: absolute; top: 0; bottom: 0; border-radius: 999px; }
  .peek__bar .r { left: 30%; right: 18%; background: rgba(94,234,212,.4); } .peek__bar .a { left: 0; width: 22%; background: #5EEAD4; }
  .peek__bar .q { left: 74%; top: -4px; bottom: -4px; width: 0; border-left: 2px dashed rgba(255,255,255,.8); }
  .foot { font-size: 12px; color: rgba(255,255,255,.62); }

  /* form side */
  .main { display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 40px 24px; }
  .card { width: min(420px, 100%); background: var(--card); border: 1px solid var(--line); border-radius: 20px; padding: 36px 34px 30px; box-shadow: 0 1px 2px rgba(16,35,31,.04), 0 18px 48px rgba(16,35,31,.08); }
  .card .mark { background: linear-gradient(135deg, #0F766E, #3B7A86); color: #fff; border: 0; display: none; }
  .card h2 { margin: 0; font-size: 24px; letter-spacing: -.02em; }
  .card .sub { margin: 6px 0 26px; color: var(--muted); font-size: 14px; }
  label { display: block; font-size: 13px; font-weight: 600; color: var(--ink); margin: 0 0 7px; }
  .field { position: relative; margin-bottom: 18px; }
  .field > i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--faint); font-size: 15px; pointer-events: none; }
  input { width: 100%; height: 48px; border-radius: 12px; border: 1px solid var(--line); background: var(--field); color: var(--ink); padding: 0 44px 0 42px; font: inherit; font-size: 15px; transition: border-color .15s, box-shadow .15s; }
  input::placeholder { color: var(--faint); }
  input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px var(--ring); }
  .eye { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 36px; height: 36px; border: 0; border-radius: 9px; background: transparent; color: var(--faint); cursor: pointer; }
  .eye:hover { color: var(--ink); background: rgba(15,118,110,.08); }
  .row { display: flex; justify-content: space-between; align-items: center; margin: -4px 0 22px; font-size: 13px; color: var(--muted); }
  .row label { display: flex; gap: 8px; align-items: center; font-weight: 500; color: var(--muted); margin: 0; cursor: pointer; }
  .row input { width: 16px; height: 16px; padding: 0; accent-color: var(--teal); }
  button.go { width: 100%; height: 50px; border: 0; border-radius: 12px; background: var(--teal); color: #fff; font: inherit; font-size: 15px; font-weight: 600; cursor: pointer;
              display: flex; gap: 10px; align-items: center; justify-content: center; box-shadow: 0 8px 20px rgba(15,118,110,.25); transition: background .15s, transform .05s; }
  button.go:hover { background: var(--teal-d); } button.go:active { transform: translateY(1px); }
  .err { display: none; gap: 8px; align-items: flex-start; margin-top: 14px; padding: 10px 12px; border-radius: 10px; background: rgba(180,35,24,.08); color: #b42318; font-size: 13px; }
  .err.on { display: flex; }
  .who { margin: 0 0 18px; padding: 10px 12px; border-radius: 10px; background: rgba(15,118,110,.08); color: var(--ink); font-size: 13px; line-height: 1.45; display: none; }
  .fg { color: var(--teal); font-weight: 600; text-decoration: none; } .fg:hover { text-decoration: underline; }
  .help a { color: var(--teal); font-weight: 600; text-decoration: none; }
  .help { margin: 22px 0 0; text-align: center; font-size: 13px; color: var(--muted); }
  .legal { margin-top: 22px; font-size: 12px; color: #4B5E5A; text-align: center; }
  @media (max-width: 960px) {
    .wrap { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
    .side { padding: 16px 20px; gap: 0; } .hero, .peek, .foot, .points { display: none; }
    .main { padding: 24px 16px 32px; justify-content: flex-start; }
    .card { padding: 26px 20px 22px; }
    .row { flex-wrap: wrap; gap: 8px 12px; }
  }

/* ---- Additions for the real sign-in (not in the prototype; same look as the card above) ---- */
.who.on { display: block; }
.qr { display: grid; place-items: center; margin: 0 0 16px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.qr svg { width: 180px; height: 180px; display: block; }
.secret { font-family: Consolas, "Courier New", monospace; font-size: 14px; letter-spacing: .08em; text-align: center; color: var(--ink); background: var(--bg); border-radius: 10px; padding: 8px 10px; margin: 0 0 18px; word-break: break-all; }
input.code { letter-spacing: .4em; font-size: 20px; text-align: center; padding: 0 12px; }
.hint { margin: -10px 0 18px; font-size: 12px; color: var(--muted); }
