:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont,
    "Segoe UI", sans-serif;
  background: #071114;
  color: #e9f2f3;
}

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(28, 122, 129, 0.22), transparent 40%),
    linear-gradient(145deg, #071114, #0b1c20);
}

button,
a.button {
  font: inherit;
}

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

.pair-card {
  width: min(480px, 100%);
  padding: clamp(28px, 7vw, 48px);
  border: 1px solid rgba(139, 215, 217, 0.2);
  border-radius: 24px;
  background: rgba(8, 25, 29, 0.92);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.34);
}

.logo {
  display: block;
  width: 72px;
  height: 72px;
  margin-bottom: 22px;
  border-radius: 18px;
}

.eyebrow {
  margin: 0 0 12px;
  color: #77d4d5;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(1.8rem, 6vw, 2.4rem);
  letter-spacing: -0.04em;
}

.summary {
  margin: 18px 0 0;
  color: #b9cbce;
  line-height: 1.55;
}

.device {
  margin-top: 22px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(116, 211, 212, 0.08);
  border: 1px solid rgba(116, 211, 212, 0.18);
}

.device-label {
  margin: 0;
  color: #77d4d5;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.device-name {
  margin: 6px 0 0;
  font-size: 1.15rem;
  font-weight: 700;
}

.code-field {
  display: grid;
  gap: 8px;
  margin-top: 22px;
  color: #9bb0b4;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.code-field input {
  width: 100%;
  min-height: 56px;
  padding: 12px 14px;
  border: 1px solid rgba(139, 215, 217, 0.28);
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.22);
  color: #e9f2f3;
  font-size: 1.45rem;
  font-weight: 750;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.code-field input:focus {
  outline: 2px solid rgba(116, 211, 212, 0.55);
  outline-offset: 1px;
}

.notice {
  margin-top: 18px;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(116, 211, 212, 0.12);
  color: #d7ecec;
  line-height: 1.45;
}

.notice.error {
  background: rgba(255, 120, 120, 0.14);
  color: #ffc9c9;
}

.actions {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 12px 18px;
  border: 1px solid rgba(139, 215, 217, 0.28);
  border-radius: 12px;
  background: transparent;
  color: #e9f2f3;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.button.primary {
  border-color: transparent;
  background: #74d3d4;
  color: #061012;
}

.button.ghost {
  border-style: dashed;
}

.button:hover,
.button:focus-visible {
  filter: brightness(1.08);
}

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

.hint {
  margin: 18px 0 0;
  color: #8fa3a8;
  font-size: 0.92rem;
  line-height: 1.5;
}

[hidden] {
  display: none !important;
}
