@font-face { font-family: 'Satoshi'; src: url(satoshi.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
:root {
  --bg: #060606; --ink: #f2f1ee; --text: #c8c7c1; --mute: #9a9993; --line-2: rgba(255,255,255,.2);
  --surface: #121315; --surface-hover: #191b1e;
  --blue: #3b82f6; --err: #f0806a;
  --font: 'Satoshi', system-ui, sans-serif;
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.32, .72, 0, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; }
body { background: var(--bg); color: var(--ink); font: 400 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow: hidden; }
#gl { position: fixed; inset: 0; width: 100%; height: 100%; display: block; animation: fade 1.6s ease both; }
.shade { position: fixed; inset: 0; background: linear-gradient(90deg, rgba(6,6,6,.94) 0, rgba(6,6,6,.86) 420px, rgba(6,6,6,.3) 760px, rgba(6,6,6,0) 1100px); pointer-events: none; }
main { position: relative; z-index: 2; width: 480px; height: 100%; display: flex; flex-direction: column; padding: 40px 56px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand img { width: 26px; height: 26px; }
.brand b { font-weight: 600; font-size: 16px; }
.mid { margin: auto 0; }
h1 { font-size: clamp(48px, 5vw, 68px); line-height: .95; font-weight: 600; letter-spacing: -.045em; }
.to { margin: 18px 0 48px; color: var(--text); font-size: 17px; }
.to b { color: var(--ink); font-weight: 500; }
label { display: block; font-size: 14px; color: var(--mute); margin-bottom: 6px; }
.in { margin-bottom: 22px; }
input { width: 100%; height: 46px; background: transparent; border: 0; border-bottom: 1px solid var(--line-2); color: var(--ink); font: 400 17px/1 var(--font); padding: 0 2px; border-radius: 0; transition: border-color .3s var(--ease); }
input:focus { outline: none; border-bottom-color: var(--blue); }
.err { color: var(--err); font-size: 14px; margin: -6px 0 18px; }
.err + form #p, form.bad #p { border-bottom-color: var(--err); }

.go, .sso { position: relative; display: flex; align-items: center; width: 100%; height: 56px; padding: 0 8px 0 22px; border: 0; border-radius: 0; font: 600 16px/1 var(--font); text-decoration: none; cursor: pointer; overflow: hidden; transition: transform .5s var(--spring), background-color .4s var(--ease); }
.go { margin-top: 14px; background: var(--ink); color: #0a0a0b; }
.go::before { content: ''; position: absolute; inset: 0; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .6s var(--spring); }
.go:hover::before { transform: scaleX(1); }
.go > * { position: relative; }
.go .ic, .sso .ic { margin-left: auto; width: 40px; height: 40px; display: grid; place-items: center; transition: transform .5s var(--spring), background-color .4s var(--ease); }
.go .ic { background: #0a0a0b; color: var(--ink); }
.go:hover .ic { transform: translateX(3px); }
.go:active, .sso:active { transform: scale(.985); }
.go[aria-busy="true"] { pointer-events: none; }
.go[aria-busy="true"] .ic svg { animation: nudge 1s var(--ease) infinite; }
.or { margin: 20px 0; text-align: center; font-size: 14px; color: var(--mute); }
.sso { background: var(--surface); color: var(--ink); font-weight: 500; gap: 12px; padding-left: 16px; }
.sso img { width: 22px; height: 22px; }
.sso .ic { background: rgba(255,255,255,.06); }
.sso:hover { background: var(--surface-hover); }
.sso:hover .ic { transform: translate(2px, -2px); background: rgba(59,130,246,.22); }
.go:focus-visible, .sso:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.foot { font-size: 14px; color: var(--mute); }

.brand, .foot, .mid h1, .mid .to, .mid .in, .mid .go, .mid .or, .mid .sso { animation: rise .8s var(--ease) both; }
.mid .to { animation-delay: .08s; }
.mid .in:nth-of-type(1) { animation-delay: .16s; }
.mid .in:nth-of-type(2) { animation-delay: .22s; }
.mid .go { animation-delay: .3s; }
.mid .or, .mid .sso { animation-delay: .36s; }
.foot { animation-delay: .44s; }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes nudge { 50% { transform: translateX(4px); } }
@media (prefers-reduced-motion: reduce) {
  #gl, .brand, .foot, .mid h1, .mid .to, .mid .in, .mid .go, .mid .or, .mid .sso { animation: none; }
  .go[aria-busy="true"] .ic svg { animation: none; }
}
@media (max-width: 760px) {
  body { overflow: auto; }
  .shade { background: radial-gradient(120% 60% at 50% 60%, rgba(6,6,6,.5), rgba(6,6,6,0) 70%); }
  main { width: 100%; min-height: 100dvh; height: auto; padding: 24px 16px; }
  .mid { width: 100%; max-width: 400px; margin: auto auto 6vh; padding: 32px 22px 28px; background: #0c0c0d; }
  h1 { font-size: 44px; }
  .to { margin-bottom: 32px; }
  .foot { text-align: center; }
}
