/* Enhanced Login & Register Styles */
.login-container,
.register-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #4285f4 0%, #6c5ce7 100%);
  padding: 20px;
  position: relative;
  overflow: hidden;
}

.login-container::before,
.register-container::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(
      circle at 20% 50%,
      rgba(255, 255, 255, 0.1) 0%,
      transparent 50%
    ),
    radial-gradient(
      circle at 80% 20%,
      rgba(255, 255, 255, 0.05) 0%,
      transparent 50%
    );
  opacity: 0.8;
}

.login-form,
.register-form {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(20px);
  padding: 50px;
  border-radius: 25px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.15);
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 2;
  border: 1px solid rgba(255, 255, 255, 0.2);
  transform: translateY(0);
  opacity: 1;
  animation: slideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateY(40px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.login-form::before,
.register-form::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(135deg, #4285f4, #6c5ce7);
  border-radius: 25px 25px 0 0;
}

.login-form h2,
.register-form h2 {
  text-align: center;
  margin-bottom: 35px;
  color: #2d3748;
  font-size: 2.2rem;
  font-weight: 800;
  background: linear-gradient(135deg, #2d3748, #4a5568);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
}

.login-form h2::after,
.register-form h2::after {
  content: "";
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 3px;
  background: linear-gradient(135deg, #4285f4, #6c5ce7);
  border-radius: 2px;
}

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

.form-group label {
  display: block;
  margin-bottom: 8px;
  color: #4a5568;
  font-weight: 600;
  font-size: 0.95rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-group input {
  width: 100%;
  padding: 16px 20px;
  border: 2px solid rgba(66, 133, 244, 0.1);
  border-radius: 12px;
  font-size: 1rem;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(10px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  box-sizing: border-box;
}

.form-group input:focus {
  outline: none;
  border-color: #4285f4;
  background: white;
  box-shadow: 0 8px 25px rgba(66, 133, 244, 0.15);
  transform: translateY(-2px);
}

.form-group input:hover {
  border-color: rgba(66, 133, 244, 0.2);
}

.password-container {
  position: relative;
}

.password-toggle {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  color: #64748b;
  font-size: 1.1rem;
  padding: 8px;
  border-radius: 6px;
  transition: all 0.3s ease;
  z-index: 3;
}

.password-toggle:hover {
  color: #4285f4;
  background: rgba(66, 133, 244, 0.1);
  transform: translateY(-50%) scale(1.1);
}

.login-btnn,
.register-btn {
  width: 100%;
  background: linear-gradient(135deg, #4285f4, #6c5ce7);
  color: white;
  padding: 16px 20px;
  border: none;
  border-radius: 12px;
  font-size: 1.1rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  text-transform: uppercase;
  letter-spacing: 1px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 25px rgba(66, 133, 244, 0.3);
}

.login-btnn::before,
.register-btn::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #6c5ce7, #a29bfe);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: -1;
}

.login-btnn:hover::before,
.register-btn:hover::before {
  left: 0;
}

.login-btnn:hover,
.register-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(66, 133, 244, 0.4);
}

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

.register-link,
.login-link {
  text-align: center;
  margin-top: 30px;
  padding: 20px;
  background: rgba(66, 133, 244, 0.05);
  border-radius: 12px;
  border: 1px solid rgba(66, 133, 244, 0.1);
  transition: all 0.3s ease;
}

.register-link:hover,
.login-link:hover {
  background: rgba(66, 133, 244, 0.08);
  transform: translateY(-2px);
}

.register-link p,
.login-link p {
  margin: 0;
  color: #64748b;
  font-weight: 500;
}

.register-link a,
.login-link a {
  color: #4285f4;
  text-decoration: none;
  font-weight: 700;
  position: relative;
  padding: 2px 0;
  transition: all 0.3s ease;
}

.register-link a::after,
.login-link a::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: linear-gradient(135deg, #4285f4, #6c5ce7);
  transition: width 0.3s ease;
}

.register-link a:hover::after,
.login-link a:hover::after {
  width: 100%;
}

.register-link a:hover,
.login-link a:hover {
  color: #6c5ce7;
  transform: translateX(3px);
}

.back-link {
  text-align: center;
  margin-top: 20px;
  opacity: 0.8;
  transition: opacity 0.3s ease;
}

.back-link:hover {
  opacity: 1;
}

.back-link a {
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.back-link a:hover {
  color: #4285f4;
  background: rgba(66, 133, 244, 0.1);
  transform: translateX(-3px);
}

.back-link a i {
  transition: transform 0.3s ease;
}

.back-link a:hover i {
  transform: translateX(-3px);
}

.alert {
  padding: 16px 20px;
  border-radius: 12px;
  margin-bottom: 25px;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  animation: slideDown 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

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

.alert-error {
  background: linear-gradient(135deg, #fee2e2, #fecaca);
  color: #dc2626;
  border: 2px solid #fca5a5;
  box-shadow: 0 4px 15px rgba(220, 38, 38, 0.1);
}

.alert-error::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #dc2626;
}

.alert-success {
  background: linear-gradient(135deg, #d1fae5, #a7f3d0);
  color: #059669;
  border: 2px solid #6ee7b7;
  box-shadow: 0 4px 15px rgba(5, 150, 105, 0.1);
}

.alert-success::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 4px;
  background: #059669;
}

/* Page transition effects */
.page-transition-enter {
  opacity: 0;
  transform: translateX(30px);
}

.page-transition-enter-active {
  opacity: 1;
  transform: translateX(0);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

.page-transition-exit {
  opacity: 1;
  transform: translateX(0);
}

.page-transition-exit-active {
  opacity: 0;
  transform: translateX(-30px);
  transition: all 0.6s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Enhanced floating animation */
@keyframes float {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
    opacity: 0.6;
  }
  50% {
    transform: translateY(-20px) rotate(180deg);
    opacity: 0.3;
  }
}

.login-container::after,
.register-container::after {
  content: "";
  position: absolute;
  top: 10%;
  right: 10%;
  width: 200px;
  height: 200px;
  background: radial-gradient(
    circle,
    rgba(255, 255, 255, 0.1) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: float 8s ease-in-out infinite;
  z-index: 1;
}

/* Responsive Design */
@media (max-width: 768px) {
  .login-form,
  .register-form {
    padding: 30px 25px;
    max-width: 380px;
    margin: 10px;
  }

  .login-form h2,
  .register-form h2 {
    font-size: 1.8rem;
    margin-bottom: 25px;
  }

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

  .form-group input {
    padding: 14px 16px;
    font-size: 0.95rem;
  }

  .login-btnn,
  .register-btn {
    padding: 14px 18px;
    font-size: 1rem;
  }

  .register-link,
  .login-link {
    margin-top: 20px;
    padding: 15px;
  }
}

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

  .login-form,
  .register-form {
    padding: 25px 20px;
    border-radius: 20px;
  }

  .login-form h2,
  .register-form h2 {
    font-size: 1.6rem;
  }

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

  .password-toggle {
    right: 12px;
    padding: 6px;
  }
}
