@import url("https://fonts.googleapis.com/css2?family=Manrope:wght@400;600;700&display=swap");

:root {
  --primary: #4f46e5;
  --primary-dark: #4338ca;
  --background: #f9fafb;
  --surface: #ffffff;
  --border: #e5e7eb;
  --radius: 12px;
  --shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
  --text: #111827;
  --muted: #6b7280;
  --success: #10b981;
  --danger: #ef4444;
}

body {
  font-family: "Manrope", sans-serif;
  background: var(--background);
  color: var(--text);
  margin: 0;
  padding-top: 80px; /* Space for fixed navbar */
}

.navbar {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  transition: box-shadow 0.3s ease;
}

.navbar.scrolled {
  box-shadow: var(--shadow);
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.nav-logo {
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--primary-dark);
  text-decoration: none;
}

.nav-menu {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  color: var(--muted);
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.nav-link:hover {
  color: var(--primary);
}

.nav-login-button {
  background: var(--primary);
  color: #fff;
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s;
}

.nav-login-button:hover {
  background: var(--primary-dark);
}

.container {
  background: var(--surface);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 2.5rem 2rem;
  max-width: 900px;
  width: 100%;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  gap: 2.5rem;
}

h1,
h2 {
  font-weight: 700;
  margin-bottom: 0.5em;
  color: var(--primary-dark);
  letter-spacing: -0.5px;
}

.form-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  background: #f9fafb;
  padding: 2rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.form-toggle {
  display: flex;
  gap: 1rem;
  justify-content: center;
  margin-bottom: 1rem;
}

.form-toggle button {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1rem;
  font-weight: 600;
  padding: 0.5rem 1.5rem;
  border-radius: var(--radius);
  cursor: pointer;
  transition: background 0.2s, color 0.2s;
}

.form-toggle button.active {
  background: var(--primary);
  color: #fff;
}

form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

form input {
  padding: 0.85rem 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 1rem;
  background: #fff;
  transition: border 0.2s, box-shadow 0.2s;
}

form input:focus {
  border-color: var(--primary);
  outline: none;
  box-shadow: 0 0 0 3px rgba(79, 70, 229, 0.2);
}

form button {
  background: var(--primary);
  color: #fff;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: var(--radius);
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  margin-top: 0.5rem;
}

form button:hover {
  background: var(--primary-dark);
}

form p {
  color: var(--danger);
  margin: 0.25rem 0 0 0;
  font-size: 0.9rem;
  text-align: center;
}

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

.footer-links a {
  color: var(--primary);
  text-decoration: none;
  margin: 0 0.5rem;
  transition: color 0.2s;
}

.footer-links a:hover {
  color: var(--primary-dark);
  text-decoration: underline;
}

@media (max-width: 768px) {
  body {
    padding-top: 70px;
  }
  .navbar {
    padding: 1rem;
  }
  .nav-menu {
    display: none; /* Simple responsive approach: hide menu on smaller screens */
  }
  .container {
    padding: 1.5rem 1rem;
    max-width: 95vw;
    margin: 1rem auto;
  }
  h1,
  h2 {
    font-size: 1.5rem;
  }
}

.hero {
  text-align: center;
  margin-bottom: 1rem;
}
.hero h1 {
  font-size: 3rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 0.5rem;
  line-height: 1.2;
}
.hero-subtitle {
  font-size: 1.25rem;
  color: var(--muted);
  margin-bottom: 2rem;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}
.cta-button {
  background: var(--primary);
  color: #fff;
  padding: 1rem 2.5rem;
  border-radius: var(--radius);
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s, transform 0.2s;
  display: inline-block;
  box-shadow: var(--shadow);
}
.cta-button:hover {
  background: var(--primary-dark);
  transform: translateY(-2px);
}
.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1.5rem;
  margin-bottom: 1rem;
}
.feature {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.5rem;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.feature:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
}
.feature img {
  width: 48px;
  height: 48px;
  margin-bottom: 1rem;
  background: var(--primary-dark);
  padding: 8px;
  border-radius: 50%;
  filter: invert(1);
}
.feature h3 {
  margin: 0.5rem 0 0.5rem 0;
  color: var(--primary-dark);
  font-size: 1.2rem;
}
.feature p {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.6;
}
@media (max-width: 900px) {
  .features {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
}
