:root {
  --bg: #0f1115;
  --bg-alt: #161922;
  --card: #1b1f2a;
  --accent: #6c5ce7;
  --accent-2: #00d4ff;
  --text: #eef0f5;
  --text-dim: #9aa0ad;
  --success: #2ecc71;
  --error: #ff5c5c;
  --radius: 14px;
  --shadow: 0 10px 30px rgba(0,0,0,0.35);
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: radial-gradient(circle at top left, #1a1e2b, var(--bg) 60%);
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

a { color: inherit; text-decoration: none; }

/* ---- NAV ---- */
.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 40px;
  background: rgba(22, 25, 34, 0.85);
  backdrop-filter: blur(8px);
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.navbar .logo {
  font-weight: 700;
  font-size: 1.3rem;
  letter-spacing: 0.5px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.navbar nav a {
  margin-left: 28px;
  font-size: 0.95rem;
  color: var(--text-dim);
  transition: color 0.2s ease;
}

.navbar nav a:hover { color: var(--text); }

.navbar .btn-nav {
  padding: 9px 18px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff !important;
  font-weight: 600;
}

/* ---- HERO ---- */
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  padding: 80px 60px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.hero-text { flex: 1 1 400px; }

.hero-text h1 {
  font-size: 2.8rem;
  line-height: 1.15;
  margin-bottom: 18px;
}

.hero-text h1 span {
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero-text p {
  color: var(--text-dim);
  font-size: 1.05rem;
  margin-bottom: 28px;
  max-width: 480px;
}

.hero-img {
  flex: 1 1 380px;
  max-width: 460px;
}

.hero-img img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 15px 25px rgba(0,0,0,0.4));
}

.btn-primary {
  display: inline-block;
  padding: 13px 26px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--accent), var(--accent-2));
  color: #fff;
  font-weight: 600;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(108, 92, 231, 0.4);
}

/* ---- FEATURES ---- */
.features {
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px 60px 100px;
}

.features h2 {
  text-align: center;
  font-size: 1.9rem;
  margin-bottom: 50px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
}

.feature-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 24px;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255,255,255,0.05);
  text-align: center;
  transition: transform 0.2s ease;
}

.feature-card:hover { transform: translateY(-6px); }

.feature-card img {
  width: 72px;
  height: 72px;
  margin-bottom: 18px;
}

.feature-card h3 {
  margin: 0 0 10px;
  font-size: 1.15rem;
}

.feature-card p {
  color: var(--text-dim);
  font-size: 0.92rem;
  line-height: 1.5;
  margin: 0;
}

/* ---- FOOTER ---- */
footer {
  margin-top: auto;
  text-align: center;
  padding: 26px;
  color: var(--text-dim);
  font-size: 0.85rem;
  border-top: 1px solid rgba(255,255,255,0.06);
}

/* ---- LOGIN PAGE ---- */
.center-wrap {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
}

.login-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 44px 40px;
  width: 100%;
  max-width: 380px;
  border: 1px solid rgba(255,255,255,0.05);
}

.login-card .logo-mark {
  display: block;
  margin: 0 auto 18px;
  width: 56px;
  height: 56px;
}

.login-card h1 {
  text-align: center;
  font-size: 1.5rem;
  margin-bottom: 6px;
}

.login-card p.subtitle {
  text-align: center;
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 30px;
}

.field {
  margin-bottom: 20px;
}

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

.field input {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(255,255,255,0.1);
  background: #12141c;
  color: var(--text);
  font-size: 0.95rem;
  outline: none;
  transition: border-color 0.15s ease;
}

.field input:focus {
  border-color: var(--accent-2);
}

.login-card .btn-primary {
  width: 100%;
  margin-top: 6px;
}

.error-msg {
  background: rgba(255, 92, 92, 0.12);
  border: 1px solid rgba(255, 92, 92, 0.4);
  color: var(--error);
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 0.85rem;
  margin-bottom: 18px;
  display: none;
}

.hint {
  margin-top: 22px;
  text-align: center;
  font-size: 0.8rem;
  color: var(--text-dim);
}

.hint code {
  background: #12141c;
  padding: 2px 6px;
  border-radius: 6px;
  color: var(--accent-2);
}

/* ---- SUCCESS PAGE ---- */
.success-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 50px 44px;
  width: 100%;
  max-width: 420px;
  border: 1px solid rgba(255,255,255,0.05);
  text-align: center;
}

.success-card .check {
  width: 76px;
  height: 76px;
  margin: 0 auto 20px;
}

.success-card h1 {
  font-size: 1.6rem;
  margin-bottom: 10px;
  color: var(--success);
}

.success-card p {
  color: var(--text-dim);
  margin-bottom: 30px;
}

@media (max-width: 640px) {
  .hero { padding: 50px 24px; }
  .navbar { padding: 16px 20px; }
  .navbar nav a { margin-left: 14px; font-size: 0.85rem; }
}
