:root {
  color-scheme: light;
  --bg: #0f172a;
  --card: rgba(255, 255, 255, 0.94);
  --text: #0f172a;
  --muted: #475569;
  --line: rgba(15, 23, 42, 0.08);
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --secondary: #eef2ff;
  --danger-bg: #fee2e2;
  --danger-text: #991b1b;
  --shadow: 0 24px 70px rgba(15, 23, 42, 0.28);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at top left, rgba(37, 99, 235, 0.28), transparent 30%),
    radial-gradient(circle at bottom right, rgba(14, 165, 233, 0.24), transparent 32%),
    var(--bg);
  color: var(--text);
}

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

.card {
  width: min(100%, 460px);
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 32px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(10px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(135deg, #2563eb, #0ea5e9);
  color: white;
  font-weight: 700;
  font-size: 1.1rem;
}

.eyebrow {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: 1.9rem;
}

.muted {
  color: var(--muted);
  line-height: 1.6;
}

.facts {
  margin: 20px 0 28px;
  padding-left: 18px;
  color: var(--muted);
}

.facts li + li {
  margin-top: 8px;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 46px;
  border: none;
  border-radius: 12px;
  padding: 0 18px;
  background: var(--primary);
  color: white;
  font-size: 0.98rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 120ms ease, transform 120ms ease;
}

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

.button-secondary {
  background: var(--secondary);
  color: var(--text);
  border: 1px solid var(--line);
}

.button-secondary:hover {
  background: #dbeafe;
}

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

.actions form {
  margin: 0;
}

.alert {
  margin: 16px 0 20px;
  border-radius: 12px;
  padding: 12px 14px;
  font-size: 0.95rem;
}

.alert-error {
  background: var(--danger-bg);
  color: var(--danger-text);
}

.profile {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(248, 250, 252, 0.92);
}

.avatar,
.avatar-fallback {
  width: 52px;
  height: 52px;
  border-radius: 999px;
  object-fit: cover;
}

.avatar-fallback {
  display: inline-grid;
  place-items: center;
  background: linear-gradient(135deg, #2563eb, #7c3aed);
  color: white;
  font-weight: 700;
}

.name {
  margin: 0 0 4px;
  font-weight: 700;
}

.email {
  margin: 0;
  color: var(--muted);
}

@media (max-width: 520px) {
  .card {
    padding: 24px;
    border-radius: 20px;
  }
}
