:root {
  color-scheme: dark;
  --ink: #f8fafc;
  --muted: #94a3b8;
  --card: rgba(9, 16, 30, 0.74);
  --line: rgba(226, 232, 240, 0.16);
  --accent: #7dd3fc;
  --accent-strong: #38bdf8;
  --success: #86efac;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  font-family: ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--ink);
  background: #070d18;
  overflow-x: hidden;
}

.backdrop {
  position: fixed;
  inset: 0;
  background-image:
    linear-gradient(180deg, rgba(7, 13, 24, 0.44), rgba(7, 13, 24, 0.86)),
    url("/alps.jpg");
  background-size: cover;
  background-position: center;
  transform: scale(1.02);
  z-index: -1;
}

.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem clamp(1rem, 4vw, 3rem);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 700;
  letter-spacing: 0.14em;
  font-size: 0.78rem;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  border: 1px solid rgba(255, 255, 255, 0.55);
  border-radius: 0.7rem;
  backdrop-filter: blur(8px);
}

.env {
  font-size: 0.7rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(226, 232, 240, 0.72);
}

.stage {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 6rem clamp(1rem, 4vw, 3rem) 5rem;
}

.card {
  width: min(100%, 34rem);
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line);
  border-radius: 1.5rem;
  background: var(--card);
  backdrop-filter: blur(22px) saturate(1.2);
  box-shadow:
    0 30px 80px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  animation: rise 420ms ease-out both;
}

@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.eyebrow {
  margin: 0 0 0.6rem;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent);
}

h1 {
  margin: 0;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.lede {
  margin: 1rem 0 1.75rem;
  color: #cbd5e1;
  line-height: 1.7;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  padding: 0.8rem 1.2rem;
  border-radius: 0.85rem;
  border: 1px solid transparent;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
  transition:
    transform 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

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

.button.primary {
  width: 100%;
  color: #04111f;
  background: linear-gradient(135deg, #bae6fd, var(--accent-strong));
  box-shadow: 0 12px 30px rgba(56, 189, 248, 0.25);
}

.button.secondary {
  color: var(--ink);
  background: rgba(15, 23, 42, 0.55);
  border-color: var(--line);
}

.fineprint {
  margin: 1rem 0 0;
  font-size: 0.72rem;
  color: var(--muted);
}

.account {
  width: min(100%, 46rem);
}

.identity {
  display: flex;
  align-items: center;
  gap: 1.1rem;
}

.identity-copy {
  min-width: 0;
}

.identity h1 {
  font-size: clamp(1.5rem, 3vw, 2.1rem);
}

.avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 5rem;
  height: 5rem;
  border-radius: 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: linear-gradient(135deg, rgba(125, 211, 252, 0.24), rgba(15, 23, 42, 0.6));
  color: var(--ink);
  font-size: 1.35rem;
  font-weight: 700;
  overflow: hidden;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.muted {
  margin: 0.35rem 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.8rem;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.28rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  color: #dbeafe;
  background: rgba(15, 23, 42, 0.5);
}

.badge.success {
  color: #dcfce7;
  border-color: rgba(134, 239, 172, 0.35);
  background: rgba(22, 101, 52, 0.35);
}

.badge.accent {
  color: #e0f2fe;
  border-color: rgba(125, 211, 252, 0.35);
  background: rgba(8, 47, 73, 0.55);
}

.details {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  margin: 1.75rem 0;
  padding: 0;
}

.details div {
  min-width: 0;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(226, 232, 240, 0.1);
  border-radius: 0.9rem;
  background: rgba(2, 6, 23, 0.28);
}

.details dt {
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}

.details dd {
  margin: 0.35rem 0 0;
  font-size: 0.88rem;
  overflow-wrap: anywhere;
}

.account-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
}

.account-actions .fineprint {
  margin: 0;
}

.alert {
  position: fixed;
  left: 50%;
  bottom: 1.5rem;
  transform: translateX(-50%);
  width: min(calc(100% - 2rem), 34rem);
  margin: 0;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(248, 113, 113, 0.4);
  border-radius: 0.8rem;
  background: rgba(127, 29, 29, 0.82);
  color: #fee2e2;
  font-size: 0.85rem;
  text-align: center;
  backdrop-filter: blur(12px);
}

.footer {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem clamp(1rem, 4vw, 3rem);
  font-size: 0.68rem;
  color: rgba(226, 232, 240, 0.62);
}

[hidden] {
  display: none !important;
}

@media (max-width: 640px) {
  .topbar {
    padding-top: 1rem;
  }

  .stage {
    padding-top: 5rem;
  }

  .identity {
    align-items: flex-start;
  }

  .avatar {
    width: 4rem;
    height: 4rem;
    border-radius: 1rem;
  }

  .details {
    grid-template-columns: 1fr;
  }

  .account-actions .button {
    width: 100%;
  }

  .footer {
    position: static;
    flex-direction: column;
    align-items: center;
    padding-bottom: 1.5rem;
  }
}
