body {
  margin: 0;
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #4f46e5, #9333ea);
  height: 100vh;
  display: flex;
  justify-content: center;
  align-items: center;
}

.login-container {
  background-color: white;
  padding: 40px 50px;
  border-radius: 20px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
  text-align: center;
  width: 350px;
  transition: transform 0.3s ease-in-out;
}

.login-container:hover {
  transform: scale(1.02);
}

.login-container h2 {
  color: #4f46e5;
  margin-bottom: 5px;
}

.login-container p {
  color: #6b7280;
  margin-bottom: 25px;
}

.input-group {
  text-align: left;
  margin-bottom: 20px;
}

.input-group label {
  display: block;
  margin-bottom: 5px;
  color: #374151;
  font-weight: 500;
}

.input-group input {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s ease;
}

.input-group input:focus {
  border-color: #4f46e5;
}

.button-group {
  display: flex;
  justify-content: space-between;
  margin-top: 25px;
}

button {
  width: 48%;
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.register-btn {
  background-color: #e5e7eb;
  color: #111827;
}

.register-btn:hover {
  background-color: #d1d5db;
}

.login-btn {
  background-color: #4f46e5;
  color: white;
}

.login-btn:hover {
  background-color: #4338ca;
}

.error-message {
  color: red;
  font-size: 14px;
  margin-top: 15px;
}

.register-container {
  background-color: white;
  padding: 50px 60px;
  border-radius: 25px;
  box-shadow: 0 10px 35px rgba(0, 0, 0, 0.25);
  width: 450px;
  max-width: 90%;
  text-align: center;
  animation: fadeIn 0.6s ease-in-out;
}

.register-container h2 {
  color: #4f46e5;
  margin-bottom: 10px;
  font-size: 28px;
}

.register-container p {
  color: #6b7280;
  margin-bottom: 30px;
  font-size: 15px;
}

.register-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.register-form .input-group {
  text-align: left;
}

.register-form .input-group label {
  font-weight: 500;
  color: #374151;
}

.register-form .input-group input,
.register-form .input-group select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid #d1d5db;
  font-size: 15px;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.register-form .input-group input:focus,
.register-form .input-group select:focus {
  border-color: #4f46e5;
  box-shadow: 0 0 5px rgba(79, 70, 229, 0.3);
}

.register-btn {
  background-color: #4f46e5;
  color: white;
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
}

.register-btn:hover {
  background-color: #4338ca;
  transform: scale(1.03);
}

.back-to-login {
  margin-top: 20px;
  color: #4f46e5;
  text-decoration: none;
  font-weight: 500;
  display: inline-block;
  transition: color 0.2s ease;
}

.back-to-login:hover {
  color: #9333ea;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(-15px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 480px) {
  .register-container {
    padding: 35px 25px;
    width: 90%;
  }

  .register-container h2 {
    font-size: 24px;
  }

  .register-btn {
    font-size: 15px;
  }
}

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  background: #ffffffcc;
  backdrop-filter: blur(10px);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 60px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.1);
  z-index: 1000;
}

.logo {
  font-size: 20px;
  font-weight: bold;
  color: #4f46e5;
}

.nav-links a {
  margin-left: 25px;
  text-decoration: none;
  color: #374151;
  font-weight: 500;
  transition: color 0.3s ease;
}

.nav-links a:hover {
  color: #4f46e5;
}

.hero {
  margin-top: 90px;
  height: 70vh;
  background: linear-gradient(135deg, #4f46e5, #9333ea);
  color: white;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 20px;
}

.hero-content {
  max-width: 700px;
}

.hero-content h1 {
  font-size: 2.5rem;
  margin-bottom: 15px;
}

.hero-content p {
  font-size: 1.1rem;
  margin-bottom: 30px;
  line-height: 1.5;
}

.primary-btn {
  background-color: #ffffff;
  color: #4f46e5;
  border: none;
  border-radius: 10px;
  padding: 12px 25px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.primary-btn:hover {
  background-color: #e5e7eb;
}

.features {
  display: flex;
  justify-content: space-around;
  align-items: start;
  flex-wrap: wrap;
  margin: 60px auto;
  max-width: 1100px;
  gap: 20px;
}

.feature-card {
  background-color: white;
  border-radius: 15px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1);
  padding: 30px;
  width: 300px;
  text-align: center;
  transition: transform 0.3s ease;
}

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

.feature-card h3 {
  color: #4f46e5;
  margin-bottom: 10px;
}

footer {
  background-color: #111827;
  color: #f9fafb;
  text-align: center;
  padding: 20px;
  margin-top: 60px;
}

/* CSS Reset to fix alignment issues */
body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background-color: #ffffff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    /* This ensures padding is included in the width, preventing overflow */
    box-sizing: border-box;
    width: 100%;
}
.navbar .brand {
    font-size: 1.2rem;
    font-weight: bold;
    color: #333;
}
.logout-btn {
    background-color: #dc3545; /* Red color for logout */
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    border-radius: 5px;
    font-size: 0.9rem;
    transition: background-color 0.3s;
}
.logout-btn:hover {
    background-color: #c82333;
}
