:root {
  --bg: #eef3fa;
  --bg-2: #e8eff8;
  --ink: #101826;
  --muted: #607287;
  --line: rgba(16, 38, 68, 0.13);
  --surface: rgba(255, 255, 255, 0.78);
  --accent: #0a84ff;
  --ok: #007f67;
  --danger: #c9332b;
  --shadow: 0 24px 56px rgba(38, 66, 104, 0.16);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at 20% 10%, #fff 0%, var(--bg) 44%, var(--bg-2) 100%);
  font-family: "Manrope", "Avenir Next", sans-serif;
  color: var(--ink);
}

.ambient {
  position: fixed;
  border-radius: 50%;
  filter: blur(72px);
  z-index: -1;
  opacity: 0.55;
}

.ambient-1 {
  width: 320px;
  height: 320px;
  top: -80px;
  right: -80px;
  background: rgba(10, 132, 255, 0.25);
}

.ambient-2 {
  width: 290px;
  height: 290px;
  left: -90px;
  bottom: -90px;
  background: rgba(0, 184, 148, 0.18);
}

.top-nav {
  width: min(980px, calc(100% - 24px));
  margin: 16px auto 0;
}

.home-link {
  text-decoration: none;
  color: #2e486c;
  font-weight: 700;
  font-size: 0.9rem;
}

.auth-shell {
  min-height: calc(100vh - 50px);
  display: grid;
  place-items: center;
  padding: 20px;
}

.auth-card {
  width: min(560px, 100%);
  border-radius: 28px;
  padding: clamp(20px, 5vw, 36px);
  background: var(--surface);
  border: 1px solid rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px) saturate(145%);
  animation: rise 0.55s ease;
}

.eyebrow {
  margin: 0 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-size: 0.72rem;
  color: #4b6486;
  font-weight: 700;
}

h1 {
  margin: 0;
  font-family: "Instrument Serif", "Iowan Old Style", serif;
  font-size: clamp(2.2rem, 8vw, 3.8rem);
  letter-spacing: -0.03em;
  line-height: 0.96;
}

.lead {
  margin: 10px 0 0;
  color: var(--muted);
}

.auth-grid {
  margin-top: 16px;
  display: grid;
  gap: 10px;
}

label {
  display: grid;
  gap: 6px;
  font-size: 0.84rem;
  color: #556b86;
  font-weight: 700;
}

input {
  border-radius: 12px;
  border: 1px solid var(--line);
  padding: 11px 12px;
  background: rgba(255, 255, 255, 0.96);
  color: #122136;
  font: inherit;
}

input:focus {
  outline: none;
  border-color: rgba(10, 132, 255, 0.45);
  box-shadow: 0 0 0 3px rgba(10, 132, 255, 0.12);
}

.action-row {
  margin-top: 10px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.primary-btn,
.ghost-btn {
  border-radius: 999px;
  border: 1px solid transparent;
  padding: 9px 14px;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
  transition: transform 0.18s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(145deg, #0a84ff, #2a73ff);
}

.ghost-btn {
  color: #1c3d65;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.75);
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-1px);
}

.status {
  margin-top: 8px;
  min-height: 18px;
  color: var(--muted);
  font-size: 0.9rem;
}

.status.success {
  color: var(--ok);
}

.status.error {
  color: var(--danger);
}

.is-hidden {
  display: none;
}

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