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

body {
  font-family:
    -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen, Ubuntu,
    Cantarell, sans-serif;
  background-color: #17462f;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  position: relative;
  overflow: hidden;
}

/* Animated background effect */
body::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -50%;
  width: 200%;
  height: 200%;
  background:
    radial-gradient(
      circle at 30% 50%,
      rgba(16, 67, 71, 0.4) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 70% 80%,
      rgba(23, 70, 47, 0.3) 0%,
      transparent 50%
    );
  animation: backgroundShift 20s ease-in-out infinite;
  pointer-events: none;
}

@keyframes backgroundShift {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(-10%, -10%);
  }
}

.login-container {
  max-width: 550px;
  width: 100%;
  position: relative;
  z-index: 1;
}

/* Header Section */
.login-header {
  text-align: center;
  margin-bottom: 40px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.login-header h1 {
  font-family: "Bebas Neue", Roboto, sans-serif;
  color: #f2f296;
  font-size: clamp(2.5rem, 6vw, 6rem);
  font-weight: 700;
  letter-spacing: 4px;
  text-transform: uppercase;
  margin-bottom: 15px;
  text-shadow:
    0 0 20px rgba(255, 234, 0, 0.6),
    0 4px 12px rgba(0, 0, 0, 0.4);
  line-height: 1.2;
  white-space: nowrap;
}

.tagline {
  color: rgba(255, 255, 238, 0.85);
  font-size: 1.2em;
  letter-spacing: 1px;
  font-weight: 500;
}

.login-card {
  background: white;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.4);
  padding: 50px 60px;
  transition: transform 0.3s ease;
}

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

.login-card h2 {
  color: #2c3e50;
  font-size: 2.2em;
  font-weight: 700;
  margin-bottom: 35px;
  text-align: center;
  letter-spacing: 1px;
}

/* Flash Messages */
.flash-messages {
  margin-bottom: 25px;
}

.alert {
  padding: 15px 20px;
  border-radius: 8px;
  margin-bottom: 10px;
  font-weight: 500;
  font-size: 0.95em;
}

.alert-success {
  background-color: #d5fbdd;
  color: #155724;
  border: 1px solid #239d40;
}

.alert-danger {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.login-form {
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.form-group {
  display: flex;
  flex-direction: column;
}

.form-group label {
  font-size: 0.95em;
  font-weight: 600;
  color: #555;
  margin-bottom: 10px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input {
  padding: 16px 18px;
  border: 2px solid #e0e0e0;
  border-radius: 8px;
  font-size: 1.05em;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
  font-family: inherit;
}

.form-group input:focus {
  outline: none;
  border-color: #17462f;
  box-shadow: 0 0 0 3px rgba(23, 70, 47, 0.1);
}

/* Login Button */
.btn {
  padding: 16px 32px;
  border: none;
  border-radius: 8px;
  font-size: 1.15em;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.2s,
    box-shadow 0.2s;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 10px;
}

.btn-login {
  background: linear-gradient(135deg, #17462f 0%, #104347 100%);
  color: white;
  box-shadow: 0 4px 15px rgba(23, 70, 47, 0.4);
}

.btn-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(23, 70, 47, 0.6);
}

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

/* Register Link */
.register-link {
  margin-top: 30px;
  text-align: center;
  padding-top: 25px;
  border-top: 1px solid #e0e0e0;
}

.register-link p {
  color: #666;
  font-size: 1em;
}

.register-link a {
  color: #17462f;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.2s;
}

.register-link a:hover {
  color: #104347;
  text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1100px) {
  .login-header h1 {
    white-space: normal;
  }
}

@media (max-width: 768px) {
  .login-container {
    max-width: 450px;
  }

  .login-header h1 {
    font-size: clamp(2rem, 6vw, 3.5rem);
    letter-spacing: 2px;
  }

  .tagline {
    font-size: 1em;
  }

  .login-card {
    padding: 40px;
  }

  .login-card h2 {
    font-size: 1.8em;
  }

  .form-group input {
    padding: 14px 16px;
    font-size: 1em;
  }

  .btn-login {
    padding: 14px 28px;
    font-size: 1.05em;
  }
}

@media (max-width: 480px) {
  body {
    padding: 15px;
  }

  .login-container {
    max-width: 100%;
  }

  .login-header h1 {
    font-size: 2rem;
    letter-spacing: 1px;
  }

  .login-card {
    padding: 30px 25px;
  }

  .login-card h2 {
    font-size: 1.6em;
  }

  .form-group label {
    font-size: 0.9em;
  }

  .form-group input {
    padding: 12px 14px;
  }

  .btn-login {
    padding: 12px 24px;
    font-size: 1em;
  }

  .register-link p {
    font-size: 0.95em;
  }
}
