/* Designz sign in / sign up */
:root {
  --paper: #f4f1ea; --paper2: #ebe6da; --card: #fbf9f4; --ink: #151515; --ink2: #4a463f; --mute: #8a8478; --line: #ddd6c8;
  --red: #ff4a1c; --blue: #2f5bea; --sun: #ffc531; --green: #3d9a5b;
  --serif: 'Fraunces', Georgia, serif; --sans: 'Instrument Sans', 'Helvetica Neue', Arial, sans-serif; --mono: 'JetBrains Mono', ui-monospace, monospace;
}
* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body { background: var(--paper); color: var(--ink); font: 15px/1.5 var(--sans); -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; }
a { color: inherit; }

.auth { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); min-height: 100vh; }
.pane { display: flex; flex-direction: column; padding: 28px clamp(20px, 5vw, 72px) 28px; }
.wordmark { font: 700 30px/1 var(--serif); letter-spacing: -0.04em; text-decoration: none; }
.wordmark span { color: var(--red); }

.card { width: min(420px, 100%); margin: auto 0; padding: 40px 0 24px; }
.switch { display: inline-flex; gap: 4px; padding: 4px; border: 1.5px solid var(--ink); border-radius: 999px; margin-bottom: 28px; background: var(--card); }
.switch button { border: 0; background: none; padding: 6px 14px; border-radius: 999px; font-weight: 600; font-size: 14px; cursor: pointer; }
.switch button[aria-selected='true'] { background: var(--ink); color: var(--paper); }
h1 { font: 700 clamp(40px, 5vw, 56px)/0.98 var(--serif); letter-spacing: -0.035em; margin: 0 0 10px; }
h1 em { font-style: italic; font-weight: 400; }
.lede { margin: 0 0 26px; color: var(--ink2); font-size: 17px; }
.notice { margin: -10px 0 20px; padding: 10px 14px; background: var(--sun); border: 1.5px solid var(--ink); border-radius: 8px; font-weight: 500; }

