:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #07090d;
  color: #f7f9fc;
  font-synthesis: none;
}

* { box-sizing: border-box; }

html { min-height: 100%; background: #07090d; }

body {
  min-height: 100svh;
  margin: 0;
  display: grid;
  grid-template-rows: 1fr auto;
  background:
    radial-gradient(circle at 50% 20%, rgb(34 120 255 / 18%), transparent 36rem),
    #07090d;
}

.card {
  width: min(100% - 2rem, 30rem);
  margin: auto;
  padding: max(2rem, env(safe-area-inset-top)) 0 2rem;
  text-align: center;
}

.profile-picture {
  display: block;
  width: 7.5rem;
  height: 7.5rem;
  margin: 0 auto 1.5rem;
  border: 3px solid rgb(255 255 255 / 90%);
  border-radius: 50%;
  object-fit: cover;
  background: #151a22;
  box-shadow: 0 1rem 3rem rgb(0 0 0 / 45%);
}

h1 {
  margin: 0;
  font-size: clamp(2rem, 10vw, 3rem);
  line-height: 1.05;
  letter-spacing: -0.04em;
}

.subtitle {
  margin: 0.75rem auto 2rem;
  color: #b7c0ce;
  font-size: 1.05rem;
  line-height: 1.55;
}

.primary-button {
  width: 100%;
  min-height: 3.75rem;
  border: 0;
  border-radius: 0.9rem;
  padding: 1rem 1.25rem;
  background: #1687ff;
  color: #fff;
  font: inherit;
  font-weight: 800;
  letter-spacing: 0.04em;
  cursor: pointer;
  box-shadow: 0 0.75rem 2rem rgb(22 135 255 / 28%);
}

.primary-button:focus-visible { outline: 3px solid #fff; outline-offset: 4px; }
.primary-button:active { transform: translateY(1px); }
.primary-button[aria-busy="true"] { cursor: wait; opacity: 0.85; }
.primary-button:disabled { cursor: not-allowed; opacity: 0.65; }

.error { min-height: 1.5rem; margin: 1rem 0 0; color: #ff9c9c; font-size: 0.9rem; }

footer {
  padding: 1.5rem max(1rem, env(safe-area-inset-right)) max(1.5rem, env(safe-area-inset-bottom));
  color: #7f8998;
  font-size: 0.8rem;
  text-align: center;
}

noscript { position: fixed; inset: auto 1rem 1rem; padding: 1rem; background: #621b1b; }

@media (min-width: 48rem) {
  .card { padding-block: 4rem; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; }
}
