@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url(/fonts/figtree-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;
}
@font-face {
  font-family: "Figtree";
  font-style: normal;
  font-display: swap;
  font-weight: 300 900;
  src: url(/fonts/figtree-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;
}

:root {
  --ink: #111827;
  --ink-2: #4b5563;
  --ink-3: #8a93a6;
  --line: #d9dee8;
  --bg: #f4f6fb;
  --blue: #2152ff;
  --blue-d: #1740d4;
  --peri: #c7d3ff;
  --sun: #ffc94a;
  --err: #c0262d;
  font-family: "Figtree", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  min-height: 100vh; min-height: 100svh; display: flex; flex-direction: column; justify-content: center;
  padding: 0 40px;
  background:
    radial-gradient(60% 40% at 85% 0%, #e3ebff 0%, transparent 70%),
    radial-gradient(50% 40% at 0% 100%, #e8eefc 0%, transparent 70%),
    var(--bg);
  color: var(--ink); -webkit-font-smoothing: antialiased;
  --maxw: 1200px;
}

/* header, frame and footer share one column so the logo lines up with the frame */
.top, .frame, .foot { width: 100%; max-width: var(--maxw); margin-left: auto; margin-right: auto; }
.top { padding: 24px 0 18px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; font-size: 23px; letter-spacing: -0.02em; }
.mark { width: 32px; height: 32px; flex: none; display: block; }
.mark.sm { width: 20px; height: 20px; }

/* frame: grows with the screen, but stays between 560 and 760 px tall */
.frame {
  display: grid; grid-template-columns: 1fr 1fr;
  height: clamp(560px, calc(100vh - 150px), 760px);
  height: clamp(560px, calc(100svh - 150px), 760px);
  background: #fff; border-radius: 28px; overflow: hidden;
  box-shadow: 0 1px 2px rgba(17,24,39,.04), 0 20px 50px -20px rgba(33,82,255,.18);
}
.frame > * { min-width: 0; }

.signin { padding: 72px 88px 56px; display: flex; flex-direction: column; justify-content: center; }
h1 { font-size: 54px; line-height: 1.02; letter-spacing: -0.035em; font-weight: 800; margin: 0 0 40px; }
h2 { font-size: 24px; font-weight: 700; letter-spacing: -0.015em; margin: 0 0 20px; }
form { max-width: 440px; }

label { display: block; font-size: 15px; font-weight: 600; margin: 0 0 8px; }
.field {
  display: flex; align-items: center; height: 56px; border: 2px solid var(--line); border-radius: 16px;
  background: #fff; transition: border-color .15s, box-shadow .15s; padding: 0 16px;
}
.field:focus-within { border-color: var(--blue); box-shadow: 0 0 0 4px rgba(33,82,255,.12); }
.field input { flex: 1; min-width: 0; border: 0; outline: 0; font: inherit; font-size: 17px; color: var(--ink); background: transparent; height: 100%; }
.field input::placeholder { color: #b3bac8; }
.suffix { color: var(--ink-3); font-size: 17px; white-space: nowrap; }

button { font: inherit; cursor: pointer; }
.btn {
  display: block; width: 100%; height: 54px; margin-top: 16px; border: 0; border-radius: 999px;
  background: var(--blue); color: #fff; font-size: 17px; font-weight: 700; letter-spacing: -0.005em;
  transition: background .15s, transform .05s;
}
.btn:hover { background: var(--blue-d); }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: #eceef4; color: #a0a7b6; cursor: default; transform: none; }
.link { background: none; border: 0; padding: 0; color: var(--blue); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1.5px; }
.link:hover { color: var(--blue-d); }
.link.small { display: block; margin: 16px auto 0; font-size: 15px; }
button:focus-visible { outline: 3px solid rgba(33,82,255,.4); outline-offset: 3px; }

.who { display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 999px; background: #f1f4fb; margin-bottom: 20px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--peri); color: var(--blue-d); display: grid; place-items: center; font-weight: 800; flex: none; }
.who-addr { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }

.msg { margin: 14px 0 0; font-size: 15px; color: var(--err); font-weight: 500; }
.noacct { margin: 28px 0 0; font-size: 16px; color: var(--ink-2); }
.note { max-width: 440px; margin-top: 16px; font-size: 15px; line-height: 1.5; color: var(--ink-2); background: #f1f4fb; border-radius: 16px; padding: 16px 18px; }
.note strong { color: var(--ink); }
.note p { margin: 6px 0 0; }

/* right panel */
.sky {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 22px;
  background: linear-gradient(180deg, #e9f0ff 0%, #cfdcff 55%, #b7c9ff 100%);
  padding: 48px;
}
.sun { position: absolute; width: 180px; height: 180px; border-radius: 50%; background: var(--sun); top: -50px; right: -40px; }
.cloud { position: absolute; background: rgba(255,255,255,.75); border-radius: 999px; filter: blur(2px); }
.cloud.c1 { width: 220px; height: 64px; left: -40px; top: 18%; }
.cloud.c2 { width: 280px; height: 80px; right: -70px; bottom: 9%; background: rgba(255,255,255,.55); }

.card {
  position: relative; z-index: 1; width: min(100%, 360px); aspect-ratio: 1 / 1.08; border-radius: 24px; padding: 26px 26px 24px;
  background-color: #a9b9ff; color: #10195a; display: flex; flex-direction: column;
  box-shadow: 0 24px 50px -24px rgba(16,25,90,.45);
}
.card::before { /* dot texture, fading upward */
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background-image: radial-gradient(rgba(255,255,255,.55) 1.2px, transparent 1.4px);
  background-size: 10px 10px;
  -webkit-mask-image: linear-gradient(15deg, #000 10%, transparent 70%); mask-image: linear-gradient(15deg, #000 10%, transparent 70%);
}
.card > * { position: relative; }
.card-top { display: flex; justify-content: space-between; align-items: center; }
.card-logo { display: inline-flex; align-items: center; gap: 7px; font-weight: 700; font-size: 16px; letter-spacing: -0.01em; }
.tag { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: rgba(255,255,255,.6); padding: 5px 10px; border-radius: 999px; }
.card-title { margin: auto 0 12px; font-size: 34px; line-height: 1.05; letter-spacing: -0.03em; font-weight: 800; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: #fff; color: #10195a; font-size: 14px; font-weight: 600; padding: 7px 13px; border-radius: 999px; }


/* footer */
.foot { display: flex; gap: 20px; justify-content: center; padding: 22px 0 26px; font-size: 14px; color: var(--ink-3); }
.foot a { color: var(--ink-2); text-decoration: none; }
.foot a:hover { text-decoration: underline; }

/* text pages */
.doc { width: 100%; max-width: 760px; margin: 24px auto; background: #fff; border-radius: 28px; padding: 56px 64px; line-height: 1.65; color: var(--ink-2); font-size: 17px; }
.doc .logo { color: var(--ink); margin-bottom: 36px; }
.doc h1 { font-size: 44px; margin: 0 0 24px; color: var(--ink); }
.doc a { color: var(--blue); font-weight: 600; }

/* card copy + loading button */
.card-sub { margin: 0; font-size: 16px; line-height: 1.45; color: #1d2a7a; max-width: 280px; }
.btn.loading { background: var(--blue); color: rgba(255,255,255,.85); cursor: progress; }

/* big desktops: a little larger overall */
@media (min-width: 1800px) and (min-height: 950px) {
  body { --maxw: 1320px; }
  .frame { height: clamp(560px, calc(100vh - 170px), 820px); }
  .signin { padding: 80px 110px 64px; }
  h1 { font-size: 62px; }
  .card { width: 400px; }
  .card-title { font-size: 38px; }
}

/* small laptops */
@media (max-width: 1180px) {
  .signin { padding: 56px 56px 48px; }
  .sky { padding: 36px; }
  .card { width: min(100%, 310px); }
  .card-title { font-size: 30px; }
  .sun { width: 150px; height: 150px; top: -55px; right: -55px; }
}

/* tablets and phones: one column, the sky panel is dropped */
@media (max-width: 980px) {
  body { padding: 0 24px; --maxw: 520px; }
  .frame { grid-template-columns: 1fr; height: auto; }
  .sky { display: none; }
  .signin { padding: 44px 40px 40px; }
  h1 { font-size: 44px; margin-bottom: 28px; }
  .foot { justify-content: center; }
}
@media (max-width: 560px) {
  body { padding: 0 16px; justify-content: flex-start; }
  .top { padding: 20px 4px 14px; }
  .signin { padding: 32px 24px 30px; }
  h1 { font-size: 38px; margin-bottom: 24px; }
  .suffix { font-size: 15px; }
  .field input { font-size: 16px; }
  .doc { padding: 36px 26px; }
  .doc h1 { font-size: 34px; }
}
@media (max-height: 640px) and (min-width: 981px) {
  body { justify-content: flex-start; }
}
