 @import url('https://fonts.googleapis.com/css2?family=Poppins:wght@300;400;600&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(to right, #e0f2f1, #ffffff);
  background-size: cover;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 100vh;
  padding: 1rem;
  position: relative;
  overflow: hidden;
}

/* Overlay effect for better contrast */
body::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 0;
}

.auth-box {
  background: white;
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 20px;
  padding: 2rem;
  width: 100%;
  max-width: 360px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  z-index: 1;
}

.text-center img,
.text-center h4 {
  animation: fadeIn 0.8s ease-out;
}

.input-group {
  background: #fff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 0 5px rgba(0,0,0,0.05);
}

.input-group-text {
  background-color: #e9ecef;
  border-right: none;
  border-radius: 10px 0 0 10px;
  transition: background-color 0.3s ease;
}

.form-control {
  border-radius: 0 10px 10px 0;
  background-color: #f8f9fa;
  border-left: none;
}

.form-control:focus {
  box-shadow: none;
  border-color: #44c767;
}

.toggle-password {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 2;
  color: #6c757d;
}

.alert {
  font-size: 14px;
  border-radius: 10px;
  animation: fadeIn 0.3s ease-in-out;
  padding: 10px 15px;
}

.custom-login-btn {
  background: linear-gradient(to right, #28a745, #44c767);
  color: white;
  font-size: 16px;
  padding: 10px 24px;
  border-radius: 40px;
  border: none;
  font-weight: 600;
  width: 100%;
  transition: all 0.3s ease;
  box-shadow: 0 4px 14px rgba(68, 199, 103, 0.4);
  margin-top: 5px;
}

.custom-login-btn:hover {
  background: linear-gradient(to right, #44c767, #28a745);
  transform: scale(1.02);
}

.form-check-input {
  border-radius: 5px;
}

a {
  color: #28a745;
  transition: 0.3s ease;
}

a:hover {
  color: #218838;
  text-decoration: underline;
}

/* Animation */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

/* Mobile responsiveness */
@media (max-width: 480px) {
  .auth-box {
    padding: 1.5rem;
  }

  .custom-login-btn {
    font-size: 15px;
  }
}
