/* Solea v5 · the account screens (task 26, 20 Oct; the design approved on the canvas, boards SolAcc1-3). Only when accounts
   are on (app/accounts.py). v5's look from /v5/tokens.css: warm white cards with hairlines on the warm grey floor by day,
   graphite at night; graphite for what is primary; green and red only for good/bad; amber for "for you". */
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: "Plus Jakarta Sans", system-ui, sans-serif; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased;
  font-variant-numeric: tabular-nums; }
[hidden] { display: none !important; }
svg.i { width: 16px; height: 16px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* the window: the form on the left, the office on the right (a framed picture with what lives where) */
.auth { display: grid; grid-template-columns: minmax(460px, 1fr) minmax(0, 1.12fr); height: 100vh; min-height: 640px; }
.auth .side { display: flex; flex-direction: column; padding: 28px 48px 24px; min-width: 0; }
.auth .brand { display: flex; align-items: center; gap: 10px; }
.auth .brand :is(svg, img) { width: 30px; height: 30px; display: block; }
.auth .brand b { font-size: 15px; font-weight: 700; letter-spacing: .32em; }
.auth .mid { flex: 1; display: flex; align-items: center; justify-content: center; padding: 18px 0; }
.auth .form { width: 100%; max-width: 384px; }
.auth .foot { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 12.5px; color: var(--muted); }
.auth .foot a { color: var(--muted); }
.auth .foot span { margin-left: auto; }

/* the PRACTICE badge's look (office.css .of-acct): graphite, a dot, small caps */
.beta { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px 3px 8px; border-radius: 6px; background: var(--ink); color: var(--panel);
  font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; line-height: 16px; white-space: nowrap; }
.beta::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: currentColor; }

.auth h1 { margin: 0; font-size: 28px; line-height: 1.2; font-weight: 700; letter-spacing: -.02em; }
.sub { margin: 8px 0 0; font-size: 14.5px; line-height: 1.5; color: var(--muted); }
.sub b { color: var(--ink); font-weight: 600; display: inline-block; max-width: 100%; overflow-wrap: anywhere; }
.sub b.em { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; overflow-wrap: normal; }   /* an email never breaks at its hyphen */   /* an email stays on one line when it fits */
.stack > * + * { margin-top: 14px; }
.gap-l { margin-top: 26px !important; }

/* buttons: 46 px tall, 8 px corners; graphite = the main one; white with a hairline = Google and the second ones */
.auth .btn { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 46px; padding: 0 16px; border-radius: 8px;
  font: 600 14.5px/1 "Plus Jakarta Sans", system-ui, sans-serif; cursor: pointer; text-decoration: none; white-space: nowrap; }
.auth .btn.pri { background: var(--accent); color: var(--accent-ink); border: 1px solid var(--accent); }
.auth .btn.pri:hover:not(:disabled) { background: var(--accent-hover); border-color: var(--accent-hover); }
.auth .btn.pri:disabled { opacity: .45; cursor: default; }
.auth .btn.sec { background: var(--panel); color: var(--ink); border: 1px solid var(--line2); box-shadow: 0 1px 2px rgba(28, 29, 33, .04); }
.auth .btn.sec:hover:not(:disabled) { border-color: var(--line3); }
.auth .btn.sec:disabled { opacity: .55; cursor: default; }
.auth .btn.sec.google[aria-disabled="true"] { opacity: 1; cursor: not-allowed; background: var(--panel2); color: var(--muted); border-style: dashed; box-shadow: none; }
.auth .btn.sec.google[aria-disabled="true"] svg { filter: grayscale(1); opacity: .45; }   /* Google switched off: plainly not a button to press */
.auth .btn svg.g { width: 18px; height: 18px; }
.auth .btn .i { width: 15px; height: 15px; }
.auth .btn:focus-visible, .auth a:focus-visible, .auth .lnk:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ghint { margin-top: 7px !important; font-size: 12.5px; color: var(--muted); text-align: center; }
.row2 { display: flex; gap: 10px; } .row2 .btn { flex: 1; }

.or { display: flex; align-items: center; gap: 12px; font-size: 12.5px; color: var(--muted); margin: 20px 0 !important; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: var(--line); }

