/* public/shared/h1-sign-in.css — the H1 sign-in look, once (9 Nov 2026, Andrea: forgot and reset
   password were "not H1"). Lifted unchanged from the sign-in page's own <style> (public/home/index.html,
   the H1 UI standard of 31 Oct 2026, docs/design/h1-ui-standard.md) so the sign-in page,
   /forgot-password/ and /reset-password/ draw from one copy: the warm grey page, the "Hospitality in 1"
   wordmark in Inter Tight, the white card with the thin line and the 11px corner, the 44px boxes with
   the 7px corner, the red line under the form and ONE green button.
   Link after /shared/h1-fonts.css, /backoffice/bo-tokens.css and /shared/h1-ui.css: every colour is a
   --ui-* token from h1-ui.css (without it bo-tokens.css points at names that do not exist, which is
   why the old forgot page was white and its boxes had no border). */
*{box-sizing:border-box}
html,body{margin:0;background:var(--ui-page);color:var(--ui-ink);
  font:16px/1.6 var(--ui-font);-webkit-text-size-adjust:100%;min-height:100%}
:focus-visible{outline:2px solid var(--ui-green);outline-offset:2px}
.wrap{max-width:920px;margin:0 auto;padding:0 20px 60px}

header{padding:calc(44px + env(safe-area-inset-top)) 0 6px;text-align:center}
.nm{font:600 30px/1.2 var(--ui-font-head);letter-spacing:-.035em;color:var(--ui-ink)}
.nm b{color:var(--ui-green);font-weight:600}
.tag{color:var(--ui-muted);font-size:13px;margin-top:6px}

/* the card */
.card{max-width:400px;margin:7vh auto 0;background:var(--ui-card);border:1px solid var(--ui-line);border-radius:var(--ui-radius-card);
  padding:28px}
.card h1,.card h2{font:600 28px/1.1 var(--ui-font-head);letter-spacing:-.035em;margin:0 0 6px;color:var(--ui-ink)}
.card p{color:var(--ui-muted);margin:0 0 22px;font-size:14px}
.field{margin-bottom:14px}
.field label{display:block;font-size:13px;color:var(--ui-muted);margin-bottom:6px}
.field input{width:100%;min-height:44px;padding:11px 12px;border:1px solid var(--ui-btn-line);border-radius:7px;font-size:16px;outline:none;background:var(--ui-card);color:var(--ui-ink);font-family:inherit}
.field input:focus{border-color:var(--ui-green);box-shadow:0 0 0 3px var(--ui-label-green)}
.err{color:var(--ui-label-red-ink);font-size:13px;min-height:18px;margin:2px 0 6px}
.btn{width:100%;min-height:48px;border:1px solid var(--ui-green);border-radius:var(--ui-radius-btn);padding:12px 16px;font-size:16px;font-weight:600;background:var(--ui-green);color:#fff;cursor:pointer;font-family:inherit}
@media (hover:hover){.btn:hover:enabled{background:var(--ui-green-hover);border-color:var(--ui-green-hover)}}
.btn:disabled{opacity:.55}

/* forgot and reset password: the pieces the sign-in card has no need of, in its own sizes and colours */
.card .field .help{margin:6px 0 0;font-size:13px;line-height:1.45}
.field input:disabled{background:var(--ui-page);color:var(--ui-muted)}
.field input[aria-invalid="true"]{border-color:var(--ui-label-red-ink)}
.card form[hidden]{display:none}
.aa-notice{margin:0 0 16px;padding:12px 14px;border-radius:7px;background:var(--ui-label-green);color:var(--ui-done-ink);font-size:14px;line-height:1.5}
.card h1 + .aa-notice{margin-top:16px}
.aa-notice.bad{background:var(--ui-label-red);color:var(--ui-label-red-ink)}
.aa-notice[hidden]{display:none}
a.btn{display:flex;align-items:center;justify-content:center;text-decoration:none}
a.btn[hidden]{display:none}
.card .alt{margin:16px 0 0;font-size:14px;color:var(--ui-muted)}
.card .alt a{color:inherit;white-space:nowrap}
.card .fine{margin:12px 0 0;font-size:13px;line-height:1.45}

footer{margin-top:52px;text-align:center;color:var(--ui-muted);font-size:12px}
.hidden{display:none}
