/* Venue sign-in page (login.html). The base rules the back office keeps inline
   in backoffice.html, which this page cannot (strict CSP), plus its own layout.
   Tokens come from access-tokens.css; site-look.css loads after this file and
   gives it the website look, as it does for the back office. */
*{margin:0;padding:0;box-sizing:border-box}
html{-webkit-text-size-adjust:100%}
body{background:var(--bg);color:var(--ink);font-family:-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;line-height:1.5;-webkit-font-smoothing:antialiased;min-height:100vh}
[hidden]{display:none!important}
button{font:inherit;color:inherit;cursor:pointer;border:none;background:none;min-height:44px;touch-action:manipulation}
/* site-look.css drops the box-shadow rings, so focus is an outline here. */
:focus-visible{outline:2px solid #e8e8e8;outline-offset:2px}
.login-card input:focus-visible{outline:2px solid #e8e8e8;outline-offset:2px}
@media (prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* One column, 16 px from the edges on a phone, centred on a wide screen. */
.login{max-width:480px;margin:0 auto;padding:calc(32px + env(safe-area-inset-top,0px)) max(16px,env(safe-area-inset-right,0px)) calc(48px + env(safe-area-inset-bottom,0px)) max(16px,env(safe-area-inset-left,0px))}
.masthead{margin-bottom:24px}
.wordmark{font-size:24px;font-weight:800;letter-spacing:-.8px}
.wordmark i{color:var(--brand-2);font-style:normal}
.wordmark span{font-weight:500;color:var(--ink-3);margin-left:8px;font-size:14px;letter-spacing:0}

.card{background:var(--surface);border-radius:var(--r-lg);padding:24px;box-shadow:var(--lift)}
h1.screen{font-size:28px;font-weight:800;letter-spacing:-.9px;margin:0 0 8px}
.lede{font-size:13.5px;color:var(--ink-2);line-height:1.6;margin-bottom:24px;overflow-wrap:anywhere}
.note{font-size:13.5px;line-height:1.5;color:var(--ink-2);margin-bottom:16px}
.note:empty{display:none}
.block{border-radius:var(--r-sm);padding:12px 16px;font-size:13.5px;line-height:1.6;margin-bottom:16px}
.block-err{background:var(--risk-soft);color:var(--risk)}
.block-quiet{background:var(--surface-2);color:var(--ink-2)}
.block-quiet p + p{margin-top:4px}
.block a,.hint a{color:var(--ink);text-decoration:underline;text-underline-offset:3px}
.block a{display:inline-flex;align-items:center;min-height:44px}

.step label{display:block;font-size:13px;color:var(--ink-2);margin-bottom:6px}
/* 16 px type: anything smaller and an iPhone zooms in when a field is tapped. */
.step input{width:100%;font:inherit;font-size:16px;color:var(--ink);background:var(--surface-2);border:none;border-radius:var(--r-sm);padding:0 14px;min-height:48px}
.step input::placeholder{color:var(--ink-3)}
.step input[aria-invalid=true]{border-color:var(--risk)!important}
/* The profile step's fields stand apart, as the phone and code steps' single field does. */
.step input + label,.step .hint + label{margin-top:16px}
/* A dark page: the date field's picker and its icon follow it. */
.step input[type=date]{color-scheme:dark}
#codeIn,#emailCodeIn{font-variant-numeric:tabular-nums;letter-spacing:.2em}
.hint{font-size:12.5px;color:var(--ink-3);line-height:1.5;margin-top:8px}
/* "Remember me on this device": a 44 px row with the box on the left, then its hint (login.js, login-email.js). */
.step label.remember{display:flex;align-items:center;gap:12px;min-height:44px;margin:8px 0 0;font-size:14px;color:var(--ink);cursor:pointer}
.step label.remember input{flex:none;width:24px;min-height:24px;height:24px;padding:0;margin:0;cursor:pointer}
.remember-hint{margin-top:0;padding-left:36px}
.demo{margin-top:16px}
/* "Sign in with email (Access team)": a quiet text link under the phone step (login-email.js). */
.alt{margin-top:12px;text-align:center}
.link{padding:0 8px;font-size:13.5px;color:var(--ink-2);text-decoration:underline;text-decoration-color:var(--line-2);text-underline-offset:3px}
.link:hover{color:var(--ink);text-decoration-color:currentColor}

.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:0 16px;border-radius:var(--r-sm);font-size:15px;font-weight:600;min-height:48px;text-align:center;text-decoration:none;transition:background-color .15s,border-color .15s,opacity .15s}
.btn:disabled{opacity:.45;cursor:not-allowed}
.btn-primary{background:var(--grad);color:#fff}
.btn-quiet{background:var(--surface-2);color:var(--ink)}
.step .btn-primary{width:100%;margin-top:16px}
.row{display:flex;flex-wrap:wrap;gap:8px;margin-top:8px}
.row .btn{flex:1 1 180px}

.skel-line{height:56px;border-radius:var(--r-sm);margin-bottom:8px;background:var(--surface-2);position:relative;overflow:hidden}
.skel-line::after{content:'';position:absolute;inset:0;background:linear-gradient(90deg,transparent,rgba(255,255,255,.035),transparent);animation:sweep 1.3s infinite}
@keyframes sweep{from{transform:translateX(-100%)}to{transform:translateX(100%)}}

/* The venues this account works at, each with the tools its role opens. */
.who{font-size:13px;color:var(--ink-2);margin-bottom:8px}
.who b{color:var(--ink);font-weight:600}
.venues{list-style:none;margin:0 0 16px}
.venue{padding:16px 0;border-top:1px solid var(--line)}
.venue-h{display:flex;align-items:center;justify-content:space-between;gap:12px}
.venue-name{font-size:17px;font-weight:500;letter-spacing:-.02em;overflow-wrap:anywhere}
.venue-meta{font-size:13px;color:var(--ink-3);margin-top:2px}
.venue-links{display:flex;flex-wrap:wrap;gap:8px;margin-top:12px}
.venue-links .btn{flex:1 1 auto}
.pill{display:inline-block;flex:none;font-size:12px;padding:3px 10px;border-radius:100px;white-space:nowrap}

/* The tip on saving this page (login-save.js), a quiet card under the sign-in card. */
.save-hint{margin-top:16px;background:var(--surface);border:1px solid var(--line);border-radius:var(--r-lg);padding:16px}
.save-hint-h{display:flex;align-items:center;justify-content:space-between;gap:12px}
.save-hint-title{font-size:15px;font-weight:500;letter-spacing:-.02em;color:var(--ink)}
.save-hint-x{flex:none;width:44px;height:44px;margin:-10px -10px -10px 0;display:inline-flex;align-items:center;justify-content:center;border-radius:12px;font-size:22px;line-height:1;color:var(--ink-3)}
.save-hint-x:hover{color:var(--ink)}
.save-hint-text{font-size:13.5px;line-height:1.6;color:var(--ink-2);margin-top:4px;overflow-wrap:anywhere}
.save-hint .btn{width:100%;margin-top:12px}

/* Two quiet ways back to the website. */
.out{display:flex;flex-wrap:wrap;column-gap:20px;margin-top:16px;font-size:13.5px}
.out a{display:inline-flex;align-items:center;min-height:44px;color:var(--ink-2);text-decoration:underline;text-decoration-color:var(--line-2);text-underline-offset:3px}
.out a:hover{color:var(--ink);text-decoration-color:currentColor}

.foot{margin-top:16px;font-size:12.5px;color:var(--ink-3);line-height:1.6}