/* fields */
.fld label, .fld .lab { display: flex; align-items: baseline; justify-content: space-between; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.auth .lnk { border: 0; background: none; padding: 0; font: 600 13px "Plus Jakarta Sans", system-ui, sans-serif; color: var(--ink); cursor: pointer;
  text-decoration: underline; text-decoration-color: var(--line3); text-underline-offset: 3px; }
.auth .lnk:hover { text-decoration-color: currentColor; }
.box { display: flex; align-items: center; gap: 8px; height: 44px; padding: 0 12px; background: var(--panel); border: 1px solid var(--field-line); border-radius: 8px; }
.box input { flex: 1; min-width: 0; height: 100%; border: 0 !important; outline: none !important; background: none; padding: 0; color: var(--ink);
  font: 500 14.5px/1 "Plus Jakarta Sans", system-ui, sans-serif; box-shadow: none !important; }
.box input::placeholder { color: var(--muted); font-weight: 400; }
.box:focus-within { border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }
.box.err, .box.err:focus-within { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
.auth .box .eye { border: 0; background: none; padding: 4px; color: var(--muted); cursor: pointer; display: flex; border-radius: 6px; }
.auth .box .eye:hover { color: var(--ink); }
.hint { margin-top: 6px; font-size: 12.5px; color: var(--muted); line-height: 1.45; }
.hint.bad { color: var(--bad); display: flex; gap: 6px; align-items: flex-start; }
.hint.bad .i { width: 14px; height: 14px; margin-top: 1px; }

/* the password's strength: four short bars and a word (tokens.css has a .meter of its own: not this one) */
.auth .meter { display: flex; align-items: center; gap: 10px; margin-top: 8px; background: none; box-shadow: none; }
.auth .meter .bars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; flex: 1; }
.auth .meter .bars i { height: 4px; border-radius: 2px; background: var(--line); }
.auth .meter.weak .bars i:nth-child(-n+1) { background: var(--bad); }
.auth .meter.fair .bars i:nth-child(-n+2) { background: #D98E04; }
.auth .meter.good .bars i:nth-child(-n+3) { background: var(--good); }
.auth .meter.strong .bars i { background: var(--good); }
.auth .meter b { font-size: 12.5px; font-weight: 700; min-width: 54px; text-align: right; }
.auth .meter.weak b { color: var(--bad); } .auth .meter.fair b { color: var(--warn-ink); } .auth .meter.good b, .auth .meter.strong b { color: var(--good); }
.rules { display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 7px 0 0; padding: 0; list-style: none; font-size: 12.5px; color: var(--muted); }
.rules li { display: inline-flex; gap: 5px; align-items: center; }
.rules li .i { width: 13px; height: 13px; }
.rules li.ok { color: var(--ink); } .rules li.ok .i { color: var(--good); }

/* notes: the soft surface, an icon and two lines (the beta note, "you're in line", a problem) */
.note { display: flex; gap: 11px; align-items: flex-start; padding: 12px 14px; background: var(--panel2); border: 1px solid var(--line); border-radius: 10px;
  font-size: 13px; line-height: 1.5; color: var(--muted); }
.note .i { margin-top: 2px; color: var(--ink); }
.note b { color: var(--ink); font-weight: 600; display: block; }
.note a { color: var(--ink); font-weight: 600; }
.note.ok { background: color-mix(in srgb, var(--good) 7%, var(--panel)); border-color: color-mix(in srgb, var(--good) 28%, var(--panel)); }
.note.ok .i { color: var(--good); }
.note.amber { background: var(--warn-bg); border-color: var(--warn-line); }
.note.amber .i { color: var(--warn-ink); }
.note.bad { background: color-mix(in srgb, var(--bad) 6%, var(--panel)); border-color: color-mix(in srgb, var(--bad) 30%, var(--panel)); }
.note.bad .i { color: var(--bad); }
.alt { font-size: 13.5px; color: var(--muted); text-align: center; }
.alt a, .alt .lnk { font-size: 13.5px; }
.terms { font-size: 12px; color: var(--muted); line-height: 1.5; text-align: center; }
.terms a { color: var(--muted); }

/* a round icon over the heading (check your email, not invited, reset) */
.badge-ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-content: center; background: var(--panel); border: 1px solid var(--line);
  box-shadow: var(--shadow); margin-bottom: 18px; }
.badge-ico .i { width: 22px; height: 22px; }
.badge-ico .head { width: 52px; height: 52px; display: block; }
.badge-ico:has(> .head) { background: none; border: 0; box-shadow: none; }   /* (T171: the head alone, nothing round it) */

/* the 6-digit code: six boxes, one digit each (typing moves on, a paste fills them all) */
.code { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.auth .code input { width: 100%; height: 56px; text-align: center; background: var(--panel); border: 1px solid var(--field-line); border-radius: 10px;
  font: 700 22px "Plus Jakarta Sans", system-ui, sans-serif; color: var(--ink); padding: 0; caret-color: var(--ink); }
.auth .code input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 1px var(--focus); }
.auth .code.err input { border-color: var(--bad); }

/* waiting (for Google, for Solea to open) */
.wait { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border: 1px solid var(--line); background: var(--panel); border-radius: 10px;
  font-size: 13.5px; line-height: 1.45; color: var(--muted); }
.wait b { color: var(--ink); display: block; font-weight: 600; }
.spin { width: 22px; height: 22px; flex: none; border-radius: 50%; border: 2.5px solid var(--line); border-top-color: var(--ink); animation: au-spin 1s linear infinite; }
@keyframes au-spin { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .spin { animation-duration: 3s; } }
.busy { opacity: .7; pointer-events: none; }

/* the picture: the office from above, framed like a card, with what lives where */
.art { position: relative; margin: 16px 16px 16px 0; border-radius: 20px; overflow: hidden; background: #DCDAD6 url(/auth/img/office-above.jpg) center 58% / cover no-repeat;
  border: 1px solid var(--line); }
.art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(240, 238, 234, 0) 45%, rgba(240, 238, 234, .55) 100%); pointer-events: none; }
html.dark .art { background-color: #2A2B30; border-color: var(--line); }
html.dark .art::before { content: ""; position: absolute; inset: 0; background: rgba(12, 13, 16, .42); z-index: 0; }
html.dark .art::after { background: linear-gradient(180deg, rgba(23, 24, 27, 0) 40%, rgba(23, 24, 27, .7) 100%); }
.cap { position: absolute; left: 24px; bottom: 24px; right: 24px; z-index: 1; max-width: 520px; padding: 18px 20px 18px; background: rgba(255, 255, 255, .93);
  border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 1px 2px rgba(28, 29, 33, .05), 0 16px 40px rgba(28, 29, 33, .13);
  backdrop-filter: blur(12px); }
.cap:empty { display: none; }
html.dark .cap { background: rgba(29, 30, 34, .94); box-shadow: 0 1px 2px rgba(0, 0, 0, .35), 0 18px 48px rgba(0, 0, 0, .5); }
.cap .eyebrow { font-size: 10.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.cap h2 { margin: 4px 0 4px; font-size: 18px; letter-spacing: -.01em; }
.cap p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.where { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.where div { padding: 9px 11px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); font-size: 12px; color: var(--muted); line-height: 1.35; }
.where div b { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink); font-weight: 700; margin-bottom: 2px; }
.where div b .i { width: 14px; height: 14px; }
.where div.pc { border-left: 3px solid var(--good); }
.where div.cloud { border-left: 3px solid var(--line3); }
.steps { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 8px; }
.steps li { display: flex; gap: 12px; align-items: center; font-size: 13.5px; color: var(--muted); }
.steps li i { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-content: center; border: 1px solid var(--line2);
  font-style: normal; font-size: 12px; font-weight: 700; color: var(--muted); background: var(--panel); }
.steps li.on { color: var(--ink); font-weight: 600; } .steps li.on i { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.steps li.done i { background: var(--good); border-color: var(--good); color: #fff; }
.steps li small { margin-left: auto; font-size: 12px; color: var(--muted); font-weight: 500; }

/* narrower windows: the picture gets narrower; under 900 px it goes (a desktop app, but the window can be small) */
@media (max-width: 1180px) {
  .auth { grid-template-columns: minmax(440px, 1fr) minmax(0, .9fr); }
  .auth .side { padding: 24px 36px 20px; }
  .where { grid-template-columns: 1fr; }
  .cap { left: 18px; right: 18px; bottom: 18px; }
}
@media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .art { display: none; } }
@media (max-width: 520px) { .auth .side { padding: 20px 16px 16px; } .auth { min-height: 0; } }
/* shorter windows (a laptop at 768 px): tighter spacing so even the longest form (Create account) fits without scrolling */
@media (max-height: 820px) {
  .auth .side { padding-top: 20px; padding-bottom: 16px; }
  .auth .mid { padding: 10px 0; }
  .stack > * + * { margin-top: 10px; }
  .gap-l { margin-top: 16px !important; }
  .or { margin: 12px 0 !important; }
  .auth h1 { font-size: 24px; }
  .sub { margin-top: 4px; font-size: 14px; }
  .fld label, .fld .lab { margin-bottom: 4px; }
  .box, .auth .btn { height: 42px; }
  .hint.opt { display: none; }
  .badge-ico { margin-bottom: 12px; }
}
/* phone: repair (26 Oct 2026, the phone checks: on a phone an iPhone zoomed into the 14.5 px boxes, the boxes were 42 px and
   "Forgot password?", "Create your account" and "Sign in" were 16 px tall to the thumb) under 700 px wide (the app's own phone
   width): 16 px in every box, 48 px boxes and buttons, each text link 44 px to the thumb, and Google while it is switched off
   a quiet line, not the biggest thing over the form */
@media (max-width: 699.98px) {
  .box, .auth .btn { height: 48px; }
  .box input { font-size: 16px; }
  .auth .lnk, .auth .alt a, .auth .terms a, .auth .note a { position: relative; }
  .auth .lnk::after, .auth .alt a::after, .auth .terms a::after, .auth .note a::after { content: ""; position: absolute; inset: -15px -6px; }
  .auth .foot a { display: inline-flex; align-items: center; min-height: 44px; }
  .beta { font-size: 12px; }
  .auth .box .eye { min-width: 44px; min-height: 44px; align-items: center; justify-content: center; margin-right: -10px; }
  .auth .btn.sec.google[aria-disabled="true"] { height: 40px; font-size: 13px; }
}
