@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(to right, #e0f2f1, #ffffff);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 1rem;
}

.auth-box,
.card {
  background: #ffffff;
  border-radius: 20px;
  padding: 2rem;
  width: 100%;
  max-width: 400px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  border: none;
}

h4 {
  font-weight: 600;
  color: #28a745;
}

.alert {
  font-size: 14px;
  border-radius: 10px;
  animation: fadeIn 0.3s ease-in-out;
}

.input-group-text {
  background-color: #e9ecef;
  border: none;
  border-radius: 8px 0 0 8px;
}

.form-control {
  border-radius: 0 8px 8px 0;
  background-color: #f8f9fa;
  border: none;
}

.form-control:focus {
  box-shadow: none;
  border: 1px solid #28a745;
}

.custom-green-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);
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-green-btn:hover {
  background: linear-gradient(to right, #44c767, #28a745);
  transform: scale(1.02);
}

.toggle-password {
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  color: #6c757d;
}

a {
  font-size: 14px;
  color: #28a745;
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
  color: #218838;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes draw-check {
  to { stroke-dashoffset: 0; }
}

.fade-out {
  transition: opacity 0.5s ease-out;
  opacity: 0;
}

.checkmark-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 10px;
}

.checkmark {
  width: 60px;
  height: 60px;
  stroke: #28a745;
  stroke-width: 4;
  fill: none;
  stroke-dasharray: 48;
  stroke-dashoffset: 48;
  animation: draw-check 0.5s ease forwards;
}

@media (max-width: 480px) {
  .card {
    padding: 1.5rem;
  }

  .custom-green-btn {
    font-size: 15px;
  }
}
