* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Navigation Bar Styles */
.navbar {
  background: rgba(6,10,7,0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 0;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 60px;
}

.nav-brand {
  display: flex;
  align-items: center;
  font-size: 20px;
  font-weight: 700;
  color: white;
  text-decoration: none;
}

.nav-logo {
  font-size: 24px;
  margin-right: 10px;
}

.nav-menu {
  display: flex;
  list-style: none;
  margin: 0;
  padding: 0;
  justify-content: space-evenly;
  width: 100%;
  max-width: 600px;
}

.nav-item {
  margin: 0;
}

.nav-link {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.2s ease;
}

.nav-link.disabled {
  color: rgba(255, 255, 255, 0.55);
  cursor: default;
  pointer-events: none;
}

.nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: white;
}

.nav-link.active {
  background: rgba(255, 255, 255, 0.2);
  color: white;
}

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: #060a07;
  background-image:
    radial-gradient(ellipse 80% 50% at 20% -10%, rgba(45,106,79,0.35) 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 80% 110%, rgba(45,106,79,0.2) 0%, transparent 55%);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 0;
  overflow-x: hidden;
  position: relative;
}


.login-container {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  z-index: 10;
}

.login-card {
  background: rgba(14, 28, 20, 0.85);
  backdrop-filter: blur(20px);
  border-radius: 20px;
  padding: 40px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.08);
  width: 100%;
  animation: slideUp 0.8s ease-out;
  position: relative;
  overflow: hidden;
}

@keyframes slideUp {
  from {
    opacity: 0;
    transform: translateY(50px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.04), transparent);
  animation: shimmer 3s infinite;
}

@keyframes shimmer {
  0% { left: -100%; }
  100% { left: 100%; }
}

.login-header {
  text-align: center;
  margin-bottom: 30px;
  position: relative;
  z-index: 2;
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 60px;
  height: 60px;
  background: linear-gradient(135deg, #2d6a4f, #40916c);
  border-radius: 14px;
  color: white;
  margin-bottom: 20px;
  animation: pulse 2s infinite;
  box-shadow: 0 10px 30px rgba(45, 106, 79, 0.35);
}

@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.05); }
  100% { transform: scale(1); }
}

.login-header h1 {
  font-size: 28px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  animation: fadeInUp 0.8s ease-out 0.2s both;
}

.login-header p {
  color: rgba(255,255,255,0.5);
  font-size: 15px;
  animation: fadeInUp 0.8s ease-out 0.4s both;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  position: relative;
  z-index: 2;
}

.input-group {
  display: flex;
  flex-direction: column;
  animation: fadeInUp 0.8s ease-out 0.6s both;
}

.input-group label {
  font-size: 14px;
  font-weight: 600;
  color: rgba(255,255,255,0.7);
  margin-bottom: 8px;
}

.input-group input {
  padding: 14px 16px;
  border: 2px solid rgba(255,255,255,0.1);
  border-radius: 12px;
  font-size: 15px;
  transition: all 0.3s ease;
  background: rgba(255,255,255,0.06);
  color: #fff;
  position: relative;
}

.input-group input::placeholder { color: rgba(255,255,255,0.3); }

.input-group input:focus {
  outline: none;
  border-color: #2d6a4f;
  box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.2);
  transform: translateY(-2px);
}

.input-group input:hover {
  border-color: rgba(255,255,255,0.2);
}

.login-btn {
  background: linear-gradient(135deg, #2d6a4f, #40916c);
  color: white;
  border: none;
  border-radius: 12px;
  padding: 16px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin-top: 8px;
  animation: fadeInUp 0.8s ease-out 0.8s both;
}

.login-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 35px rgba(45, 106, 79, 0.4);
}

.login-btn:active {
  transform: translateY(-1px);
}

.login-btn::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
  transition: left 0.5s;
}

.login-btn:hover::before {
  left: 100%;
}

.error-message {
  background: #fed7d7;
  color: #c53030;
  padding: 10px 12px;
  border-radius: 6px;
  font-size: 14px;
  margin-top: 12px;
  border-left: 3px solid #c53030;
  display: none;
  animation: shake 0.5s ease-in-out;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.error-message:not(:empty) {
  display: block;
}

/* Dark mode */
.dark-mode {
  background: linear-gradient(-45deg, #081c15, #1b4332, #2d6a4f, #40916c);
}

.dark-mode .login-card {
  background: rgba(27, 67, 50, 0.95);
  border-color: rgba(255, 255, 255, 0.1);
}

.dark-mode .login-header h1 {
  color: white;
}

.dark-mode .login-header p {
  color: #a0aec0;
}

.dark-mode .input-group label {
  color: #e2e8f0;
}

.dark-mode .input-group input {
  background: #2d6a4f;
  border-color: #40916c;
  color: white;
}

.dark-mode .input-group input:focus {
  border-color: #74c69d;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0;
  color: rgba(255,255,255,0.3);
  font-size: 13px;
}
.divider::before, .divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: rgba(255,255,255,0.1);
}

.google-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  padding: 12px;
  border: 1.5px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  background: rgba(255,255,255,0.05);
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s;
  cursor: pointer;
}
.google-btn:hover {
  background: rgba(255,255,255,0.09);
  border-color: rgba(255,255,255,0.2);
}

@media (max-width: 480px) {
  .login-card {
    padding: 30px 24px;
    margin: 0 16px;
    border-radius: 16px;
  }

  .login-header h1 {
    font-size: 24px;
  }

  .logo {
    width: 50px;
    height: 50px;
  }
}
