:root {
  --bg-1: #0b1224;
  --bg-2: #131b3a;
  --bg-3: #1c1440;
  --glass: rgba(255, 255, 255, 0.06);
  --glass-strong: rgba(255, 255, 255, 0.1);
  --glass-border: rgba(255, 255, 255, 0.14);
  --text: #f2f4fb;
  --text-muted: #a6afd1;
  --accent: #7c9dff;
  --accent-strong: #5c7cf0;
  --accent-soft: rgba(124, 157, 255, 0.18);
  --success: #34d399;
  --danger: #ff8a8a;
  --radius: 18px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--font);
  line-height: 1.5;
  background:
    radial-gradient(1100px 600px at 12% -10%, rgba(124, 157, 255, 0.25), transparent 60%),
    radial-gradient(900px 500px at 100% 0%, rgba(140, 90, 255, 0.22), transparent 55%),
    radial-gradient(800px 500px at 50% 100%, rgba(52, 211, 153, 0.10), transparent 55%),
    linear-gradient(180deg, var(--bg-1), var(--bg-2) 45%, var(--bg-3));
  background-attachment: fixed;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---------- Top bar ---------- */
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  margin: 16px;
  border-radius: 16px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(18px) saturate(140%);
  -webkit-backdrop-filter: blur(18px) saturate(140%);
  position: sticky;
  top: 16px;
  z-index: 10;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--text);
}

.brand img { height: 32px; width: 32px; border-radius: 9px; object-fit: cover; }

.topbar nav a {
  color: var(--text-muted);
  margin-left: 20px;
  font-size: 0.95rem;
}
.topbar nav a:hover { color: var(--text); text-decoration: none; }

/* ---------- Hero ---------- */
.hero {
  padding: 64px 24px 40px;
  text-align: center;
}

.hero .eyebrow {
  display: inline-block;
  color: var(--text);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: 16px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  backdrop-filter: blur(12px);
}

.hero h1 {
  font-size: clamp(2rem, 4vw, 2.75rem);
  max-width: 720px;
  margin: 0 auto 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.hero-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px;
  margin: 28px auto 0;
  max-width: 780px;
  padding: 0;
}

.hero-features li {
  list-style: none;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: 999px;
  padding: 9px 18px;
  font-size: 0.9rem;
  color: var(--text-muted);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
}

.hero-cta {
  margin-top: 32px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.95rem;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.05s ease, background 0.15s ease, box-shadow 0.15s ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-strong));
  color: #06102b;
  box-shadow: 0 6px 20px rgba(124, 157, 255, 0.35);
}
.btn-primary:hover { box-shadow: 0 8px 26px rgba(124, 157, 255, 0.5); }

.btn-ghost {
  background: var(--glass);
  border-color: var(--glass-border);
  color: var(--text);
  backdrop-filter: blur(12px);
}
.btn-ghost:hover { background: var(--glass-strong); }

.btn-block { width: 100%; }

/* ---------- Auth card ---------- */
.auth-wrap {
  min-height: calc(100vh - 120px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  padding: 36px 32px;
  background: var(--glass);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.auth-card h1 {
  font-size: 1.5rem;
  margin: 4px 0 4px;
}

.auth-card .sub {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin-bottom: 24px;
}

.field { margin-bottom: 16px; }

.field label {
  display: block;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.field input {
  width: 100%;
  padding: 11px 14px;
  border-radius: 12px;
  border: 1px solid var(--glass-border);
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
  font-size: 0.95rem;
  backdrop-filter: blur(10px);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.field input::placeholder { color: rgba(166, 175, 209, 0.6); }

.field input:focus {
  outline: none;
  border-color: var(--accent);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 3px var(--accent-soft);
}

.field .hint {
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 5px;
}

.field-row { display: flex; align-items: center; justify-content: space-between; }

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  color: var(--text-muted);
  margin-bottom: 20px;
}
.checkbox-row input { margin-top: 3px; }

.form-error {
  background: rgba(255, 138, 138, 0.12);
  border: 1px solid rgba(255, 138, 138, 0.35);
  color: #ffd0d0;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.85rem;
  margin-bottom: 16px;
  display: none;
  backdrop-filter: blur(10px);
}
.form-error.visible { display: block; }

.auth-footer {
  text-align: center;
  margin-top: 20px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* ---------- Dashboard card ---------- */
.container .auth-card { margin: 0 auto; }

/* ---------- Footer ---------- */
.site-footer {
  padding: 28px 24px 40px;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.85rem;
}

@media (max-width: 480px) {
  .auth-card { padding: 26px 22px; }
  .topbar { margin: 10px; padding: 14px 16px; }
}
