/* The CinciPEM division page: the sign-in and code pages (Issue #4696), copied from the approved prototype first/cincipem.html (first.css, sites.css).
   The page keeps its night-shift water and white text in light and in dark; only the footer follows the theme. The fixed night colours are
   the --ox-night-* tokens (webapp/design/night_tokens.json); the rest are role tokens. The river is a picture (static/brand/signin-night-river.svg). */

main.signin {
  position: relative;
  display: grid;
  place-items: center;
  flex: 1 0 auto;
  max-width: none;
  margin: 0;
  padding: var(--ox-space-10) var(--ox-space-4);
  overflow: hidden;
  color: var(--ox-night-ink);
  background: url(/static/brand/signin-night-river.svg) center / cover no-repeat, var(--ox-night-glow), var(--ox-night-ground);
}

.signin-wrap { position: relative; width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 32px; }

/* The division's name, with a rule running out from it */
.signin-division { display: flex; align-items: center; gap: 14px; margin: 0; padding-top: 26px; font: 600 22px/28px var(--ox-font-ui); letter-spacing: -0.01em; color: var(--ox-night-ink); }
.signin-division::after { content: ""; flex: 1; height: 1px; background: var(--ox-night-line); }

/* The two panels, side by side, the same height */
.signin-grid { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(360px, 0.8fr); gap: var(--ox-space-6); align-items: stretch; padding-top: 18px; padding-bottom: 36px; }
.signin-intro, .signin-card { position: relative; width: 100%; padding: 30px; border-radius: 22px; color: var(--ox-night-ink); background: var(--ox-night-glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--ox-night-glass-edge); }

/* The slogan panel */
.signin-intro { display: flex; flex-direction: column; justify-content: center; gap: 14px; }
.signin-tagline { margin: 0; font: 700 50px/54px var(--ox-font-ui); letter-spacing: -0.02em; color: var(--ox-night-ink); }
.signin-tagline em { font-style: normal; color: var(--ox-night-accent); }
.signin-lead { max-width: 32em; margin: 0; font: 400 16.5px/25px var(--ox-font-data); color: var(--ox-night-soft); }

