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

body {
  font-family: "Tilt Neon", sans-serif;
  background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 50%, #0a0a0a 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: auto;
  padding: 20px;
}

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 20px;
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
}

.login-container {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(0, 255, 0, 0.2);
  border-radius: 20px;
  padding: 40px;
  max-width: 450px;
  width: 100%;
  margin: 0 auto;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5);
  position: relative;
  overflow: hidden;
}

.login-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, #00ff00, #00cc00, #00ff00);
  animation: shimmer 2s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }
  100% {
    transform: translateX(100%);
  }
}

.logo-section {
  text-align: center;
  margin-bottom: 30px;
}

.logo {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 10px;
}

.logo i {
  font-size: 2.5rem;
  color: #00ff00;
  text-shadow: 0 0 10px rgba(0, 255, 0, 0.5);
}
.logo a {
  text-decoration: none;
  color: inherit; /* keeps the button text color */
  display: flex; /* ensures the span and icon stay aligned */
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}
.logo h1 {
  color: #ffffff;
  font-size: 2.2rem;
  font-weight: 700;
  text-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
}

.tagline {
  color: #888;
  font-size: 0.9rem;
  font-weight: 300;
}

.login-form h2 {
  color: #ffffff;
  font-size: 1.8rem;
  margin-bottom: 5px;
  text-align: center;
}

.subtitle {
  color: #888;
  text-align: center;
  margin-bottom: 30px;
  font-size: 0.9rem;
}

.form-group {
  margin-bottom: 20px;
  position: relative;
}

.input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.input-container i:first-child {
  position: absolute;
  left: 15px;
  color: #00ff00;
  z-index: 2;
}

.input-container input {
  width: 100%;
  padding: 15px 15px 15px 45px;
  border: 2px solid rgba(0, 255, 0, 0.3);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  font-size: 1rem;
  transition: all 0.3s ease;
}

.input-container input::placeholder {
  color: #666;
}

.input-container input:focus {
  outline: none;
  border-color: #00ff00;
  box-shadow: 0 0 15px rgba(0, 255, 0, 0.3);
  background: rgba(0, 0, 0, 0.7);
}

.toggle-password {
  position: absolute;
  right: 15px;
  color: #666;
  cursor: pointer;
  transition: color 0.3s ease;
}

.toggle-password:hover {
  color: #00ff00;
}

.error-container {
  min-height: 20px;
  margin-top: 5px;
}

.error-message {
  color: #ff4444;
  font-size: 0.8rem;
  display: block;
}

.form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  flex-wrap: wrap;
  gap: 10px;
}

.checkbox-container {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #888;
  font-size: 0.9rem;
  cursor: pointer;
}

.checkbox-container input[type="checkbox"] {
  display: none;
}

.checkmark {
  width: 18px;
  height: 18px;
  border: 2px solid rgba(0, 255, 0, 0.5);
  border-radius: 4px;
  position: relative;
  transition: all 0.3s ease;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark {
  background: #00ff00;
  border-color: #00ff00;
}

.checkbox-container input[type="checkbox"]:checked + .checkmark::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: #000;
  font-size: 12px;
  font-weight: bold;
}

.forgot-password {
  color: #00ff00;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.forgot-password:hover {
  color: #00cc00;
  text-decoration: underline;
}
.login-btn a {
  text-decoration: none; /* removes the underline */
  color: inherit; /* keeps the button text color */
  display: flex; /* ensures the span and icon stay aligned */
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
}

.login-btn {
  width: 100%;
  padding: 15px;
  background: linear-gradient(135deg, #00ff00, #00cc00);
  border: none;
  border-radius: 10px;
  color: #000;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
  margin-bottom: 25px;
}

.login-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 25px rgba(0, 255, 0, 0.3);
}

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

.divider {
  text-align: center;
  margin: 25px 0;
  position: relative;
}

.divider::before,
.divider::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 45%;
  height: 1px;
  background: rgba(255, 255, 255, 0.2);
}

.divider::before {
  left: 0;
}

.divider::after {
  right: 0;
}

.divider span {
  background: rgba(0, 0, 0, 0.8);
  padding: 0 15px;
  color: #888;
  font-size: 0.9rem;
}

.social-login {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-bottom: 25px;
}

.social-btn {
  padding: 12px;
  border: 2px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  background: rgba(0, 0, 0, 0.5);
  color: #ffffff;
  font-size: 0.9rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: all 0.3s ease;
}

