body.ui-auth {
  --auth-card-w: 27rem;
  font-family: Inter, system-ui, sans-serif;
}
.ui-auth-shell {
  margin: .5rem;
  min-height: calc(100svh - 1rem);
  border: 1px solid var(--ui-border);
  background: var(--ui-panel);
  border-radius: 16px;
  overflow: clip;
  box-shadow: var(--ui-shadow);
}
.ui-auth-brand {
  min-height: calc(100svh - 1rem);
  border: 0;
  border-radius: 0;
  border-right: 1px solid var(--ui-border);
  margin: 0;
  box-shadow: none;
  background: radial-gradient(ellipse at 35% 22%,color-mix(in srgb,var(--ui-primary) 9%,transparent),transparent 65%),var(--ui-panel);
}
.ui-auth-brand > .ui-dots {
  background-image: linear-gradient(to right,transparent 44%,var(--ui-panel) 44%),linear-gradient(to bottom,transparent 44%,var(--ui-panel) 44%),linear-gradient(110deg, #518aff, #9376e2);
  background-size: 9px 9px,9px 9px,100% 100%;
  mask-image: radial-gradient(ellipse at 45% 27%, #000 8%, transparent 80%);
  opacity: .085;
}
.ui-auth-particles, .ui-auth-board, .ui-auth-brand__foot { display: none; }
.ui-auth-brand__body { width: min(100%, 38rem); align-self: center; }
.ui-auth-h1 { font-size: clamp(3rem,5vw,5.75rem); line-height: .98; letter-spacing: -.065em; font-weight: 690; }
.ui-auth-h1 .ui-gradient-anim { background-image: var(--store-heading-gradient); }
.ui-auth-side { min-height: 0; }
.ui-auth-main { padding-block: 1.75rem; }
.ui-auth-card, html[data-theme="dark"] .ui-auth-card { border: 0; background: transparent; box-shadow: none; padding: .75rem; }
.ui-auth-card__title { font-size: clamp(1.95rem,3vw,2.65rem); font-weight: 670; line-height: 1.05; letter-spacing: -.055em; }
.account-intro { color: var(--ui-muted); margin: .55rem 0 1.5rem; font-size: 1rem; line-height: 1.45; }
.ui-auth .ui-auth-card .ui-auth-submit { background: var(--cloud-gradient); border-radius: 2rem; color: white; }
.account-window { display: block; margin-top: 1.15rem; width: 100%; overflow: hidden; border: 1px solid var(--ui-border); border-radius: .85rem; background: var(--ui-panel); box-shadow: var(--ui-shadow-lg); }
.account-window img { width: 100%; display: block; }
video.account-window { aspect-ratio: 16 / 9; }
.account-window[hidden] { display: none; }
.account-demos { margin-top: 1.6rem; }
.account-demos fieldset { display: inline-flex; min-width: 0; border: 1px solid var(--ui-border); background: var(--ui-subtle); padding: .2rem; margin: 0; border-radius: 3rem; }
.account-demos label { position: relative; cursor: pointer; }
.account-demos input { position: absolute; inset: 0; width: 100%; opacity: 0; cursor: pointer; }
.account-demos span { display: block; padding: .65rem .95rem; color: var(--ui-muted); font-weight: 600; font-size: .85rem; border-radius: 3rem; }
.account-demos input:checked + span { background: var(--ui-panel); color: var(--ui-fg); box-shadow: 0 0 0 1px var(--ui-border); }
.account-demos input:focus-visible + span { outline: 2px solid var(--ui-primary); }
@media (max-width: 1023px) {
  .ui-auth-shell { display: flex; flex-direction: column; }
  .ui-auth-side { order: -1; flex: 1; }
  .ui-auth-main { padding: 1.5rem 0; }
  .ui-auth-side__foot { padding-bottom: 1.25rem; }
  .auth-page--signup .ui-auth-brand { display: block; min-height: 0; padding: 1.25rem; border: 0; border-top: 1px solid var(--ui-border); }
  .auth-page--signup .ui-auth-brand .ui-auth-logo, .auth-page--signup .ui-auth-h1 { display: none; }
  .auth-page--signup .ui-auth-brand__body { padding: 0; margin: auto; }
  .auth-page--signup .ui-auth-lead { margin: 0; }
  .account-demos { margin-top: .9rem; }
}

/* Log-in's left side: the app's screen under the tabs, from its top-left corner at a size that reads. */
.account-shot { aspect-ratio: 16 / 9; }
.account-shot img { width: 165%; max-width: none; }

/* Sign-up's two boxes (storefront-auth.js): the terms, the emails. */
.ui-auth-check.has-tick { position: relative; align-items: flex-start; gap: .7rem; margin-top: .85rem; font-size: .8125rem; line-height: 1.5; color: var(--ui-muted); }
.ui-auth-check.has-tick + .ui-auth-check.has-tick, .auth-agree__ask + .ui-auth-check.has-tick { margin-top: .7rem; }
.ui-auth-check.has-tick a { color: var(--ui-fg-2); font-weight: 550; text-decoration: underline; text-decoration-color: var(--ui-border-strong); text-underline-offset: 2px; }
.ui-auth-check.has-tick a:hover { color: var(--ui-fg); text-decoration-color: currentColor; }
/* The real box stays, unseen, exactly over the drawn one: it is what is clicked, focused and read out. */
body.ui-auth .ui-auth-check.has-tick input { position: absolute; top: .05rem; left: 0; width: 1.2rem; height: 1.2rem; margin: 0; opacity: 0; cursor: pointer; }
.tick { position: relative; flex: none; display: grid; place-items: center; width: 1.2rem; height: 1.2rem; margin-top: .05rem; border: 1.5px solid var(--ui-border-strong); border-radius: .38rem; background: var(--ui-panel); transition: border-color .2s ease, background-color .2s ease; }
.ui-auth-check.has-tick:hover .tick { border-color: color-mix(in srgb, var(--ui-primary) 70%, var(--ui-border-strong)); }
.ui-auth-check.has-tick input:focus-visible + .tick { outline: 2px solid var(--ui-primary); outline-offset: 2px; }
.tick svg { width: .82rem; height: .82rem; fill: none; stroke: #fff; stroke-width: 2.1; stroke-linecap: round; stroke-linejoin: round; }
.tick path { stroke-dasharray: 1; stroke-dashoffset: 1; }
/* The four squares, the page's own, waiting at the box's corners. */
.tick i { position: absolute; width: 3px; height: 3px; border-radius: .5px; background: #7c8cf8; opacity: 0; }
.tick i:nth-of-type(1) { top: -1px; left: -1px; --dx: -7px; --dy: -7px; }
.tick i:nth-of-type(2) { top: -1px; right: -1px; --dx: 7px; --dy: -7px; background: #a78bfa; }
.tick i:nth-of-type(3) { bottom: -1px; right: -1px; --dx: 7px; --dy: 7px; }
.tick i:nth-of-type(4) { bottom: -1px; left: -1px; --dx: -7px; --dy: 7px; background: #60a5fa; }
/* Ticked: the box takes the blue-to-violet with a small jump, the mark is drawn in one stroke, the squares let go. */
.ui-auth-check.has-tick input:checked + .tick { border-color: transparent; background: var(--cloud-gradient); animation: tick-box .42s cubic-bezier(.3, 1.5, .5, 1); }
.ui-auth-check.has-tick input:checked + .tick path { stroke-dashoffset: 0; transition: stroke-dashoffset .26s cubic-bezier(.5, 0, .2, 1) .1s; }
.ui-auth-check.has-tick input:checked + .tick i { animation: tick-square .55s cubic-bezier(.2, .7, .3, 1) .08s; }
@keyframes tick-box { 0% { transform: scale(.78); } 55% { transform: scale(1.14); } 100% { transform: scale(1); } }
@keyframes tick-square { 0% { opacity: 0; transform: none; } 25% { opacity: 1; } 100% { opacity: 0; transform: translate(var(--dx), var(--dy)) scale(.6); } }
/* Asked for: the row leans in once, and one line under it says what is needed. */
.auth-agree.is-asked { animation: tick-ask .4s ease; }
.auth-agree.is-asked .tick { border-color: #f87171; }
@keyframes tick-ask { 25% { transform: translateX(-4px); } 60% { transform: translateX(3px); } }
.auth-agree__ask { margin: .35rem 0 0 1.9rem; color: #f87171; font-size: .8125rem; line-height: 1.4; }
.auth-agree__ask[hidden] { display: none; }
@media (prefers-reduced-motion: reduce) {
  .ui-auth-check.has-tick input:checked + .tick, .ui-auth-check.has-tick input:checked + .tick i, .auth-agree.is-asked { animation: none; }
  .ui-auth-check.has-tick input:checked + .tick path { transition: none; }
}
