:root {
  --navy: #1c2f53;
  --sky: #20b0ff;
  --blue: #2474bd;
  --blue-deep: #1c619e;
  --ink: #1f2937;
  --ink-soft: #4b5563;
  --line: #e6eaee;
  --field-line: #6b7682;
  --on-navy-soft: #c9d6ea;
  color-scheme: light;
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
  -webkit-text-size-adjust: 100%;
}
* { box-sizing: border-box; }
::selection { background: rgba(32, 176, 255, .32); }
body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  grid-template-columns: minmax(420px, 5fr) 7fr;
}

.brand {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(32px, 4.5vw, 56px);
  background: var(--navy);
  color: #fff;
}
.brand ::selection { background: var(--sky); color: #0d1a33; }
.logo { display: block; width: 148px; height: auto; }
.brand-copy { margin-top: clamp(56px, 16vh, 144px); }
h1 {
  max-width: 16ch;
  margin: 0;
  font-size: clamp(1.875rem, 1.2rem + 1.6vw, 2.625rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
  text-wrap: balance;
}
.lede {
  max-width: 34ch;
  margin: 18px 0 0;
  color: var(--on-navy-soft);
  font-size: 1.0625rem;
  text-wrap: pretty;
}
.orbit {
  position: absolute;
  z-index: -1;
  right: -460px;
  bottom: -540px;
  width: 840px;
  height: 840px;
  border: 1.5px solid rgba(32, 176, 255, .4);
  border-radius: 50%;
  animation: settle 1.8s cubic-bezier(.16, 1, .3, 1) both;
}
.orbit-dot {
  position: absolute;
  left: 173px;
  top: 69px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--sky);
}
@keyframes settle {
  from { transform: rotate(-26deg); }
  to { transform: rotate(0deg); }
}

.signin {
  display: grid;
  place-items: center;
  padding: 48px 24px;
}
.panel { width: 100%; max-width: 380px; }
h2 {
  margin: 0;
  font-size: 1.75rem;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.01em;
}
.hint { margin: 8px 0 32px; color: var(--ink-soft); font-size: .9375rem; }
form { display: flex; flex-direction: column; }
label { display: block; margin-bottom: 8px; font-size: .875rem; font-weight: 600; }
input, button { width: 100%; min-height: 48px; border-radius: 4px; font: inherit; }
input {
  padding: 11px 14px;
  border: 1px solid var(--field-line);
  background: #fff;
  color: var(--ink);
  caret-color: var(--blue);
  transition: border-color .15s ease-out;
}
input::placeholder { color: #6b7280; opacity: 1; }
input:hover { border-color: var(--ink-soft); }
input:focus-visible { border-color: var(--blue); outline: 2px solid var(--blue); outline-offset: 2px; }
input:-webkit-autofill { -webkit-text-fill-color: var(--ink); box-shadow: 0 0 0 1000px #fff inset; }
button {
  order: 2;
  margin-top: 16px;
  padding: 11px 16px;
  border: 0;
  background: var(--blue);
  color: #fff;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .15s ease-out, transform .08s ease-out;
}
button:hover { background: var(--blue-deep); }
button:active { transform: translateY(1px); }
button:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
button:disabled { background: var(--blue-deep); cursor: progress; transform: none; }
button:disabled::after {
  content: "";
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-left: 10px;
  vertical-align: -2px;
  border: 2px solid rgba(255, 255, 255, .45);
  border-top-color: #fff;
  border-radius: 50%;
  animation: spin .7s linear infinite;
}
@keyframes spin {
  to { transform: rotate(360deg); }
}
.message {
  order: 1;
  margin: 10px 0 0;
  padding: 10px 12px;
  border: 1px solid #f0c4bf;
  border-radius: 4px;
  background: #fdeeed;
  color: #8f2a22;
  font-size: .875rem;
  overflow-wrap: anywhere;
}
.message:empty { display: none; }
.preview {
  margin: 20px 0 0;
  padding: 8px 12px;
  border: 1px solid #f1d9a8;
  border-radius: 4px;
  background: #fdf4e6;
  color: #7a4e00;
  font-size: .8125rem;
}
.privacy {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 32px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  color: var(--ink-soft);
  font-size: .8125rem;
}
.privacy svg {
  flex: none;
  margin-top: 2px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 860px) {
  body { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .brand { padding: 24px 24px 28px; }
  .logo { width: 120px; }
  .brand-copy { margin-top: 28px; }
  h1 { max-width: none; font-size: 1.5rem; }
  .lede { margin-top: 8px; font-size: .9375rem; }
  .orbit { display: none; }
  .signin { place-items: start center; padding: 32px 24px 40px; }
}
@media (min-width: 861px) and (max-height: 620px) {
  .brand-copy { margin-top: 40px; }
  .orbit { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .orbit, button:disabled::after { animation: none; }
  input, button { transition: none; }
}
