:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #f1f3f5;
  background: #090b0e;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
}
* { box-sizing: border-box; }

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  background: #090b0e;
}

button,
input { font: inherit; }

a { color: inherit; }

.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.panel {
  width: min(100%, 430px);
  padding: 36px;
  border: 1px solid #23272e;
  border-radius: 4px;
  background: #101318;
  box-shadow: 0 24px 64px rgb(0 0 0 / 34%);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 38px;
  color: #e7eaed;
  text-decoration: none;
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.2em;
}

.brand__mark {
  display: grid;
  width: 23px;
  height: 23px;
  place-items: center;
  border: 1px solid #404650;
  color: #aeb5be;
  font-size: 10px;
  letter-spacing: 0;
}

.eyebrow {
  margin-bottom: 10px;
  color: #727b87;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1 {
  margin: 0 0 11px;
  font-size: clamp(27px, 7vw, 31px);
  font-weight: 620;
  line-height: 1.12;
  letter-spacing: -0.035em;
}

.lede {
  margin: 0;
  color: #9aa2ad;
  font-size: 14px;
  line-height: 1.6;
}

.stack {
  display: grid;
  gap: 15px;
  margin-top: 28px;
}

label {
  display: grid;
  gap: 8px;
  color: #c7ccd2;
  font-size: 12px;
  font-weight: 560;
  letter-spacing: 0.01em;
}

input {
  width: 100%;
  height: 44px;
  padding: 0 12px;
  border: 1px solid #2c323b;
  border-radius: 3px;
  outline: none;
  background: #0b0e12;
  color: #f1f3f5;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

input:hover { border-color: #3b424d; }

input:focus {
  border-color: #737e8c;
  box-shadow: 0 0 0 3px rgb(120 132 147 / 13%);
}

.button {
  display: inline-grid;
  min-height: 44px;
  place-items: center;
  padding: 0 16px;
  border: 1px solid #d9dde1;
  border-radius: 3px;
  background: #eef0f2;
  color: #0b0d10;
  font-size: 13px;
  font-weight: 680;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition: background 140ms ease, border-color 140ms ease, opacity 140ms ease;
}

.button:hover:not(:disabled) { background: #fff; }

.button:focus-visible,
a:focus-visible {
  outline: 2px solid #98a4b3;
  outline-offset: 3px;
}

.button:disabled {
  opacity: 0.54;
  cursor: wait;
}

.button--secondary {
  width: 100%;
  border-color: #343b45;
  background: #171b21;
  color: #d5d9de;
}

.button--secondary:hover:not(:disabled) {
  border-color: #4b5562;
  background: #1d2229;
}

.button--link { width: 100%; }

.links {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  margin-top: 19px;
  color: #9aa3ae;
  font-size: 12px;
}

.links a { text-underline-offset: 3px; }
.links a:hover { color: #d9dde2; }

.notice {
  padding: 11px 12px;
  border: 1px solid #2c333c;
  border-radius: 3px;
  background: #0d1014;
  color: #aeb5be;
  font-size: 12px;
  line-height: 1.5;
}

.notice--error {
  border-color: #5b3637;
  background: #191112;
  color: #e0b9ba;
}

.hint,
.footnote {
  margin: 0;
  color: #747d89;
  font-size: 11px;
  line-height: 1.55;
}

.footnote { margin-top: 22px; }
.actions { margin-top: 25px; }

.identity {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-top: 27px;
  padding: 15px 0;
  border-top: 1px solid #242931;
  border-bottom: 1px solid #242931;
}

.identity div { min-width: 0; }

.identity__label {
  display: block;
  margin-bottom: 4px;
  color: #737c88;
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.identity strong {
  display: block;
  overflow: hidden;
  color: #dce0e4;
  font-size: 13px;
  font-weight: 570;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.status-dot {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: #79978a;
  box-shadow: 0 0 0 4px rgb(121 151 138 / 10%);
}

.progress {
  width: 100%;
  height: 1px;
  margin-top: 28px;
  overflow: hidden;
  background: #252b33;
}

.progress::after {
  display: block;
  width: 38%;
  height: 100%;
  background: #929ca8;
  content: '';
  animation: progress 1.15s ease-in-out infinite;
}

@keyframes progress {
  from { transform: translateX(-110%); }
  to { transform: translateX(280%); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (max-width: 520px) {
  .shell { padding: 0; }

  .panel {
    min-height: 100vh;
    width: 100%;
    padding: 30px 22px;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
}
