/* ── app/p-signin.css — Sign in and Sign up (application/views/pages/signin.php, signup.php; since 6 Oct 2026) ──────────
   Two panels in one card: the brand side (navy, the frozen peak, what the dashboard holds) and the form side (white).
   The site's own pieces do the rest (app/components.css: .fld, .seg, .btn, .err, .note, .linkish). Colours are the
   site's (navy #00396C, deep navy #002A50 / #001A33, gold #F7B744, ice #EAF1F8); type Manrope, Newsreader italic for the
   gold word, JetBrains Mono for small labels. On a phone the brand side shrinks to a strip above the form.          */
.auth-page { min-height: 100vh; padding: 104px 16px 72px; background: radial-gradient(1200px 520px at 18% -10%, #DCE7F2 0%, rgba(220, 231, 242, 0) 70%), #EEF2F7; color: #26323F; }
.auth { width: min(1120px, 100%); margin: 0 auto; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); border-radius: 30px; overflow: hidden; overflow: clip;
  background: #fff; box-shadow: 0 50px 100px -50px rgba(0, 26, 51, .45), 0 0 0 1px rgba(0, 57, 108, .08); }

/* the brand side */
.auth-brand { position: relative; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; gap: 32px; min-height: 640px; padding: 44px 44px 40px;
  color: #EAF1F8; background: #002A50; }
.auth-brand::before { content: ""; position: absolute; inset: 0; z-index: -2; background: url('../media/home/hero/plate-frozen-portrait.webp') center 30% / cover no-repeat; opacity: .55; }
.auth-brand::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 26, 51, .35) 0%, rgba(0, 42, 80, .55) 40%, rgba(0, 26, 51, .96) 100%); }
.auth-kick { margin: 0; display: inline-flex; align-items: center; gap: 10px; font: 600 11.5px/1 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .16em; text-transform: uppercase; color: #FFD487; }
.auth-kick::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #F7B744; box-shadow: 0 0 0 4px rgba(247, 183, 68, .22); }
.auth-brand h1 { margin: 18px 0 0; font: 700 clamp(32px, 3.4vw, 46px)/1.04 'Manrope', var(--font); letter-spacing: -.03em; color: #fff; text-wrap: balance; }
.auth-brand h1 em { font-family: 'Newsreader', Georgia, serif; font-style: italic; font-weight: 500; color: #F7B744; }
.auth-brand .auth-lede { margin: 14px 0 0; max-width: 40ch; font: 500 16px/1.6 'Manrope', var(--font); color: rgba(234, 241, 248, .86); }
.auth-pts { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.auth-pts li { display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: rgba(255, 255, 255, .07); border: 1px solid rgba(186, 206, 223, .18);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.auth-pts .ic { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: rgba(247, 183, 68, .16); color: #FFD487; }
.auth-pts b { display: block; font: 700 14.5px/1.3 'Manrope', var(--font); color: #fff; }
.auth-pts small { display: block; margin-top: 2px; font: 500 13px/1.4 'Manrope', var(--font); color: rgba(234, 241, 248, .74); }
.auth-help { margin: 0; font: 500 13.5px/1.5 'Manrope', var(--font); color: rgba(234, 241, 248, .78); }
.auth-help a { color: #FFD487; font-weight: 700; text-decoration: none; }
.auth-help a:hover { text-decoration: underline; text-underline-offset: 3px; }

/* the form side */
.auth-form { display: flex; flex-direction: column; justify-content: center; gap: 18px; padding: 48px clamp(24px, 5vw, 64px); }
.auth-form h2 { margin: 0; font: 700 clamp(28px, 2.6vw, 36px)/1.08 'Manrope', var(--font); letter-spacing: -.025em; color: #00396C; }
.auth-form h2:focus { outline: none; }
.auth-form .muted { margin: -6px 0 0; font: 500 15px/1.55 'Manrope', var(--font); color: #4E6A84; }
.auth-form .seg { align-self: stretch; display: grid; grid-template-columns: 1fr 1fr; }
.auth-form .seg button { padding: 12px 14px; }
.auth-pane { display: flex; flex-direction: column; gap: 16px; }
.auth-pane[hidden] { display: none; }
.auth-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.auth-form .fld > span b { font-weight: 600; color: #8C5E0E; }
.auth-form .fld > span small { font: 500 12px/1 'Manrope', var(--font); color: #6B8299; margin-left: 4px; }
.auth-form .fld.bad .pre { border-color: #D2584F; }
.auth-form .fld .msg { font: 600 12.5px/1.35 'Manrope', var(--font); color: #B3261E; }
.auth-form .fld .msg:empty { display: none; }
.auth-pw { position: relative; }
.auth-pw input { padding-right: 70px; }
.auth-pw button { position: absolute; top: 50%; right: 8px; transform: translateY(-50%); height: 36px; padding: 0 12px; border: 0; border-radius: 10px; background: #F5F8FB; color: #00396C; font: 700 12.5px/1 'Manrope', var(--font); cursor: pointer; }
.auth-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; margin: -4px 0 0; font: 500 13.5px/1.4 'Manrope', var(--font); color: #4E6A84; }
.auth-form .btn.full { height: 54px; font-size: 16px; }
.auth-form .btn .spin, .auth-pick .spin { width: 16px; height: 16px; border-radius: 50%; border: 2px solid currentColor; border-right-color: transparent; animation: auth-spin .8s linear infinite; }
@keyframes auth-spin { to { transform: rotate(1turn); } }
.auth-who { margin: -6px 0 0; font: 500 15px/1.55 'Manrope', var(--font); color: #4E6A84; }
.auth-who b { color: #00396C; overflow-wrap: anywhere; }   /* a long e-mail breaks instead of widening the form */
.auth-or { display: flex; align-items: center; gap: 12px; margin: 4px 0 0; font: 600 11px/1 'JetBrains Mono', ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; color: #8AA0B5; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: rgba(0, 57, 108, .12); }
.auth-alt { margin: 0; text-align: center; font: 500 15px/1.5 'Manrope', var(--font); color: #4E6A84; }
.auth-alt a { color: #00396C; font-weight: 800; text-decoration: none; border-bottom: 2px solid #F7B744; }
.auth-fine { margin: 0; text-align: center; font: 500 12.5px/1.5 'Manrope', var(--font); color: #6B8299; }
.auth-fine a { color: #00396C; font-weight: 700; }
.auth-done { align-items: center; text-align: center; padding: 30px 0; }
.auth-done .tick { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: #F7B744; color: #00396C; box-shadow: 0 0 0 10px rgba(247, 183, 68, .2); }
.auth-done h3 { margin: 8px 0 0; font: 700 24px/1.2 'Manrope', var(--font); color: #00396C; }
.auth-done h3:is(:focus, :focus-visible) { outline: none !important; }   /* focused by the script, not by the visitor: no ring (beats base.css's !important :focus-visible) */
.auth-done .auth-who { margin: 0; }
.auth-banner { margin: 0; padding: 12px 14px; border-radius: 14px; background: #FDF3DD; color: #6B4808; font: 600 13.5px/1.5 'Manrope', var(--font); }
.auth-banner[hidden] { display: none; }

/* "Resend code" on every code step (since 6 Oct 2026): a second, quieter button under the main one. While it waits it
   shows the countdown in slate on a pale ground (readable, not the usual 45% greyed-out button), then navy on white.
   "New code sent" under it is a status line (role="status"): always in the page, empty until there is something to say. */
.auth-again { display: flex; flex-direction: column; margin-top: -4px; }
.auth-form .btn.auth-resend { height: 50px; font-size: 15px; background: #fff; color: #00396C; border: 1.5px solid rgba(0, 57, 108, .22); box-shadow: none; font-variant-numeric: tabular-nums; }
.auth-form .btn.auth-resend:hover:not(:disabled) { border-color: #00396C; background: #F5F8FB; }
.auth-form .btn.auth-resend:disabled { opacity: 1; color: #4E6A84; background: #F5F8FB; border-color: rgba(0, 57, 108, .1); }
.auth-sent { margin: 0; font: 700 13.5px/1.4 'Manrope', var(--font); color: #1F7A4D; }
.auth-sent:not(:empty) { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 10px; }
.auth-sent:not(:empty)::before { content: ""; flex: none; width: 17px; height: 17px; border-radius: 50%;
  background: #1F7A4D url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 11px no-repeat; }

/* sign up: Personal or Business as two cards */
.auth-type { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; border: 0; margin: 0; padding: 0; }
.auth-type legend { margin-bottom: 8px; padding: 0; font: 600 13px/1.2 'Manrope', var(--font); color: #4E6A84; }
.auth-type label { position: relative; display: grid; grid-template-columns: 40px 1fr; align-items: center; gap: 12px; min-height: 68px; padding: 12px 14px; border-radius: 16px;
  border: 1.5px solid rgba(0, 57, 108, .14); background: #fff; cursor: pointer; transition: border-color .15s ease, box-shadow .15s ease; }
.auth-type label:hover { border-color: rgba(0, 57, 108, .3); }
.auth-type input { position: absolute; opacity: 0; pointer-events: none; }
.auth-type .ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: #EAF1F8; color: #00396C; }
.auth-type b { display: block; font: 700 15px/1.25 'Manrope', var(--font); color: #00396C; }
.auth-type small { display: block; font: 500 12.5px/1.35 'Manrope', var(--font); color: #4E6A84; }
.auth-type label:has(input:checked) { border-color: #00396C; box-shadow: 0 0 0 3px rgba(247, 183, 68, .45); }
.auth-type label:has(input:checked) .ic { background: #00396C; color: #F7B744; }
.auth-type label:has(input:focus-visible) { outline: 2px solid #F7B744; outline-offset: 2px; }
.auth-type.bad label { border-color: #D2584F; }

/* "Which account?" (pages/signin.php #auth-pick; since 6 Oct 2026, in place of a list inside the form): a pop-up over the
   page when one mobile or e-mail is on several accounts, after a right code or password. The panel is SOLID white on a
   dimmed page (the owner: translucent pop-ups feel off); one column: a button per account, Cancel at the foot. On a
   phone it is the screen's width less 16px a side. z-index 96: over the header (50) and the help button, like .modal-wrap. */
.auth-dlg-wrap { position: fixed; inset: 0; z-index: 96; display: grid; place-items: center; padding: 16px; background: rgba(0, 26, 51, .55); animation: fade 200ms ease; }
.auth-dlg-wrap[hidden] { display: none; }
.auth-dlg { position: relative; width: min(460px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow-y: auto; overscroll-behavior: contain;
  display: flex; flex-direction: column; gap: 14px; padding: 30px 26px 24px; border-radius: 26px; background: #fff; color: #26323F;
  box-shadow: 0 40px 80px -30px rgba(0, 26, 51, .6), 0 0 0 1px rgba(0, 57, 108, .08); animation: pop 320ms var(--ease); }
.auth-dlg::before { content: ""; position: absolute; top: 0; left: 26px; width: 56px; height: 4px; border-radius: 0 0 4px 4px; background: #F7B744; }
.auth-dlg h2 { margin: 0; font-size: 24px; line-height: 1.2; color: #00396C; text-wrap: balance; }   /* in the site's display face, as every h2 (site.css) */
.auth-dlg-p { margin: -4px 0 2px; font: 500 14.5px/1.55 'Manrope', var(--font); color: #4E6A84; }
.auth-dlg .btn.auth-dlg-cancel { height: 50px; margin-top: 2px; font-size: 15px; background: #fff; color: #00396C; border: 1.5px solid rgba(0, 57, 108, .22); box-shadow: none; }
.auth-dlg .btn.auth-dlg-cancel:hover:not(:disabled) { border-color: #00396C; background: #F5F8FB; }
html.fx-calm .auth-dlg { animation-name: fade; }   /* calm motion (README "Motion"): it fades in place, nothing rises */

/* the accounts: the organisation in bold, the person's name under it */
.auth-pick { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.auth-pick button { width: 100%; min-height: 66px; display: grid; grid-template-columns: 40px minmax(0, 1fr) 18px; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px;
  border: 1.5px solid rgba(0, 57, 108, .14); background: #fff; text-align: left; cursor: pointer; font: inherit; color: #00396C; transition: border-color .15s ease, box-shadow .15s ease; }
.auth-pick button:hover:not(:disabled), .auth-pick button:focus-visible { border-color: #00396C; box-shadow: 0 0 0 3px rgba(247, 183, 68, .45); }
.auth-pick .ic { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 12px; background: #EAF1F8; color: #00396C; }
.auth-pick button:hover:not(:disabled) .ic, .auth-pick button:focus-visible .ic { background: #00396C; color: #F7B744; }
.auth-pick .who { min-width: 0; }
.auth-pick b { display: block; font: 700 15.5px/1.3 'Manrope', var(--font); overflow-wrap: anywhere; }
.auth-pick small { display: block; margin-top: 2px; font: 500 13px/1.35 'Manrope', var(--font); color: #4E6A84; overflow-wrap: anywhere; }
.auth-pick .chev { color: #8AA0B5; }
.auth-dlg[aria-busy="true"] .auth-pick button { cursor: wait; }
.auth-dlg[aria-busy="true"] .auth-pick button:not(:has(.spin)) { opacity: .5; }

/* tablets and phones */
@media (max-width: 960px) {
  .auth { grid-template-columns: minmax(0, 1fr); }   /* not 1fr: that cannot shrink below its widest word and the card would clip the form */
  .auth-brand { min-height: 0; padding: 28px 24px 26px; gap: 18px; }
  .auth-brand::before { background-position: center 40%; }
  .auth-pts, .auth-help { display: none; }
  .auth-brand h1 { font-size: clamp(28px, 7vw, 36px); margin-top: 12px; }
  .auth-brand .auth-lede { font-size: 15px; margin-top: 8px; }
  .auth-form { padding: 28px 22px 32px; }
}
@media (max-width: 520px) {
  .auth-page { padding: 88px 12px 48px; }
  .auth { border-radius: 24px; }
  .auth-row { grid-template-columns: 1fr; }
  .auth-type label { grid-template-columns: 34px 1fr; padding: 10px 12px; min-height: 60px; }
  .auth-type .ic { width: 34px; height: 34px; }
  .auth-dlg { padding: 26px 18px 18px; border-radius: 22px; }
  .auth-dlg::before { left: 18px; }
  .auth-dlg h2 { font-size: 22px; }
  .auth-pick button { grid-template-columns: 36px minmax(0, 1fr) 16px; gap: 10px; padding: 11px 12px; }
  .auth-pick .ic { width: 36px; height: 36px; }
}
@media (prefers-reduced-motion: reduce) { .auth-form .btn .spin, .auth-pick .spin { animation-duration: 2.4s; } }
