:root {
  --bg: #071019;
  --bg-soft: #0e1a29;
  --panel: rgba(10, 20, 32, 0.84);
  --panel-edge: rgba(255, 255, 255, 0.15);
  --text: #e8f1ff;
  --muted: #a7bad6;
  --accent: #3ee8c8;
  --accent-2: #ffb74d;
  --danger: #ff7a7a;
  --shadow: 0 20px 55px rgba(1, 9, 18, 0.45);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Space Grotesk", "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(1000px 700px at 15% 10%, #103252 0%, transparent 65%),
    radial-gradient(900px 650px at 85% 85%, #3a1d3f 0%, transparent 60%),
    linear-gradient(160deg, #060d15 0%, #0a1420 45%, #0f1524 100%);
  overflow-x: hidden;
}

.scene {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.65;
  animation: float 10s ease-in-out infinite;
}

.blob-a {
  width: 340px;
  height: 340px;
  top: -80px;
  right: 8%;
  background: #17b79a;
}

.blob-b {
  width: 420px;
  height: 420px;
  left: -100px;
  bottom: -120px;
  background: #ff9f45;
  animation-delay: -3s;
}

.grid-glow {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: radial-gradient(circle at center, black 28%, transparent 78%);
  opacity: 0.27;
}

.layout {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 44px;
  align-items: center;
  padding: clamp(22px, 5vw, 64px);
}

.intro {
  max-width: 680px;
  animation: rise 550ms ease-out;
}

.eyebrow {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 14px;
  font-size: 0.8rem;
}

h1 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: clamp(2rem, 4.4vw, 4.5rem);
  line-height: 1.03;
  text-wrap: balance;
}

.lead {
  margin-top: 20px;
  color: var(--muted);
  font-size: clamp(1rem, 1.8vw, 1.25rem);
  line-height: 1.6;
}

.feature-list {
  margin-top: 24px;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.feature-list li {
  background: rgba(11, 25, 40, 0.62);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 12px 14px;
  color: #d7e6ff;
  transform: translateX(0);
  transition: transform 180ms ease, border-color 180ms ease;
}

.feature-list li:hover {
  transform: translateX(6px);
  border-color: rgba(62, 232, 200, 0.45);
}

.card-wrap {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  animation: rise 700ms ease-out;
}

.auth-switch {
  display: inline-flex;
  width: min(480px, 100%);
  background: rgba(10, 20, 32, 0.68);
  border: 1px solid var(--panel-edge);
  border-radius: 14px;
  padding: 4px;
  gap: 4px;
}

.switch-btn {
  flex: 1;
  border: 0;
  border-radius: 10px;
  padding: 10px;
  font: inherit;
  font-weight: 600;
  color: var(--muted);
  background: transparent;
  cursor: pointer;
}

.switch-btn.active {
  color: #03211b;
  background: linear-gradient(135deg, #3ee8c8 0%, #74f0d7 55%, #9af5e4 100%);
}

.login-card {
  width: min(480px, 100%);
  background: var(--panel);
  border: 1px solid var(--panel-edge);
  border-radius: 20px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
  padding: clamp(20px, 3vw, 34px);
}

.login-card h2 {
  margin: 0;
  font-family: "Fraunces", Georgia, serif;
  font-size: 2rem;
}

.card-sub {
  color: var(--muted);
  margin: 10px 0 22px;
}

label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #deecff;
}

input[type="email"],
input[type="password"],
input[type="text"] {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: rgba(5, 13, 23, 0.7);
  color: var(--text);
  border-radius: 11px;
  padding: 12px 14px;
  margin-bottom: 16px;
  font: inherit;
  font-size: 0.95rem;
}

input[type="email"]:focus,
input[type="password"]:focus,
input[type="text"]:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(62, 232, 200, 0.2);
}

input::placeholder {
  color: rgba(167, 186, 214, 0.6);
}

.row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
}

.check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--muted);
  font-weight: 500;
}

.check input {
  accent-color: var(--accent);
}

.text-link {
  color: var(--accent-2);
  text-decoration: none;
  font-weight: 600;
}

.text-link:hover {
  text-decoration: underline;
}

.btn-primary {
  width: 100%;
  border: 0;
  border-radius: 12px;
  padding: 13px 16px;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  color: #03211b;
  background: linear-gradient(135deg, #3ee8c8 0%, #74f0d7 55%, #9af5e4 100%);
  transition: transform 160ms ease, filter 160ms ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  filter: saturate(1.07);
}

.btn-primary:active {
  transform: translateY(0);
}

.helper {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 0.88rem;
}

.status {
  margin-top: 14px;
  min-height: 1.2em;
  color: var(--muted);
}

.status.error {
  color: var(--danger);
}

.status.success {
  color: var(--accent);
}

.hidden {
  display: none;
}

@keyframes float {
  0% { transform: translateY(0px) scale(1); }
  50% { transform: translateY(18px) scale(1.04); }
  100% { transform: translateY(0px) scale(1); }
}

@keyframes rise {
  from {
    transform: translateY(14px);
    opacity: 0;
  }
  to {
    transform: translateY(0);
    opacity: 1;
  }
}

@media (max-width: 930px) {
  .layout {
    grid-template-columns: 1fr;
    gap: 22px;
    padding-top: 32px;
    padding-bottom: 36px;
  }

  .intro {
    max-width: 100%;
  }

  .feature-list {
    grid-template-columns: 1fr;
  }
}
