.device-page {
  min-height: 100vh;
  background:
    radial-gradient(35rem 24rem at 75% 5%, rgba(178, 58, 42, 0.09), transparent 68%),
    var(--paper);
}

.device-header {
  max-width: 66rem;
  margin: 0 auto;
  padding: 1.2rem;
}

.device-brand {
  width: fit-content;
  color: var(--ink);
  text-decoration: none;
}

.device-shell {
  display: grid;
  min-height: calc(100vh - 5rem);
  place-items: center;
  padding: 1.5rem 1.2rem 5rem;
}

.device-card {
  width: min(100%, 35rem);
  padding: clamp(1.5rem, 5vw, 2.8rem);
  border: 1px solid var(--line);
  border-radius: 0.8rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 1.3rem 4rem rgba(25, 26, 28, 0.09);
}

.device-card h1 {
  margin-bottom: 1rem;
  font-size: clamp(2rem, 7vw, 3rem);
}

.device-intro,
.device-note {
  color: var(--ink-soft);
}

#authorize-form {
  display: grid;
  gap: 0.7rem;
  margin-top: 1.7rem;
}

#email-field {
  display: grid;
  gap: 0.7rem;
  margin-top: 0.5rem;
}

#authorize-form label {
  font-weight: 700;
}

#authorize-form input {
  width: 100%;
  border: 1px solid #aaa49a;
  border-radius: 0.4rem;
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 0.78rem 0.9rem;
}

#user-code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 1.2rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

#authorize-form input:focus-visible {
  outline: 3px solid rgba(178, 58, 42, 0.35);
  border-color: var(--seal);
}

.device-submit {
  margin-top: 0.8rem;
  cursor: pointer;
  font: inherit;
}

.device-submit:disabled {
  cursor: wait;
  opacity: 0.65;
}

.device-status {
  margin-top: 1.4rem;
  padding: 0.9rem 1rem;
  border-left: 4px solid var(--seal);
  border-radius: 0 0.4rem 0.4rem 0;
  background: rgba(178, 58, 42, 0.07);
}

.device-status[data-kind="success"] {
  border-left-color: var(--green-belt);
  background: rgba(74, 124, 89, 0.1);
}

.device-note {
  margin-top: 1.4rem;
  font-size: 0.9rem;
}
