/* Caring360 sign-in. Logo with the name on one side (dark teal), the form on the other. No tagline or blurb.
   Light only: no theme toggle before sign-in. Every colour, size and font comes from /css/tokens.css. */
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; min-height: 100%; }
body { font-family: var(--font-body); font-size: var(--fs-body); line-height: var(--lh); color: var(--ink); background: var(--page); -webkit-font-smoothing: antialiased; cursor: default; }
button { cursor: pointer; font: inherit; }
.shell { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.brandside { position: relative; overflow: hidden; background: var(--teal-dark); color: var(--on-teal); display: flex; flex-direction: column; align-items: flex-start; padding: var(--s7) var(--s7) 0; }
.word { margin: 0; line-height: 0; position: relative; z-index: 1; }
.word img { width: min(300px, 100%); height: auto; display: block; }
.pitch { position: relative; z-index: 1; margin-top: var(--s8); max-width: 520px; }
.headline { margin: 0 0 var(--s4); font-family: var(--font-head); font-size: var(--fs-hero); line-height: var(--lh-head); font-weight: 700; }
.subline { margin: 0; font-size: var(--fs-lead); line-height: var(--lh); color: var(--mint); }
.mark { position: absolute; right: -90px; top: 44%; width: 440px; height: 440px; opacity: .07; pointer-events: none; }
.harbor { position: absolute; left: 0; right: 0; bottom: 0; width: 100%; height: 34%; min-height: 160px; opacity: .16; pointer-events: none; }
.panelside { background: var(--mint-bg); display: flex; align-items: center; justify-content: center; padding: var(--s6) var(--s5); }
.panel { width: 100%; max-width: 480px; background: var(--surface); border: var(--border) solid var(--line); border-radius: var(--r-xl); padding: var(--s7) var(--s6); box-shadow: var(--shadow); }
.sub { margin: calc(var(--s3) * -1) 0 var(--s5); font-size: var(--fs-lead); color: var(--ink-2); }
.pwbox { position: relative; display: block !important; margin: 0 !important; font-weight: 400 !important; }
.pwbox input { padding-right: 52px; }
.reveal { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: var(--tap); height: var(--tap); display: flex; align-items: center; justify-content: center; color: var(--ink-2); background: none; border: 0; border-radius: var(--r-sm); }
.reveal:focus-visible { outline: none; box-shadow: var(--focus); }
.reveal .slash { display: none; }
.reveal[aria-pressed="true"] .slash { display: block; }
.optrow { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); margin: 0 0 var(--s4); }
.check { display: inline-flex; align-items: center; gap: var(--s2); cursor: pointer; font-size: var(--fs-min); min-height: var(--tap); }
.check input { width: 20px; height: 20px; margin: 0; accent-color: var(--teal); cursor: pointer; }
.optrow .linkish { text-decoration: none; padding: 0; }
.optrow .linkish:hover { text-decoration: underline; }
.help { margin: var(--s5) 0 0; text-align: center; font-size: var(--fs-min); color: var(--ink-2); }
.help a { color: var(--teal); font-weight: 700; }
h2 { margin: 0 0 var(--s4); font-family: var(--font-head); font-size: var(--fs-h2); line-height: var(--lh-head); font-weight: 700; color: var(--teal-dark); }
.field { display: block; margin: 0 0 var(--s4); }
.field > span { display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s2); font-weight: 700; }
.field input { width: 100%; min-height: var(--input-h); padding: 0 var(--s4); font: inherit; font-size: var(--fs-lead); color: var(--ink); background: var(--surface); border: var(--border-2) solid var(--input-line); border-radius: var(--r-md); cursor: text; }
.field input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-bg); }
.field input[aria-invalid="true"] { border-color: var(--red-line); }
.caps { display: block; margin-top: var(--s2); font-size: var(--fs-min); color: var(--red); font-weight: 700; }
.go { position: relative; width: 100%; min-height: var(--tap-done); margin-top: var(--s2); padding: 0 var(--s4); font-family: var(--font-head); font-size: var(--fs-lead); font-weight: 700; color: var(--on-teal); background: var(--teal); border: 0; border-radius: var(--r-md); }
.go:hover:not(:disabled) { background: var(--teal-hover); }
.go:focus-visible { outline: none; box-shadow: var(--focus); }
.go:disabled { opacity: .5; cursor: not-allowed; }
.go.busy span { visibility: hidden; }
.go.busy::after { content: ''; position: absolute; left: 50%; top: 50%; width: 22px; height: 22px; margin: -11px 0 0 -11px; border: 3px solid var(--side-line); border-top-color: var(--on-teal); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.linkish { min-height: var(--tap); padding: 0 var(--s2); font-size: var(--fs-min); font-weight: 700; color: var(--teal); background: none; border: 0; text-decoration: underline; text-underline-offset: 3px; }
.linkish:focus-visible { outline: none; box-shadow: var(--focus); border-radius: var(--r-sm); }
.under { display: block; margin: var(--s3) auto 0; }
.alert { margin: 0 0 var(--s4); padding: var(--s3) var(--s4); font-size: var(--fs-min); font-weight: 700; color: var(--red-ink); background: var(--red-bg); border-radius: var(--r-md); }
.note { margin: 0 0 var(--s4); padding: var(--s3) var(--s4); font-size: var(--fs-min); color: var(--mint-ink); background: var(--mint-bg); border-radius: var(--r-md); }
.otp { display: flex; gap: var(--s2); margin: 0 0 var(--s4); }
.otp input { width: 48px; height: var(--input-h); text-align: center; font-size: var(--fs-h2); font-family: var(--font-head); color: var(--ink); border: var(--border-2) solid var(--line-strong); border-radius: var(--r-sm); cursor: text; min-width: 0; flex: 1; }
.otp input:nth-child(4) { margin-left: var(--s2); }
.otp input:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-bg); }
.otp.bad input { border-color: var(--red-line); }
.rules { list-style: none; margin: 0 0 var(--s4); padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--s1) var(--s3); font-size: var(--fs-min); color: var(--ink-2); }
.rules li::before { content: '\25CB'; margin-right: var(--s2); }
.rules li.ok { color: var(--mint-ink); }
.rules li.ok::before { content: '\2713'; }
.qr-wrap { display: flex; gap: var(--s4); align-items: flex-start; margin: 0 0 var(--s4); flex-wrap: wrap; }
.qr { width: 160px; height: 160px; flex: none; }
.qr img, .qr canvas { width: 160px !important; height: 160px !important; }
.key { font-size: var(--fs-min); color: var(--ink-2); min-width: 0; flex: 1; }
.key span { display: block; margin-bottom: var(--s1); font-weight: 700; }
.key code { display: block; margin-bottom: var(--s2); font-size: var(--fs-min); color: var(--ink); word-break: break-all; }
@media (prefers-reduced-motion: reduce) { .go.busy::after { animation-duration: 2s; } }
@media (max-width: 820px) { .shell { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; } .brandside { padding: var(--s5) var(--s4) 80px; } .word img { width: min(220px, 60vw); } .pitch { margin: var(--s4) 0 0; } .headline { font-size: 26px; margin-bottom: var(--s2); } .subline { font-size: var(--fs-min); } .mark { display: none; } .harbor { height: 70px; min-height: 0; } .panelside { align-items: flex-start; padding: var(--s5) var(--s4); } .panel { padding: var(--s6) var(--s5); } }
@media (max-width: 560px) { .panelside { padding: var(--s4); } .panel { padding: var(--s5) var(--s4); } .rules { grid-template-columns: 1fr; } }
