/* Sign-in and account screens (design plan 8a, look A), loaded only by templates/_auth_frame.html, so the app's
   shared stylesheet (app.css) does not carry them on every page after sign-in. The EKG paper itself (.ekg-paper)
   stays in app-ui-kit.css because the home panel uses it too. */
/* The logo on white, EKG paper, one centred card with the app's own fields and buttons. Fields are 16px so
   iPhones do not zoom, every tap is 44px or more, and nothing moves. */
body.auth{ min-height:100svh; display:flex; flex-direction:column; margin:0; background:var(--c-page); color:var(--c-ink); }
body.auth #main::before{ display:none; }
.auth-staging{ background:var(--p-crimson); color:var(--p-white); text-align:center; font-size:var(--fs-xs); font-weight:600;
  letter-spacing:.14em; text-transform:uppercase; padding:7px 12px; }
.auth-top{ display:flex; align-items:center; justify-content:space-between; gap:1rem; background:var(--c-surface);
  border-bottom:1px solid var(--c-line); padding:10px 20px; padding-top:calc(10px + env(safe-area-inset-top,0px)); }
.auth-brand{ display:inline-flex; align-items:center; min-height:44px; }
.auth-brand img{ height:34px; width:auto; display:block; }
.auth-logo-dark{ display:none !important; }
html[data-theme="dark"] .auth-logo-light{ display:none !important; }
html[data-theme="dark"] .auth-logo-dark{ display:block !important; }
.auth-site{ display:inline-flex; align-items:center; min-height:44px; font-size:var(--fs-sm); font-weight:600; color:var(--c-ink-slate); text-decoration:none; }
.auth-site:hover{ color:var(--c-ink-strong); text-decoration:underline; }
.auth-main{ flex:1 0 auto; display:flex; justify-content:center; align-items:flex-start; padding:6vh 20px 3rem; }
.auth-col{ width:100%; max-width:440px; }
.auth-col.auth-wide{ max-width:560px; }
.auth-head{ margin:0 0 1rem; }
.auth-eyebrow{ font-size:var(--fs-xs); font-weight:700; letter-spacing:.18em; text-transform:uppercase; color:var(--c-gold-ink); margin:0 0 .35rem; }
.auth-title{ font-family:var(--font-display); font-weight:600; font-size:var(--fs-3xl); line-height:var(--lh-tight); color:var(--c-ink-strong); margin:0 0 .35rem; }
.auth-sub{ font-size:var(--fs-base); line-height:var(--lh-body); color:var(--c-ink-muted); margin:0; }
.auth-card{ background:var(--c-surface); border:1px solid var(--c-line); border-radius:var(--r-2); padding:1.4rem 1.35rem 1.3rem; }
.auth-card + .auth-card{ margin-top:.9rem; }
.auth .form-label{ font-size:var(--fs-md); font-weight:600; color:var(--c-ink-strong); margin:.85rem 0 .35rem; }
.auth .form-label:first-child{ margin-top:0; }
.auth .form-control, .auth .form-select{ font-size:var(--fs-base); min-height:48px; border-radius:var(--r-1); }  /* 16px, so iPhones do not zoom */
.auth .btn{ min-height:48px; border-radius:var(--r-1); font-weight:600; }
.auth-btn{ width:100%; margin-top:1rem; display:inline-flex; align-items:center; justify-content:center; gap:.5rem; }
.auth-or{ display:flex; align-items:center; gap:.8rem; margin:1.1rem 0 .2rem; color:var(--c-ink-faint); font-size:var(--fs-xs);
  font-weight:600; letter-spacing:.18em; text-transform:uppercase; }
.auth-or::before, .auth-or::after{ content:""; flex:1; height:1px; background:var(--c-line); }
.auth-links{ text-align:center; margin-top:.6rem; font-size:var(--fs-md); }
.auth-links a{ display:inline-flex; align-items:center; min-height:44px; padding:0 .4rem; color:var(--c-link); font-weight:600; }
/* Face ID and passkey failures: the error look (an icon plus words), so red text never stands alone (look A). */
.auth-msg{ margin:.45rem 0 .7rem; text-align:center; font-size:var(--fs-md); color:var(--c-ink-strong); }
.auth-msg:empty{ display:none; }
.auth-msg::before{ content:"!"; display:inline-flex; align-items:center; justify-content:center; width:18px; height:18px; margin-right:.45rem;
  border-radius:50%; background:var(--c-danger); color:var(--c-surface); font-size:var(--fs-xs); font-weight:700; vertical-align:1px; }
.auth-note{ font-size:var(--fs-sm); color:var(--c-ink-faint); margin:.9rem 0 0; text-align:center; }
.auth-flash{ border:1px solid var(--c-line); border-left:3px solid var(--c-info); background:var(--c-surface); color:var(--c-ink);
  border-radius:var(--r-2); padding:.7rem .9rem; margin:0 0 .9rem; font-size:var(--fs-md); }
.auth-flash.ok{ border-left-color:var(--c-success); }
.auth-flash.err{ border-left-color:var(--c-danger); color:var(--c-ink-strong); }
.auth-flash.err::before{ content:"!"; display:inline-flex; align-items:center; justify-content:center; width:18px; height:18px; margin-right:.45rem;
  border-radius:50%; background:var(--c-danger); color:var(--c-surface); font-size:var(--fs-xs); font-weight:700; vertical-align:1px; }
/* The paper covers the whole sign-in page, so the app's faint valve mark would only peek out behind the footer. */
body.auth::before{ display:none; }
.auth-foot{ display:flex; flex-wrap:wrap; justify-content:center; gap:0 .2rem; padding:.6rem 20px calc(1rem + env(safe-area-inset-bottom,0px));
  font-size:var(--fs-sm); }
.auth-foot a{ display:inline-flex; align-items:center; min-height:44px; padding:0 .6rem; color:var(--c-ink-slate); text-decoration:none; }
.auth-foot a:hover{ color:var(--c-ink-strong); text-decoration:underline; }
/* Inside the store app: an app screen, not a web page. The card sits in the middle of one phone screen. */
body.auth-app .auth-main{ align-items:center; padding:1rem 16px calc(1.25rem + env(safe-area-inset-bottom,0px)); }
body.auth-app .auth-top{ justify-content:center; border-bottom:0; background:transparent; }
@media (max-width:560px){ .auth-main{ padding-top:4vh; } .auth-card{ padding:1.2rem 1.05rem 1.1rem; } .auth-title{ font-size:var(--fs-2xl); } }
