/* stefanpressconsulting.com - the account pages (login.php, welcome.php) and the home page's sign-in bits. Loaded
   after home.css, which holds the tokens and the form styles. Served as a file: the CSP allows no inline style. */

  [hidden] { display: none !important; }      /* any author display would un-hide it (shared note dev_css_hidden_attribute) */

  .account { max-width: 520px; }
  .account .brand { text-decoration: none; }
  .account .card { margin-top: 34px; }
  .account-title { margin: 0 0 8px; font-size: 26px; font-weight: 800; letter-spacing: -0.01em; color: #fff; }
  .account-lede { margin: 0 0 20px; font-size: 14px; line-height: 1.55; color: var(--muted); }
  .guest-privacy { margin: -8px 0 18px; font-size: 12px; line-height: 1.5; color: var(--muted); }
  .guest-privacy a { color: var(--cyan); }

  .guest {
    display: block;
    margin-top: 12px;
    padding: 12px 16px;
    text-align: center;
    border: 1px solid var(--line);
    border-radius: 11px;
    color: var(--text);
    text-decoration: none;
    font-size: 14px;
    font-weight: 600;
    background: rgba(4, 7, 16, 0.65);
    transition: border-color .18s, color .18s;
  }
  .guest:hover, .guest:focus-visible { border-color: var(--cyan); color: var(--cyan); }
  .guest:focus-visible { outline: 2px solid var(--cyan); outline-offset: 2px; }

  /* the home page: who is signed in, and the panel guests see instead of the board */
  .who { display: flex; align-items: center; gap: 12px; font-size: 13.5px; color: var(--muted); }
  .who form { margin: 0; }
  .who button {
    width: auto; margin: 0; padding: 6px 12px;
    font-size: 13px; font-weight: 600; letter-spacing: 0; text-transform: none;
    color: var(--text); background: rgba(4, 7, 16, 0.65); border: 1px solid var(--line); box-shadow: none;
  }
  .who button:hover { border-color: var(--cyan); color: var(--cyan); transform: none; filter: none; box-shadow: none; }

  .locked {
    margin-top: 18px;
    padding: 22px 22px 20px;
    border: 1px dashed var(--line);
    border-radius: 12px;
    background: rgba(10, 14, 26, 0.6);
  }
  .locked h3 { margin: 0 0 6px; font-size: 17px; color: #fff; }
  .locked p { margin: 0 0 14px; max-width: 60ch; font-size: 14px; line-height: 1.6; color: var(--muted); }

  @media (prefers-reduced-motion: reduce) {
    .guest { transition: none; }
  }

  /* login.php: the guest-password pop-up (a native <dialog>, opened by assets/login.js) */
  .guest-dialog {
    width: min(440px, calc(100vw - 32px));
    padding: 26px 24px 22px;
    border: 1px solid var(--line);
    border-radius: 14px;
    color: var(--text);
    background: rgba(10, 14, 26, 0.97);
  }
  .guest-dialog::backdrop { background: rgba(2, 4, 10, 0.72); }
  .guest-dialog form { margin: 0; }
  .guest-aloha {
    margin: 0 0 14px; padding: 10px 12px;
    font-size: 14px; line-height: 1.5; color: var(--text);
    border-left: 2px solid var(--cyan); background: rgba(74, 240, 255, 0.06); border-radius: 0 8px 8px 0;
  }

  /* "Forgot your password?" under the sign-in button (forgot.php, owner 2026-10-24) */
  .forgot { display: inline-block; margin-top: 12px; font-size: 13px; color: var(--muted); text-decoration: none; }
  .forgot:hover, .forgot:focus-visible { color: var(--cyan); text-decoration: underline; }

  /* login.php (owner 2026-10-29 "a stay logged in, and a human check"): "Stay signed in", then the human check - a
     card with a box to tick; assets/login.js turns the tick into a short check (a spinning ring, then a green tick)
     and only then fills the form's one-time code and lets the button sign in */
  .keep, .human-box { display: flex; align-items: center; gap: 10px; margin: 0; font-size: 14px; letter-spacing: 0;
    text-transform: none; color: var(--text); cursor: pointer; }
  .keep { margin: 2px 0 14px; }
  .keep input, .human-box input { width: 18px; height: 18px; margin: 0; padding: 0; flex: none; accent-color: var(--cyan);
    cursor: pointer; }
  .human { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 16px;
    padding: 12px 14px; border: 1px solid var(--line); border-radius: 11px; background: rgba(4, 7, 16, 0.7);
    transition: border-color .25s, box-shadow .25s; }
  .human-box input { position: absolute; opacity: 0; width: 1px; height: 1px; }   /* the tick below draws it */
  .human-tick { position: relative; flex: none; width: 26px; height: 26px; border-radius: 7px;
    border: 2px solid var(--line); background: #070b18; transition: border-color .2s, background .2s; }
  .human-box:hover .human-tick, .human-box input:focus-visible + .human-tick { border-color: var(--cyan); }
  .human-box input:focus-visible + .human-tick { box-shadow: 0 0 0 3px rgba(74, 240, 255, 0.2); }
  .human-text { font-size: 15px; font-weight: 600; }
  .human-state { font: 600 11px/1.2 ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace; letter-spacing: .08em;
    text-transform: uppercase; color: var(--muted); }
  /* checking: the box becomes a spinning ring */
  .human.checking .human-tick { border-color: rgba(74, 240, 255, 0.25); border-top-color: var(--cyan); border-radius: 50%;
    animation: human-spin .7s linear infinite; }
  .human.checking .human-state { color: var(--cyan); }
  @keyframes human-spin { to { transform: rotate(360deg); } }
  /* done: a green tick drawn in */
  .human.ok { border-color: rgba(70, 230, 160, 0.55); box-shadow: 0 0 0 3px rgba(70, 230, 160, 0.10); }
  .human.ok .human-tick { border-color: transparent; background: linear-gradient(135deg, #46e6a0, var(--cyan)); }
  .human.ok .human-tick::after { content: ""; position: absolute; left: 8px; top: 3px; width: 6px; height: 12px;
    border: solid #04131a; border-width: 0 3px 3px 0; transform: rotate(45deg) scale(0); transform-origin: center;
    animation: human-tick .3s ease-out forwards; }
  .human.ok .human-state { color: #46e6a0; }
  @keyframes human-tick { to { transform: rotate(45deg) scale(1); } }
  #signin-submit:disabled { opacity: .45; cursor: not-allowed; transform: none; filter: none; box-shadow: none; }
  @media (prefers-reduced-motion: reduce) {
    .human.checking .human-tick, .human.ok .human-tick::after { animation: none; }
    .human.ok .human-tick::after { transform: rotate(45deg); }
  }