.social-btn:hover {
  border-color: rgba(0, 255, 0, 0.5);
  background: rgba(0, 255, 0, 0.1);
}

.social-btn.google:hover {
  border-color: #4285f4;
  background: rgba(66, 133, 244, 0.1);
}

.social-btn.facebook:hover {
  border-color: #1877f2;
  background: rgba(24, 119, 242, 0.1);
}

.signup-link {
  text-align: center;
}

.signup-link p {
  color: #888;
  font-size: 0.9rem;
}

.signup-link a {
  color: #00ff00;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.signup-link a:hover {
  color: #00cc00;
  text-decoration: underline;
}

.background-animation {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  pointer-events: none;
}

.floating-shapes {
  position: relative;
  width: 100%;
  height: 100%;
}

.shape {
  position: absolute;
  border-radius: 50%;
  background: linear-gradient(
    45deg,
    rgba(0, 255, 0, 0.1),
    rgba(0, 255, 0, 0.05)
  );
  animation: float 6s ease-in-out infinite;
}

.shape-1 {
  width: 80px;
  height: 80px;
  top: 20%;
  left: 10%;
  animation-delay: 0s;
}
.shape-2 {
  width: 120px;
  height: 120px;
  top: 60%;
  right: 15%;
  animation-delay: 2s;
}
.shape-3 {
  width: 60px;
  height: 60px;
  bottom: 20%;
  left: 20%;
  animation-delay: 4s;
}
.shape-4 {
  width: 100px;
  height: 100px;
  top: 10%;
  right: 30%;
  animation-delay: 1s;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px) rotate(0deg);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 1;
  }
}

.loading {
  opacity: 0.7;
  pointer-events: none;
}

.loading::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 20px;
  height: 20px;
  margin: -10px 0 0 -10px;
  border: 2px solid #00ff00;
  border-top: 2px solid transparent;
  border-radius: 50%;
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

.success-message {
  background: rgba(0, 255, 0, 0.1);
  border: 1px solid #00ff00;
  color: #00ff00;
  padding: 15px;
  border-radius: 10px;
  margin-bottom: 20px;
  text-align: center;
  font-weight: 500;
}

@media (max-height: 700px) {
  .container {
    align-items: flex-start;
    padding-top: 40px;
    padding-bottom: 40px;
  }

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

  .logo-section {
    margin-bottom: 20px;
  }

  .logo i {
    font-size: 2rem;
  }

  .logo h1 {
    font-size: 1.8rem;
  }

  .logo a {
    text-decoration: none; /* removes the underline */
    color: inherit; /* keeps the button text color */
    display: flex; /* ensures the span and icon stay aligned */
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
  }
  .login-form h2 {
    font-size: 1.5rem;
  }

  .form-group {
    margin-bottom: 15px;
  }
}

@media (max-width: 1024px) {
  .login-container {
    max-width: 400px;
    padding: 35px;
  }
  .logo h1 {
    font-size: 2rem;
  }
  .logo i {
    font-size: 2rem;
  }
}

@media (max-width: 768px) {
  body {
    padding: 10px;
  }

  .container {
    padding: 10px;
  }

  .login-container {
    padding: 30px 20px;
  }

  .logo h1 {
    font-size: 1.8rem;
  }

  .logo i {
    font-size: 1.8rem;
  }

  .form-options {
    flex-direction: column;
    gap: 15px;
    align-items: flex-start;
  }

  .forgot-password {
    margin-left: auto;
  }
}

@media (max-width: 480px) {
  .login-container {
    padding: 25px 15px;
  }

  .logo h1 {
    font-size: 1.5rem;
  }

  .login-form h2 {
    font-size: 1.5rem;
  }

  .input-container input {
    padding: 12px 12px 12px 40px;
    font-size: 0.9rem;
  }

  .login-btn {
    padding: 12px;
    font-size: 0.9rem;
  }

  .checkbox-container {
    font-size: 0.8rem;
  }

  .form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .forgot-password {
    margin-left: 0;
  }
}

@media (max-height: 600px) {
  .logo-section {
    margin-bottom: 15px;
  }

  .subtitle {
    margin-bottom: 20px;
  }

  .divider {
    margin: 15px 0;
  }

  .social-login {
    margin-bottom: 15px;
    gap: 10px;
  }

  .social-btn {
    padding: 10px;
  }
}
