/* THE LOGIN SCREEN (shared/login.js): the page's ground and one column. At its head the wordmark, a rule, and the two ways in, Log in and Sign up, as tabs
   (the chosen one in the ink, underlined); under it the one chosen, and nothing else. It covers the page until an account is open, and the four-colour strip
   stays at the foot. */
.login { position: fixed; inset: 0; z-index: 350; display: grid; place-items: center; overflow: auto; padding: 48px 24px; background: var(--z-ground); }
.lgc { width: min(400px, 100%); display: flex; flex-direction: column; gap: 14px; }
.lgc .lgm { --wm: 2.6rem; margin: 0; }
.lghead { display: flex; align-items: center; gap: 18px; margin: 0 0 18px; }
.lghead .lgm { --wm: 2.2rem; }
.lgsep { flex: none; width: 1px; height: 26px; background: var(--th-hair); }
.lgtabs { display: flex; align-items: center; gap: 18px; }
.lgt { border: 0; background: none; padding: 4px 0; font: 500 20px/1.2 var(--display); letter-spacing: -.01em; color: var(--th-fg-3); cursor: pointer; text-decoration: underline 2px transparent; text-underline-offset: 8px; transition: color .12s ease, text-decoration-color .12s ease; }
.lgt:hover { color: var(--th-fg-2); }
.lgt[aria-selected="true"] { color: var(--th-fg); text-decoration-color: currentColor; }
/* SIGNING UP: its four steps in a line, numbered, the one it is on in the ink; and a hint under a field where the rule is not obvious */
.lgsteps { display: flex; flex-wrap: wrap; gap: 6px 14px; margin: 0 0 4px; padding: 0; list-style: none; counter-reset: lgst; font-size: 12px; line-height: 18px; color: var(--th-fg-3); }
.lgsteps li { counter-increment: lgst; display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.lgsteps li::before { content: counter(lgst); display: grid; place-items: center; width: 18px; height: 18px; border: 1px solid var(--th-hair); font: 500 11px/1 var(--mono); }
.lgsteps li.done { color: var(--th-fg-2); }
.lgsteps li.on { color: var(--th-fg); }
.lgsteps li.on::before { border-color: var(--th-fg); background: var(--th-fg); color: var(--z-ground); }
.lgf .lghint { margin: -2px 0 0; font-size: 12px; line-height: 1.4; color: var(--th-fg-3); }
.lgf .lgck a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.lgc h1 { margin: 0; font: 500 26px/1.2 var(--display); letter-spacing: -.015em; color: var(--th-fg); }
.lgc .lgp { margin: 0; font-size: var(--t-small); line-height: 1.5; color: var(--th-fg-2); }
.lgc .lgcmd { font: 500 13px/1.4 var(--mono); }
.lgc .lgcmd { margin: 0; padding: 10px 12px; background: var(--z-well); border: 1px solid var(--th-hair-2); color: var(--th-fg); }
.lgf { display: flex; flex-direction: column; gap: 8px; }
.lgf label { margin-top: 6px; font-size: var(--t-small); color: var(--th-fg-2); }
.lgf .in { width: 100%; }
.lgf .lgrow { display: flex; align-items: center; gap: 16px; margin-top: 10px; }
.lgf .lgrow .btn.go { min-width: 120px; }
.lgc .lge { margin: 0; min-height: 1.4em; font-size: var(--t-small); line-height: 1.4; color: var(--th-cost-prov); }
.lgc .lge:empty { min-height: 0; }
.lgl { border: 0; background: none; padding: 0; font: inherit; font-size: var(--t-small); color: var(--th-fg-2); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.lgl:hover { color: var(--th-fg); }
.lgl:disabled { opacity: .5; cursor: default; }
/* turning the second factor on: the key to type into the app, and the recovery codes, each in a well that is easy to select whole */
.lgc .lgkey { font-size: 17px; line-height: 1.5; letter-spacing: .06em; user-select: all; white-space: pre; }
.lgc .lgcodes { columns: 2; column-gap: 24px; user-select: all; }
.lgf .lgck { display: flex; align-items: center; gap: 10px; margin-top: 10px; color: var(--th-fg); cursor: pointer; }
/* OPENING THE ACCOUNT: the wordmark, larger, in the middle of the window, what is being read under it, and the four-colour strip at the foot filling from left to right
   and emptying the same way, over and over, until the slices are read. With reduced motion the strip stays still. */
.login.lgload .lgc { align-items: center; text-align: center; }
.login.lgload .lgc .lgm { --wm: 3.6rem; margin: 0 0 22px; }
.login.lgload .lgc h1 { font-size: 20px; }
@keyframes deco-fill { 0% { clip-path: inset(0 100% 0 0); } 55% { clip-path: inset(0 0 0 0); } 100% { clip-path: inset(0 0 0 100%); } }
body:has(.login.lgload) .deco { animation: deco-fill 1.6s cubic-bezier(.45, 0, .2, 1) infinite; }
@media (prefers-reduced-motion: reduce) { body:has(.login.lgload) .deco { animation: none; } }
