/* kvnterm.com public pages (the /app adds public/app.css). Every public screen is the login column (same 48px mark at
   the same height, an 18px title, then content). Login measurements copied from linear.app/login: bg #111212 -> #09090a, 48px mark,
   32/24/32 gaps, 288x44 pill buttons, 13px type. One primary action per screen; secondary actions are footer links.
   Motion only answers a state change. Rules: DESIGN.md. */
@font-face { font-family: "JetBrains Mono"; font-style: normal; font-weight: 600; font-display: swap; src: url(/vendor/jetbrains-mono-600-latin.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 400 600; font-display: swap; src: url(/vendor/inter-latin.woff2) format("woff2"); }
:root {
  --bg: #09090a; --bg-top: #111212; --fill: #1b1b1c; --fill-hover: #232325; --card: rgba(255, 255, 255, .025); --line: rgba(255, 255, 255, .07);
  --fg: #e2e3e5; --fg-2: #949597; --fg-3: #626366; --primary: #e2e3e5; --on-primary: #0b0b0c; --ok: #4cb782; --bad: #eb5757;
  --mono: "JetBrains Mono", ui-monospace, "Cascadia Code", Consolas, monospace;
  --font: "Inter", "SF Pro Display", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  color-scheme: dark;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { background: var(--bg); }
body { margin: 0; min-height: 100vh; min-height: 100dvh; background: linear-gradient(var(--bg-top) 0%, var(--bg) 50%) no-repeat, var(--bg);
  color: var(--fg); font: 450 13px/1.4 var(--font); font-feature-settings: "cv01", "ss03"; -webkit-font-smoothing: antialiased; }
button, input { font: inherit; color: inherit; font-feature-settings: inherit; }
button { cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 2px solid #6c78e6; outline-offset: 2px; }
.ico { width: 16px; height: 16px; flex: none; display: block; }

@keyframes blink { 50% { opacity: 0; } }
@keyframes up { from { opacity: 0; transform: translateY(6px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes fade-out { to { opacity: 0; } }
@keyframes pop { 40% { transform: scale(1.3); } }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rowin { from { opacity: 0; transform: translateY(-6px); background: rgba(76, 183, 130, .16); } 35% { opacity: 1; transform: none; } to { background: transparent; } }
@keyframes rowout { 0% { opacity: 1; } 55% { opacity: 0; transform: translateX(16px); min-height: 52px; } 100% { opacity: 0; transform: translateX(16px); min-height: 0; height: 0; border-top-width: 0; } }
@keyframes ring { 0% { box-shadow: 0 0 0 0 rgba(76, 183, 130, .5); } 70%, 100% { box-shadow: 0 0 0 5px rgba(76, 183, 130, 0); } }
@keyframes draw { from { stroke-dashoffset: var(--len); } }
@keyframes tin { from { opacity: 0; transform: translate(-50%, 10px) scale(.98); } }
@keyframes tout { to { opacity: 0; transform: translate(-50%, 6px); } }
@keyframes shrink { to { transform: scaleX(0); } }
.enter > .in { animation: up .35s var(--ease) both; animation-delay: calc(80ms + var(--i, 0) * 45ms); }
.pop { animation: pop .3s var(--ease); }
.shake { animation: shake .28s ease-in-out; }
.brand { view-transition-name: brand; }
.screen:not([hidden]) h1 { view-transition-name: title; }
::view-transition-group(*) { animation-duration: .4s; animation-timing-function: var(--ease); }
::view-transition-old(root) { animation: .18s ease-out both fade-out; }
::view-transition-new(root) { animation: .25s ease-out both fade; }
@view-transition { navigation: auto; }

/* the column every screen shares */
.screen { min-height: 100vh; min-height: 100dvh; display: flex; justify-content: center; padding-top: max(56px, calc(50vh - 150px)); padding-bottom: 96px;
  padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
.col { width: 288px; max-width: 100%; display: flex; flex-direction: column; align-items: center; text-align: center; }
/* brand lockup: [>] kvnterm_  (the underscore is the blinking cursor) */
.brand { display: flex; align-items: center; gap: 12px; height: 48px; }
.brand .tile { width: 40px; height: 40px; border-radius: 11px; background: var(--primary); color: var(--bg); display: grid; place-items: center; flex: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .6), 0 1px 2px rgba(0, 0, 0, .4); }
.brand .tile svg { width: 22px; height: 22px; display: block; }
.brand .word { font: 600 27px/1 var(--mono); letter-spacing: -.03em; color: var(--fg); display: inline-flex; align-items: flex-end; }
.brand .cur { width: .55em; height: 3px; margin: 0 0 .1em .06em; border-radius: 1px; background: currentColor; animation: blink 1.1s steps(1) infinite; }
.done { margin-top: 32px; }
.done + h1 { margin-top: 16px; }
h1 { margin: 32px 0 0; font-size: 18px; line-height: 21px; font-weight: 500; }
.meta { margin: 8px 0 0; color: var(--fg-2); overflow-wrap: anywhere; }
.prose { margin: 16px 0 0; color: var(--fg-2); line-height: 1.6; text-align: left; }
.stack { margin-top: 24px; width: 100%; display: grid; gap: 16px; }
.foot { margin: 32px 0 0; color: var(--fg-2); display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px; }
.foot .sep { color: var(--fg-3); }
.link { background: none; border: 0; padding: 0; color: var(--fg); font-weight: 450; text-decoration: none; }
.link:hover { text-decoration: underline; text-underline-offset: 3px; }

.pill { position: relative; width: 100%; height: 44px; border-radius: 9999px; border: 1px solid transparent; background: var(--fill); color: var(--fg);
  font-size: 13px; font-weight: 500; display: inline-flex; align-items: center; justify-content: center; gap: 10px; text-decoration: none;
  transition: background .15s, transform .12s var(--ease); }
.pill:hover { background: var(--fill-hover); }
.pill:active { transform: scale(.985); }
.pill.primary { background: var(--primary); color: var(--on-primary); box-shadow: rgba(0, 0, 0, .3) 0 .5px 1px 1px; }
.pill.primary:hover { background: #fff; }
.spin { display: none; width: 14px; height: 14px; border-radius: 50%; border: 2px solid rgba(11, 11, 12, .2); border-top-color: var(--on-primary); animation: spin .7s linear infinite; }
.busy .spin { display: block; }
.busy .g, .busy .arr { display: none; }
.field { width: 100%; height: 44px; border-radius: 9999px; border: 1px solid var(--line); background: var(--fill); padding: 0 52px 0 18px; outline: none; transition: border-color .15s; }
.field::placeholder { color: var(--fg-3); }
.field:focus { border-color: rgba(255, 255, 255, .22); }
.field[aria-invalid="true"] { border-color: rgba(235, 87, 87, .6); }
.combo { position: relative; width: 100%; }
/* request arrow: an empty dashed circle until the Gmail is valid, then white fills it from the centre (like the + in /app) */
.go { position: absolute; right: 6px; top: 6px; width: 32px; height: 32px; border-radius: 50%; border: 1px dashed rgba(255, 255, 255, .16);
  background: transparent; color: var(--fg-3); display: grid; place-items: center; isolation: isolate; cursor: default;
  transition: color .2s, border-color .2s, transform .12s var(--ease); }
.go::before { content: ""; position: absolute; inset: -1px; border-radius: 50%; background: var(--primary); transform: scale(0); transition: transform .3s var(--ease); z-index: -1; }
.go .arr { transform: translateX(-2px); transition: transform .3s var(--ease); }
.ready .go { border-style: solid; border-color: var(--primary); color: var(--on-primary); cursor: pointer; }
.ready .go::before { transform: scale(1); }
.ready .go .arr { transform: none; }
.ready .go:hover::before { background: #fff; }
.ready .go:active { transform: scale(.92); }
.go:disabled { transform: none; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.err-t { margin: -8px 0 0; padding-left: 18px; color: var(--bad); font-size: 12px; text-align: left; animation: fade .15s; }
.done { width: 40px; height: 40px; display: block; }
.done circle { stroke: var(--ok); --len: 126; stroke-dasharray: 126; }
.done path { stroke: var(--ok); --len: 30; stroke-dasharray: 30; }
.done.draw circle { animation: draw .45s var(--ease) both; }
.done.draw path { animation: draw .3s var(--ease) .35s both; }



@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
.pill .lbl { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.foot.stacked { flex-direction: column; gap: 10px; }
/* login when a session is still alive: the account pill IS the button; on hover "Continuar" pops out of its centre and covers it */
.acct { position: relative; margin-top: 24px; width: 100%; height: 52px; display: flex; align-items: center; gap: 12px; padding: 0 18px 0 10px; border-radius: 9999px;
  border: 1px solid var(--line); background: var(--fill); color: var(--fg); text-decoration: none; text-align: left;
  transition: background .15s, border-color .15s, transform .12s var(--ease); }
.acct:hover, .acct:focus-visible { background: var(--fill-hover); border-color: rgba(255, 255, 255, .14); outline: none; }
.acct:active { transform: scale(.985); }
.acct .av { width: 32px; height: 32px; font-size: 13px; }
.acct .em { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct .cta { position: absolute; inset: 7px; border-radius: 9999px; background: var(--primary); color: var(--on-primary);
  display: flex; align-items: center; justify-content: center; gap: 8px; font-weight: 500;
  opacity: 0; transform: scale(.6); transition: opacity .18s var(--ease), transform .3s cubic-bezier(.3, 1.45, .55, 1); }
.acct:hover .cta, .acct:focus-visible .cta, .acct.busy .cta { opacity: 1; transform: none; }
.acct.busy .t { display: none; }
.av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; background: #2a2a2d; color: var(--fg); font-size: 12px; font-weight: 500; }
/* /negado states: none = small lock on the title's line; waiting = slow arc on a faint ring; declined/expired = red x */
h1 .lock { width: 16px; height: 16px; display: inline-block; vertical-align: -2px; margin-right: 8px; color: var(--fg-2); }
.done.wait .trk { stroke: var(--line); stroke-dasharray: none; }
.done.wait .arc { stroke: var(--fg-2); stroke-dasharray: 28 98; transform-box: fill-box; transform-origin: center; animation: spin 1.4s linear infinite; }
.done.no circle, .done.no path { stroke: var(--bad); }
.done.no.draw path + path { animation-delay: .5s; }
