/* === GLOBAL RESET === */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: "Poppins", sans-serif;
}

/* === BODY & BACKGROUND === */
body {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  background: linear-gradient(135deg, #4e73df, #1cc88a);
  color: #333;
  padding-top: 80px; /* space for navbar */
}

/* === NAVIGATION BAR === */
.navbar {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(10px);
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 10;
  padding: 0.8rem 0;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

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

.logo {
  font-size: 1.3rem;
  color: #fff;
  font-weight: 600;
}

.nav-links {
  list-style: none;
  display: flex;
  gap: 1.5rem;
}

.nav-links a {
  text-decoration: none;
  color: #fff;
  font-weight: 500;
  transition: 0.3s;
  position: relative;
}

.nav-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0;
  height: 2px;
  background: #fff;
  transition: 0.3s;
}

.nav-links a:hover::after,
.nav-links a.active::after {
  width: 100%;
}

.nav-links a:hover,
.nav-links a.active {
  color: #d1ffe8;
}

/* === LOGIN & SIGNUP CONTAINERS === */
.login-container {
  width: 100%;
  max-width: 400px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 10px 25px rgba(0,0,0,0.1);
  padding: 2.5rem;
  text-align: center;
}

/* === CARD CONTENT === */
.login-card h2 {
  font-size: 1.8rem;
  color: #2e2e2e;
  margin-bottom: 0.5rem;
}

.subtitle {
  color: #777;
  font-size: 0.9rem;
  margin-bottom: 2rem;
}

/* === ERROR & SUCCESS MESSAGES === */
.error {
  background: #ffe5e5;
  color: #d9534f;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
}

.success {
  background: #e5ffe9;
  color: #28a745;
  padding: 10px;
  border-radius: 8px;
  margin-bottom: 1rem;
  font-size: 0.9rem;
  border: 1px solid #b7ffb7;
}

/* === INPUT FIELDS === */
.input-group {
  position: relative;
  margin-bottom: 1.5rem;
}

.input-group input {
  width: 100%;
  padding: 12px 10px;
  border: 2px solid #ddd;
  border-radius: 8px;
  outline: none;
  transition: 0.3s;
  font-size: 0.95rem;
}

.input-group label {
  position: absolute;
  top: 50%;
  left: 12px;
  transform: translateY(-50%);
  color: #aaa;
  font-size: 0.9rem;
  transition: 0.3s;
  pointer-events: none;
}

.input-group input:focus,
.input-group input:valid {
  border-color: #4e73df;
}

.input-group input:focus + label,
.input-group input:valid + label {
  top: -8px;
  left: 10px;
  font-size: 0.75rem;
  background: #fff;
  color: #4e73df;
  padding: 0 4px;
}

/* === BUTTON === */
.btn {
  width: 100%;
  background: #4e73df;
  color: white;
  border: none;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 1rem;
  transition: 0.3s;
}

.btn:hover {
  background: #2e59d9;
}

/* === SIGNUP / LOGIN LINKS === */
.signup-text {
  margin-top: 1.5rem;
  font-size: 0.9rem;
}

.signup-text a {
  color: #1cc88a;
  text-decoration: none;
  font-weight: 600;
}

.signup-text a:hover {
  text-decoration: underline;
}

/* === RESPONSIVE DESIGN === */
@media (max-width: 500px) {
  .login-container {
    margin: 1rem;
    padding: 2rem 1.5rem;
  }

  .nav-container {
    flex-direction: column;
    gap: 0.5rem;
  }

  .nav-links {
    gap: 1rem;
  }

  .logo {
    font-size: 1.1rem;
  }
}
