/* Sign-in pages (owner, 17 Nov 2026: "like the sign-up page"). The layout, panel, preview, card, fields' look and
   gold button come from signup.css (.su-*, and signup_preview() for the drawn dashboard and voucher); this file adds the
   "What's new" card and the shared field markup (.f, .pw) styled like the sign-up fields. Text never below 14px. */

/* ---------------------------------------------------------------- brand panel */
/* The same panel as the sign-up page: headline, the drawn Mythos dashboard with a payment voucher (signup_preview), and
   a glass card in the "Preparing your Mythos" style that lists what is new. */
.si-preview { position: relative; z-index: 1; }
/* A bigger picture than on the sign-up page (no checklist to fit): the panel is filled from top to bottom. */
.si-brand { gap: 26px; }
.si .su-claim { font-size: clamp(28px, 2.9vw, 44px); }
.si .su-lead { font-size: 16px; }
.si-preview .pv-pair { padding: 0 12% 4% 0; }
.si-preview .pv-doc { width: 26%; right: -2%; }
.si-news li { color: #fff; }
/* ---------------------------------------------------------------- form side */
.si .su-main { justify-content: center; }
.si-card { width: min(100%, 560px); margin: 0; }
.si-step { margin: 0; padding: 38px clamp(22px, 3vw, 44px) 32px; }
.si-step .su-head { margin-bottom: 26px; }
.si-step .su-head h1 { font-size: clamp(30px, 2.6vw, 38px); }
.si-step .su-head p { font-size: 16px; }
.si .su-made { margin-top: auto; }
.si .su-made a { color: inherit; text-decoration: none; }
.si .su-made a:hover { text-decoration: underline; }
.si .su-alert .ic { width: 20px; height: 20px; margin-top: 1px; }

/* Above the card on pages without the panel: the PakSoftware logo. The space is shared above and below the card; with no
   row above it, the card takes the top share itself. */
.si .su-main > .si-card:first-child { margin-top: auto; }
.si-top { width: min(100%, 560px); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin: 0 0 auto; padding-bottom: 24px; }

/* Staff portals (owner, 17 Nov 2026): the same card, no green panel; the card alone in the middle of the page. */
.si-solo .su-wrap { grid-template-columns: minmax(0, 1fr); }
.si-solo .su-main { align-items: center; }
.si-brandline { display: inline-flex; align-items: center; gap: 12px; color: var(--t-main); text-decoration: none; }
.si-brandline img { width: 40px; height: 40px; border-radius: 50%; }
.si-brandline b { display: block; font-size: 20px; line-height: 1.15; }
.si-brandline small { display: block; font-size: 14px; color: #77716a; }

/* "Open Mythos on your phone": a QR code of this page under the card (wide screens only). */
.si-phone { width: min(100%, 560px); display: flex; align-items: center; gap: 18px; margin: 22px 0 0; padding: 16px 20px; border-radius: 18px;
  background: #fff; border: 1px solid #E8E5DD; box-shadow: 0 1px 2px rgba(20,30,25,.04), 0 14px 34px -26px rgba(20,30,25,.3); }
.si-qr { flex: none; width: 96px; height: 96px; color: var(--t-main); border-radius: 8px; }
.si-phone b { display: block; font-size: 16px; color: var(--t-main); }
.si-phone span { display: block; margin-top: 4px; font-size: 14px; line-height: 1.5; color: #77716a; }

/* Under a password box while Caps Lock is on */
.si-caps { display: flex; align-items: center; gap: 6px; margin: 7px 2px 0; font-size: 14px; font-weight: 650; color: #7B4FA3; }
.si-caps[hidden] { display: none; }
.si-caps .ic { width: 16px; height: 16px; }

/* Under the card: the sign-in rules, before anyone meets them */
.si-secure { width: min(100%, 440px); margin: 16px 0 0; text-align: center; text-wrap: balance;
  font-size: 14px; line-height: 1.5; color: #77716a; }
.si-secure .ic { width: 16px; height: 16px; margin-right: 6px; vertical-align: -3px; color: var(--t-main); }
.si-textbtn:disabled { color: #8a847d; cursor: default; text-decoration: none; font-variant-numeric: tabular-nums; }

/* Fields from field() and signin_password(), drawn like the sign-up fields */
.si .f { display: flex; flex-direction: column; min-width: 0; margin-bottom: 16px; }
.si .f > label, .si-lrow label { display: flex; gap: 5px; align-items: baseline; margin: 0 0 7px; font-size: 14px; font-weight: 650; color: #3b3733; }
.si .f .req { color: #B3263E; font-style: normal; }
.si-lrow { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.si .f input { width: 100%; height: 56px; padding: 0 15px; border-radius: 13px; border: 1.5px solid #DEDAD0; background: #FCFBF8;
  font: inherit; font-size: 16px; color: #1d2a26; transition: border-color .2s, box-shadow .2s, background .2s; }
.si .f input::placeholder { color: #aaa49b; }
.si .f input:hover { border-color: #c9c4b8; }
.si .f input:focus { outline: none; border-color: var(--t-main); background: #fff; box-shadow: 0 0 0 4px var(--t-soft); }
.si .f input[aria-invalid="true"] { border-color: #B3263E; background: #FFF8F9; }
.si .f input:-webkit-autofill { -webkit-box-shadow: 0 0 0 60px #FCFBF8 inset; -webkit-text-fill-color: #1d2a26; }
.si .f .err { margin: 6px 2px 0; font-size: 14px; font-weight: 600; color: #B3263E; }
.si .f .err:empty { display: none; }
.si .f .hint { margin: 6px 2px 0; font-size: 14px; color: #77716a; }
.si .pw { position: relative; }
.si .pw input { padding-right: 54px; }
.si .pw .show { position: absolute; right: 7px; top: 7px; width: 38px; height: 38px; border: 0; border-radius: 10px; background: transparent; color: #6B6560; cursor: pointer;
  display: grid; place-items: center; }
.si .pw .show:hover, .si .pw .show[aria-pressed="true"] { background: var(--t-soft); color: var(--t-main); }
.si .pw .show .ic { width: 20px; height: 20px; }
.si-code input { height: 64px !important; text-align: center; font-size: 28px !important; letter-spacing: 12px; font-weight: 750; font-variant-numeric: tabular-nums; }

.si-link { font-size: 14px; font-weight: 700; color: var(--t-main); text-decoration: none; padding: 2px 0; }
.si-link:hover { text-decoration: underline; }

/* the one action: the sign-up page's gold button, full width */
.si-btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 58px; margin-top: 8px; padding: 0 24px; border: 0; border-radius: 15px;
  font: inherit; font-size: 16px; font-weight: 750; cursor: pointer; color: var(--t-main);
  background: linear-gradient(180deg, color-mix(in srgb, var(--t-second) 88%, #fff), var(--t-second));
  box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--t-second) 90%, #000), inset 0 -2px 0 rgba(0,0,0,.12); transition: transform .15s, filter .2s; }
.si-btn:hover { transform: translateY(-1px); filter: saturate(1.08); }
.si-btn:active { transform: translateY(1px); }
.si-btn:disabled { opacity: .7; cursor: wait; transform: none; }

.si-row2 { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 14px; }
.si-row2 form { margin: 0; }
.si-textbtn { border: 0; background: none; padding: 8px 0; min-height: 40px; font: inherit; font-size: 14px; font-weight: 700; color: var(--t-main); cursor: pointer; }
.si-textbtn:hover { text-decoration: underline; }
.si-note { margin: 0; font-size: 14px; color: #77716a; }
.si-who { margin: 0 0 14px; padding: 10px 14px; border-radius: 12px; background: var(--t-soft); border: 1px solid var(--t-mid); color: #3b3733; }
.si-rule { margin: -6px 2px 12px; }
.si-foot { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid #ECE9E1; text-align: center; font-size: 15px; line-height: 1.55; color: #5d5853; }
.si-foot p { margin: 0; }
.si-foot a { color: var(--t-main); font-weight: 700; text-decoration: none; }
.si-foot a:hover { text-decoration: underline; }
.si a:focus-visible, .si button:focus-visible { outline: 3px solid var(--t-second); outline-offset: 2px; border-radius: 6px; }

/* ---------------------------------------------------------------- short screens, tablet, phone */
/* Tablet and phone: the form comes first in view; the panel keeps the logo and the headline only. */
@media (max-width: 1080px) {
  .si-phone { display: none; }
  .si-preview, .si-news, .si .su-lead { display: none; }
  .si-brand { gap: 10px; }
  .si .su-claim { margin-top: 6px; }
  .si-card { margin: 0; }
}
@media (max-width: 640px) {
  .si .su-main { padding: 18px 16px 20px; }
  .si-step { padding: 24px 18px 20px; border-radius: 18px; }
}