/* The small calendar picture (made-up shifts); it follows the theme */
.signin-pv { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 7px; margin-top: 6px; padding: 12px; border-radius: 18px; background: var(--ox-surface); box-shadow: var(--ox-night-pv-shadow); font: 400 11.5px/15px var(--ox-font-data); color: var(--ox-ink); }
.pv-day { min-height: 92px; overflow: hidden; border-radius: 10px; box-shadow: 0 0 0 1px var(--ox-night-day-line-light); }
.pv-day.today { box-shadow: 0 0 0 2px var(--ox-night-today); }
.pv-head { padding: 4px 8px; font: 600 11.5px/15px var(--ox-font-ui); color: var(--ox-night-ink); background-color: var(--ox-night-pv-head-solid); background-image: var(--ox-night-pv-head); }
.pv-day.today .pv-head { background: var(--ox-night-today); }
.pv-shift { display: flex; align-items: center; gap: 3px; margin: 4px 5px; padding: 1px 4px; border-radius: 5px; white-space: nowrap; overflow: hidden; background: var(--ox-night-chip-bg-light); box-shadow: inset 0 0 0 1px var(--ox-night-chip-line-light); color: var(--ox-night-chip-ink-light); }
.pv-shift span { overflow: hidden; text-overflow: ellipsis; }
.pv-shift.mine { font-weight: 600; background: var(--ox-night-mine-light); box-shadow: none; color: var(--ox-ink); }
.pv-icon { flex: none; width: 14px; height: 14px; color: var(--ox-night-go-light); fill: none; }
.pv-icon path { fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.pv-l1 circle { fill: var(--ox-neutral-bg); stroke: var(--ox-neutral); stroke-width: 1.5; }
.pv-l1 path { stroke: var(--ox-ink); }
.pv-l2 circle { fill: var(--ox-error); stroke: var(--ox-night-ink); stroke-width: 0.8; }
.pv-l2 path { stroke: var(--ox-error-bg); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pv-day { box-shadow: 0 0 0 1px var(--ox-night-day-line-dark); }
  :root:not([data-theme="light"]) .pv-day.today { box-shadow: 0 0 0 2px var(--ox-night-today); }
  :root:not([data-theme="light"]) .pv-shift { background: var(--ox-night-chip-bg-dark); box-shadow: inset 0 0 0 1px var(--ox-night-chip-line-dark); color: var(--ox-night-chip-ink-dark); }
  :root:not([data-theme="light"]) .pv-shift.mine { background: var(--ox-night-mine-dark); box-shadow: none; color: var(--ox-ink); }
  :root:not([data-theme="light"]) .pv-icon { color: var(--ox-night-go-dark); }
}
:root[data-theme="dark"] .pv-day { box-shadow: 0 0 0 1px var(--ox-night-day-line-dark); }
:root[data-theme="dark"] .pv-day.today { box-shadow: 0 0 0 2px var(--ox-night-today); }
:root[data-theme="dark"] .pv-shift { background: var(--ox-night-chip-bg-dark); box-shadow: inset 0 0 0 1px var(--ox-night-chip-line-dark); color: var(--ox-night-chip-ink-dark); }
:root[data-theme="dark"] .pv-shift.mine { background: var(--ox-night-mine-dark); box-shadow: none; color: var(--ox-ink); }
:root[data-theme="dark"] .pv-icon { color: var(--ox-night-go-dark); }

/* The card with the form */
.signin-card h1 { margin: 0 0 4px; font: 700 28px/34px var(--ox-font-ui); letter-spacing: -0.02em; color: var(--ox-night-ink); }
.signin-card h1 + p { margin: 0; font-size: 14px; line-height: 23px; opacity: 0.88; }
.signin-card h2 { margin: var(--ox-space-6) 0 var(--ox-space-2); font: 600 19px/25px var(--ox-font-ui); color: var(--ox-night-ink); }
.signin-card label { display: block; margin: 14px 0 5px; font: 600 13px/18px var(--ox-font-ui); color: var(--ox-night-ink); }
.signin-card input[type="email"], .signin-card input[type="password"], .signin-card input[type="text"] { width: 100%; min-height: 46px; margin: 0; padding: 0 13px; border: 1px solid var(--ox-night-line); border-radius: 11px; background: var(--ox-night-field); color: var(--ox-night-ink); }
.signin-card input[type="email"]:focus, .signin-card input[type="password"]:focus, .signin-card input[type="text"]:focus { outline: 2px solid var(--ox-focus); outline-offset: 0; background: var(--ox-night-field-focus); }
.signin-card label.check { display: flex; align-items: flex-start; gap: 8px; min-height: 0; margin: 14px 0 2px; font: 400 13.5px/19px var(--ox-font-data); cursor: pointer; }
.signin-card label.check input[type="checkbox"] { flex: none; width: 16px; height: 16px; margin: 2px 0 0; accent-color: var(--ox-night-check); }
/* 30px = the prototype's 16px under the hint plus 14px over its inline button (here the button is a block, so the two would collapse). */
.signin-card .small { margin: 0 0 30px 24px; font-size: 12px; line-height: 17px; color: var(--ox-night-soft); }
.signin-card .btn.primary { display: flex; align-items: center; justify-content: center; width: 100%; min-height: 46px; padding: 0 22px; border: 0; border-radius: 12px; font: 600 15px/1 var(--ox-font-ui); color: var(--ox-night-button-ink); background: var(--ox-night-button); }
.signin-card .btn.primary:hover { color: var(--ox-night-button-ink); background: var(--ox-night-button); transform: translateY(-1px); }
.signin-card a, .signin-card .btn.quiet { color: var(--ox-night-link); }
.signin-card .btn.quiet { display: inline-flex; align-items: center; width: auto; min-height: 24px; padding: 0; border: 0; background: transparent; font: 400 13px/18px var(--ox-font-data); }
.signin-card .btn.quiet:hover { background: transparent; color: var(--ox-night-link); text-decoration: underline; }
.signin-card .btn.quiet:disabled { opacity: 0.55; text-decoration: none; }

/* "First time, or forgot your password?" at the left and "Request an Invite" at the right, on one line */
.signin-alt { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; margin: 11px 0 -3px; font-size: 13px; line-height: 18px; }
.signin-alt a { display: inline-flex; align-items: center; min-height: 24px; text-decoration: none; }
.signin-alt a:hover { text-decoration: underline; }
.signin-resend { display: flex; align-items: center; gap: var(--ox-space-3); margin-top: var(--ox-space-3); }
.signin-card input.code-input { font-weight: 600; }

@media (max-width: 980px) {
  .signin-grid { grid-template-columns: minmax(0, 1fr); }
  .signin-tagline { font-size: 42px; line-height: 46px; }
  .signin-pv { display: none; }
}

/* The steps above the card: Email, Code, New password */
.signin-steps { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0 0 18px; padding: 0; list-style: none; font: 600 12.5px/18px var(--ox-font-ui); color: var(--ox-night-soft); }
.signin-steps li { display: inline-flex; align-items: center; gap: 7px; }
.signin-steps .n { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; font-size: 11.5px; box-shadow: inset 0 0 0 1px var(--ox-night-line); }
.signin-steps .now { color: var(--ox-night-ink); }
.signin-steps .now .n { color: var(--ox-night-button-ink); background: var(--ox-night-button); box-shadow: none; }
.signin-steps .past .n { color: var(--ox-night-ink); background: var(--ox-night-field); }
.signin-card input + .btn.primary { margin-top: 22px; }
.signin-card .check-row { display: flex; align-items: flex-start; gap: 6px; margin: 0 0 30px; }
.signin-card .check-row label.check { margin-bottom: 0; }
.signin-card .check-row .info { margin-top: 16px; margin-left: 0; }
.signin-card .check-row .info-pop { left: auto; right: 0; }
