:root {
  --bg: #f5f7fb;
  --bg2: #eef2ff;
  --card: rgba(255,255,255,0.92);
  --border: rgba(148, 163, 184, 0.35);
  --border-strong: rgba(148, 163, 184, 0.55);
  --text: #0f172a;
  --muted: #475569;
  --soft: #64748b;
  --accent: #16a34a;
  --accent2: #22c55e;
  --danger: #dc2626;
  --radius: 18px;
  --shadow: 0 20px 45px rgba(15, 23, 42, 0.10);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 0% 0%, rgba(34,197,94,0.18) 0, transparent 40%),
    radial-gradient(circle at 100% 0%, rgba(56,189,248,0.22) 0, transparent 42%),
    radial-gradient(circle at 100% 100%, rgba(99,102,241,0.14) 0, transparent 45%),
    linear-gradient(180deg, var(--bg), var(--bg2));
  min-height: 100vh;
}

a { color: #2563eb; text-decoration: none; }
a:hover { text-decoration: underline; }

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.shell {
  max-width: 980px;
  margin: 0 auto;
  padding: 22px 16px 46px;
  flex: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
  gap: 18px;
  align-items: center;
}

@media (max-width: 860px) {
  .shell {
    max-width: 520px;
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Brand header */
.brand-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--border);
  backdrop-filter: blur(12px);
  box-shadow: 0 14px 35px rgba(15,23,42,0.06);
  width: fit-content;
}

.brand-mark {
  width: 32px;
  height: 32px;
  border-radius: 11px;
  background: radial-gradient(circle at 30% 30%, #bbf7d0, #22c55e);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #052e16;
  box-shadow: 0 10px 20px rgba(34,197,94,0.25);
}

.brand-name {
  font-weight: 800;
  letter-spacing: 0.10em;
  font-size: 0.9rem;
  text-transform: uppercase;
}

/* Card */
.card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 22px 22px 18px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}

.card::before {
  content: "";
  position: absolute;
  inset: -120%;
  background: conic-gradient(
    from 120deg,
    rgba(34,197,94,0.10),
    rgba(56,189,248,0.10),
    rgba(99,102,241,0.08),
    rgba(34,197,94,0.12)
  );
  opacity: 0.45;
  pointer-events: none;
  animation: glowSpin 16s linear infinite;
}

@keyframes glowSpin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.card > * { position: relative; z-index: 1; }

.h-title {
  margin: 10px 0 6px;
  font-size: 1.75rem;
  letter-spacing: -0.02em;
}

.subtitle {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 0.95rem;
  line-height: 1.5;
}

/* Plan pill */
.plan-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(34,197,94,0.10);
  border: 1px solid rgba(34,197,94,0.22);
  color: #166534;
  font-size: 0.78rem;
  font-weight: 700;
}

.plan-pill small {
  font-weight: 600;
  color: #14532d;
  opacity: 0.9;
}

/* Form */
label {
  display: block;
  margin-top: 10px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}

.field-wrapper {
  margin-top: 6px;
  position: relative;
}

input[type="email"], input[type="password"] {
  width: 100%;
  padding: 11px 12px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.9);
  color: var(--text);
  font-size: 0.98rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

input:focus {
  outline: none;
  border-color: rgba(34,197,94,0.55);
  box-shadow: 0 0 0 1px rgba(34,197,94,0.45), 0 0 0 6px rgba(34,197,94,0.16);
}

.toggle-password {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  border: 1px solid rgba(148,163,184,0.4);
  background: rgba(255,255,255,0.8);
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 0.78rem;
  color: var(--soft);
  cursor: pointer;
}

.toggle-password:active { transform: translateY(-50%) scale(0.98); }

/* CTA */
.btn {
  margin-top: 16px;
  width: 100%;
  padding: 12px 16px;
  border-radius: 999px;
  border: none;
  background: radial-gradient(circle at top left, var(--accent2), var(--accent));
  color: #ecfdf5;
  font-weight: 800;
  font-size: 1rem;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(22,163,74,0.22);
  transition: transform 0.10s ease, box-shadow 0.12s ease, filter 0.12s ease;
}

.btn:hover { filter: brightness(1.02); }
.btn:active { transform: translateY(1px) scale(0.99); box-shadow: 0 10px 22px rgba(22,163,74,0.18); }

.micro {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--soft);
  line-height: 1.45;
}

/* Error */
.error {
  margin-top: 10px;
  font-size: 0.9rem;
  color: #7f1d1d;
  background: #fee2e2;
  border-radius: 12px;
  padding: 10px 12px;
  border: 1px solid #fecaca;
}

/* Pricing blocks */
.side {
  display: grid;
  gap: 12px;
}

.block {
  background: rgba(255,255,255,0.75);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px 16px 14px;
  box-shadow: 0 14px 35px rgba(15,23,42,0.06);
  backdrop-filter: blur(10px);
}

.block h3 {
  margin: 0 0 6px;
  font-size: 1.05rem;
}

.block p {
  margin: 0;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.bullets {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.55;
}

.bullets li { margin-bottom: 4px; }

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

.tag {
  font-size: 0.78rem;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255,255,255,0.8);
  color: var(--soft);
}

.tag strong { color: #166534; }

/* Footer */
footer {
  text-align: center;
  font-size: 0.78rem;
  color: var(--soft);
  padding: 0 16px 18px;
}