/* ==========================================================================
   LOGIN & AUTH STYLES (login.css)
   ========================================================================== */

.stage {
  min-height: calc(100vh - 64px);
  display: grid;
  place-items: center;
  padding: 48px 20px 68px;
  position: relative;
  isolation: isolate;
}

.stage:before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(circle at 50% 33%, color-mix(in srgb, var(--lime) 6%, transparent), transparent 27%),
    linear-gradient(rgba(198, 242, 93, .022) 1px, transparent 1px),
    linear-gradient(90deg, rgba(198, 242, 93, .022) 1px, transparent 1px);
  background-size: auto, 42px 42px, 42px 42px;
}

.route {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: 0.6;
}

.route svg {
  width: 100%;
  height: 100%;
}

.route path {
  fill: none;
  stroke: color-mix(in srgb, var(--lime) 13%, transparent);
  stroke-width: 2;
}

.route circle {
  fill: var(--paper);
  stroke: color-mix(in srgb, var(--lime) 18%, transparent);
  stroke-width: 2;
}

.route .signal {
  fill: var(--lime);
  stroke: none;
}

.shell {
  width: min(430px, 100%);
}

.screen {
  display: none;
  animation: enter 0.2s ease both;
}

.screen.active {
  display: block;
}

@keyframes enter {
  from {
    opacity: 0;
    transform: translateY(7px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.title {
  text-align: center;
  font-size: 34px;
  line-height: 40px;
  letter-spacing: -0.05em;
  margin: 0 0 9px;
}

.sub {
  text-align: center;
  max-width: 370px;
  margin: 0 auto 26px;
  color: var(--muted);
  font-size: 13px;
  line-height: 20px;
}

.primary {
  width: 100%;
  height: 48px;
  margin-top: 14px;
}

.link {
  border: 0;
  background: none;
  color: var(--muted);
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 2px;
  padding: 4px;
  cursor: pointer;
}

.back {
  display: block;
  margin: 14px auto 0;
}

.stepnote {
  text-align: center;
  font: 500 9.5px/1 var(--mono);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}

.pill {
  text-align: center;
  margin-bottom: 18px;
}

.pill span {
  font: 500 10.5px/1 var(--mono);
  padding: 7px 11px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--surface);
  color: var(--muted);
}

.method {
  width: 100%;
  min-height: 66px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 14px;
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  margin-top: 10px;
  cursor: pointer;
  transition: transform 0.1s ease, border-color 0.15s ease;
}

.method:hover {
  border-color: var(--petrol);
  transform: translateY(-1px);
}

.method .mi {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: var(--surface2);
  display: grid;
  place-items: center;
  font: 600 12px/1 var(--mono);
}

.method.fast .mi {
  background: var(--lime);
  color: #13231E;
}

.method b {
  display: block;
  font-size: 13px;
}

.method small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 2px;
}

.arrow {
  color: var(--muted);
}

.code-input {
  text-align: center !important;
  font: 600 24px/1 var(--mono) !important;
  letter-spacing: 0.33em;
  padding-left: calc(14px + 0.33em) !important;
}

.resend {
  text-align: center;
  font-size: 11px;
  color: var(--muted);
  margin-top: 14px;
}

.device {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface2);
}

.di {
  width: 42px;
  height: 42px;
  border-radius: 11px;
  background: var(--surface);
  display: grid;
  place-items: center;
  font: 600 11px/1 var(--mono);
}

.device b {
  font-size: 12px;
}

.device small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  line-height: 15px;
  margin-top: 2px;
}

.workspace {
  width: 100%;
  min-height: 64px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: var(--surface);
  color: var(--ink);
  padding: 0 14px;
  display: grid;
  grid-template-columns: 36px 1fr auto;
  gap: 11px;
  align-items: center;
  text-align: left;
  margin-top: 10px;
  cursor: pointer;
}

.wm {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--lime);
  color: #13231E;
  display: grid;
  place-items: center;
  font: 700 11px/1 var(--mono);
}

.workspace b {
  font-size: 12px;
}

.workspace small {
  display: block;
  color: var(--muted);
  font-size: 10px;
  margin-top: 2px;
}

.notice {
  text-align: center;
  color: var(--muted);
  font-size: 10.5px;
  line-height: 15px;
  margin-top: 12px;
}

.error {
  display: none;
  color: var(--problem);
  font-size: 11px;
  margin-top: 8px;
}

.error.show {
  display: block;
}