.f { display: block; margin-bottom: 16px; }
.f > span:first-child { display: block; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); margin-bottom: 6px; }
.f input { width: 100%; height: 48px; padding: 0 14px; background: #fff; border: 1.5px solid var(--ink); border-radius: 8px; outline: none; transition: box-shadow .12s; }
.f input:focus { box-shadow: 3px 3px 0 var(--blue); }
.f input[aria-invalid='true'] { border-color: var(--red); box-shadow: 3px 3px 0 var(--red); }
.pw { position: relative; display: block; }
.pw input { padding-right: 70px; }
.show { position: absolute; right: 6px; top: 6px; height: 36px; padding: 0 12px; border: 0; background: none; font-weight: 600; font-size: 13px; color: var(--ink2); cursor: pointer; border-radius: 6px; }
.show:hover { background: var(--paper2); }
.meter { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.meter i { flex: 1; height: 4px; border-radius: 4px; background: var(--line); position: relative; overflow: hidden; }
.meter i::after { content: ''; position: absolute; inset: 0; width: var(--w, 0%); background: var(--c, var(--red)); transition: width .2s, background .2s; }
.meter b { font: 500 11px var(--mono); color: var(--mute); min-width: 70px; text-align: right; }
.err { display: block; color: #c4320e; font-style: normal; font-size: 13px; font-weight: 500; min-height: 0; margin-top: 6px; }
.err:empty { display: none; }
.form-err { margin: 0 0 12px; }

.go { width: 100%; height: 52px; border: 1.5px solid var(--ink); border-radius: 999px; background: var(--ink); color: var(--paper); font-weight: 600; font-size: 16px; cursor: pointer; box-shadow: 4px 4px 0 var(--red); transition: transform .1s, box-shadow .1s; margin-top: 6px; }
.go:hover { transform: translate(-1px, -1px); box-shadow: 5px 5px 0 var(--red); }
.go:active { transform: translate(2px, 2px); box-shadow: 2px 2px 0 var(--red); }
.go[disabled] { opacity: .6; cursor: progress; }
.small { margin: 22px 0 0; color: var(--ink2); }
.small a { font-weight: 600; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.guest { padding: 12px 14px; border: 1.5px dashed var(--ink2); border-radius: 8px; }
.fine { margin: 0; font: 12px/1.5 var(--sans); color: var(--mute); max-width: 420px; }
[data-mode='signin'] [data-only='signup'], [data-mode='signup'] [data-only='signin'] { display: none !important; }

/* Right-hand art: taped prints on a cutting-mat green */
.art { position: relative; overflow: hidden; background: #2d5a4a; background-image: linear-gradient(rgba(255,255,255,.08) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.08) 1px, transparent 1px); background-size: 40px 40px; border-left: 1.5px solid var(--ink); }
.art::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,.16) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.16) 1px, transparent 1px); background-size: 200px 200px; }
.print { position: absolute; margin: 0; background: #fff; padding: 10px 10px 34px; box-shadow: 0 1px 1px rgba(0,0,0,.1), 0 18px 34px -12px rgba(0,0,0,.5); }
.print canvas { display: block; width: 100%; height: auto; background: var(--paper2); }
.p1 { width: 44%; left: 14%; top: 13%; transform: rotate(-5deg); }
.p2 { width: 36%; right: 9%; top: 40%; transform: rotate(4deg); }
.tape { position: absolute; top: -12px; left: 50%; width: 90px; height: 26px; transform: translateX(-50%) rotate(-3deg); background: rgba(255, 220, 120, .7); }
.tape.t2 { background: rgba(170, 200, 255, .7); transform: translateX(-50%) rotate(5deg); }
.note { position: absolute; left: 12%; bottom: 9%; margin: 0; max-width: 380px; font: 700 30px/1.05 'Caveat', cursive; color: #fdf6e3; transform: rotate(-3deg); }
.stamp { position: absolute; right: 10%; top: 9%; display: grid; place-items: center; width: 108px; height: 108px; border: 3px solid var(--sun); border-radius: 50%; color: var(--sun); font: 700 15px/1.1 var(--mono); letter-spacing: .12em; text-align: center; transform: rotate(14deg); }

@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; }
  .art { display: none; }
  .card { margin: 0; padding-top: 32px; }
  .fine { margin-top: 28px; }
}

/* Company or school sign-in */
.sso { margin-top: 18px; padding-top: 16px; border-top: 1px dashed var(--line, #ddd6c8); }
.sso-open { width: 100%; height: 46px; border-radius: 999px; border: 1.5px solid var(--ink); background: none; font: 600 15px var(--sans); cursor: pointer; }
.sso-open:hover { background: rgba(0, 0, 0, .04); }
.sso-box .f { margin-bottom: 8px; }
.go.ghost { background: none; color: var(--ink); box-shadow: 3px 3px 0 var(--ink); height: 46px; }
.go.ms { background: #fff; color: #151515; box-shadow: none; border-color: #8c8c8c; height: 44px; font-size: 15px; }
.sso-slot { display: flex; justify-content: center; margin-top: 12px; min-height: 0; }
.sso-slot:empty { display: none; }
#ssoErr { margin: 8px 0 0; }

/* Account type picker (sign-up) */
.types { border: 0; padding: 0; margin: 0 0 18px; min-width: 0; }
.types legend { padding: 0; font: 500 11px var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink2); margin-bottom: 6px; }
.types-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.types-h { grid-column: 1 / -1; margin: 6px 0 -2px; font-size: 13px; font-weight: 600; color: var(--mute); }
.types-h:first-child { margin-top: 0; }
.type { position: relative; display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; background: #fff; border: 1.5px solid var(--line); border-radius: 10px; cursor: pointer; transition: border-color .12s, box-shadow .12s; }
.type:hover { border-color: var(--ink2); }
.type input { position: absolute; opacity: 0; pointer-events: none; }
.type svg { flex: none; width: 22px; height: 22px; margin-top: 1px; fill: none; stroke: var(--ink2); stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.type span { display: flex; flex-direction: column; min-width: 0; }
.type b { font-size: 14px; line-height: 1.25; }
.type small { font-size: 12.5px; line-height: 1.3; color: var(--ink2); }
.type:has(input:checked) { border-color: var(--ink); box-shadow: 3px 3px 0 var(--blue); }
.type:has(input:checked) svg { stroke: var(--blue); }
.type:has(input:focus-visible) { outline: 2px solid var(--blue); outline-offset: 2px; }
.types-note { margin: 8px 0 0; font-size: 12.5px; color: var(--mute); }
.hint[hidden] { display: none; }
.hint { display: block; margin-top: 6px; font-size: 13px; color: var(--ink2); }
@media (max-width: 400px) { .types-grid { grid-template-columns: 1fr; } }
