:root {
  color-scheme: dark;
  --bg: #07111f;
  --surface: rgba(12, 23, 38, 0.78);
  --surface-strong: rgba(18, 30, 48, 0.96);
  --text: #edf4ff;
  --muted: #95a6bc;
  --line: rgba(173, 198, 227, 0.12);
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.45);
  --button-bg: #edf4ff;
  --button-text: #08111d;
  --ghost-bg: rgba(237, 244, 255, 0.08);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Plus Jakarta Sans", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top left, rgba(75, 157, 255, 0.22), transparent 28%),
    radial-gradient(circle at 85% 15%, rgba(17, 227, 177, 0.14), transparent 20%),
    radial-gradient(circle at bottom right, rgba(255, 122, 89, 0.16), transparent 26%),
    linear-gradient(135deg, #050b14 0%, #0a1422 50%, #0d1729 100%);
}

.page-shell,
.login-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 32px 0 48px;
}

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

.login-card,
.hero,
.card {
  backdrop-filter: blur(18px);
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.login-card {
  width: min(480px, 100%);
  border-radius: 28px;
  padding: 32px;
}

.hero {
  border-radius: 32px;
  padding: 32px;
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: end;
}

.greeting {
  margin: 0 0 14px;
  color: #8ec5ff;
  font-size: clamp(1rem, 2vw, 1.25rem);
  font-weight: 700;
  letter-spacing: 0.01em;
}

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

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 5vw, 4.4rem);
  line-height: 0.95;
}

.lede {
  margin: 16px 0 0;
  max-width: 650px;
  color: var(--muted);
  font-size: 1.05rem;
  line-height: 1.6;
}

.source-note {
  margin: 18px 0 0;
  color: #7f92a8;
  font-size: 0.9rem;
}

.hero-meta {
  display: flex;
  align-items: center;
  gap: 16px;
}

.metric {
  min-width: 150px;
  padding: 18px 20px;
  border-radius: 22px;
  background: var(--surface-strong);
  border: 1px solid var(--line);
}

.metric span {
  display: block;
  font-size: 2rem;
  font-weight: 800;
}

.metric small {
  color: var(--muted);
}

.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 24px;
}

.card {
  border-radius: 28px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 240px;
  transform: translateY(0);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.card:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 86px rgba(0, 0, 0, 0.55);
}

.card-top,
.card-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}

.card-body h2 {
  margin: 0;
  font-size: 1.5rem;
}

.card-body p,
.card-bottom span,
.size {
  color: var(--muted);
}

.chip {
  margin: 0;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.82rem;
  font-weight: 700;
}

a,
button {
  border: 0;
  cursor: pointer;
  text-decoration: none;
  font: inherit;
}

.card-bottom a,
button,
.ghost-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 12px 18px;
  font-weight: 700;
}

.card-bottom a,
button {
  color: var(--button-text);
  background: var(--button-bg);
}

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

.login-form {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

label {
  font-size: 0.92rem;
  color: var(--muted);
}

input {
  width: 100%;
  border: 1px solid var(--line);
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  border-radius: 18px;
  padding: 16px 18px;
  font: inherit;
}

input::placeholder {
  color: #6f8298;
}

.error {
  margin: 0;
  color: #ff8c79;
  font-weight: 600;
}

.sunrise {
  background: linear-gradient(180deg, rgba(17, 31, 48, 0.88), rgba(102, 58, 38, 0.8));
}

.mint {
  background: linear-gradient(180deg, rgba(15, 29, 45, 0.88), rgba(25, 92, 78, 0.78));
}

.ocean {
  background: linear-gradient(180deg, rgba(14, 27, 43, 0.88), rgba(30, 74, 118, 0.8));
}

.gold {
  background: linear-gradient(180deg, rgba(17, 29, 45, 0.88), rgba(115, 86, 27, 0.82));
}

.ember {
  background: linear-gradient(180deg, rgba(16, 27, 43, 0.88), rgba(125, 55, 55, 0.82));
}

.sky {
  background: linear-gradient(180deg, rgba(17, 29, 44, 0.88), rgba(54, 87, 122, 0.82));
}

@media (max-width: 720px) {
  .hero {
    flex-direction: column;
    align-items: start;
  }

  .hero-meta,
  .card-top,
  .card-bottom {
    width: 100%;
    flex-direction: column;
    align-items: start;
  }
}
