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

* {
  box-sizing: border-box;
}

body {
  min-height: 100vh;
  margin: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: #101416;
}

.device-card {
  width: min(100%, 32rem);
  padding: clamp(1.5rem, 6vw, 2.5rem);
  border: 1px solid #334047;
  border-radius: 1.25rem;
  background: #1c262b;
  box-shadow: 0 1rem 3rem rgb(0 0 0 / 25%);
}

.device-mark {
  margin: 0 0 0.5rem;
  color: #58cc02;
  font-size: 2.25rem;
}

h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.75rem, 8vw, 2.5rem);
  line-height: 1.1;
}

p {
  color: #c6d0d5;
  line-height: 1.5;
}

.device-code {
  display: block;
  margin: 1.25rem 0;
  color: #f4f7f8;
  font: 700 clamp(1.5rem, 9vw, 2.25rem)/1 ui-monospace, SFMono-Regular, Menlo, monospace;
  letter-spacing: 0.14em;
}

.device-button {
  display: inline-flex;
  min-height: 3rem;
  align-items: center;
  justify-content: center;
  width: 100%;
  border: 0;
  border-radius: 0.8rem;
  padding: 0.75rem 1rem;
  background: #58cc02;
  color: #0c1508;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 0.25rem 0 #3a9400;
}

/* Shown because target="_blank" is unreliable from an installed app: iOS
   standalone mode silently swallows it, stranding the user on a pending code
   they have no way to approve. The address must therefore also be readable
   and selectable so it can be opened in a real browser by hand. */
.device-fallback {
  margin-bottom: 0.5rem;
  font-size: 0.9rem;
}

.device-url {
  display: block;
  margin-bottom: 1.25rem;
  padding: 0.6rem 0.75rem;
  border: 1px solid #334047;
  border-radius: 0.6rem;
  background: #101416;
  color: #f4f7f8;
  font: 0.85rem/1.5 ui-monospace, SFMono-Regular, Menlo, monospace;
  overflow-wrap: anywhere;
  user-select: all;
  -webkit-user-select: all;
}

.device-note {
  margin-bottom: 0;
  font-size: 0.9rem;
}
