body {
  background: linear-gradient(135deg, #f5f7fa 0%, #e4e9f2 100%);
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.login-container {
  background-color: white;
  border-radius: 20px;
  box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  max-width: 900px;
  width: 100%;
  margin: 0 auto !important;
}

.login-header {
  background: linear-gradient(135deg,
      #012d58,
      #9c6609,
      #ffbb00);
  color: white;
  text-align: center;
  padding: 2rem;
  position: relative;
}

.login-header::after {
  content: "";
  position: absolute;
  bottom: -20px;
  left: 0;
  right: 0;
  height: 40px;
  background-color: white;
  border-radius: 50% 50% 0 0;
}

.login-form {
  padding: 2rem;
}

.form-control:focus {
  border-color: var(--affiliate-primary);
  box-shadow: 0 0 0 0.25rem rgba(67, 97, 238, 0.25);
}

.form-floating>label {
  color: #6c757d;
}

.form-check-input:checked {
  background-color: var(--affiliate-primary);
  border-color: var(--affiliate-primary);
}

.btn-primary {
  background: linear-gradient(135deg,
      #012d58,
      #9c6609,
      #ffbb00);
  border: none;
  border-radius: 30px;
  padding: 0.75rem 2rem;
  font-weight: 600;
  box-shadow: 0 5px 15px rgba(67, 97, 238, 0.3);
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg,
      var(--affiliate-secondary),
      var(--affiliate-primary));
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(67, 97, 238, 0.4);
}

.password-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  z-index: 10;
  color: #6c757d;
}

.form-floating .password-toggle {
  top: 33px;
}

.social-login {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.social-btn {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  transition: all 0.3s ease;
}

.facebook {
  background-color: #3b5998;
}

.google {
  background-color: #db4437;
}

.twitter {
  background-color: #1da1f2;
}

.social-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 5px 10px rgba(0, 0, 0, 0.2);
}

.divider {
  display: flex;
  align-items: center;
  margin: 1.5rem 0;
}

.divider hr {
  flex: 1;
  border-color: #e0e0e0;
}

.divider span {
  padding: 0 1rem;
  color: #6c757d;
  font-size: 0.875rem;
}

.login-image {
  background: url("https://images.unsplash.com/photo-1556742502-ec7c0e9f34b1?ixlib=rb-4.0.3&ixid=M3wxMjA3fDB8MHxwaG90by1wYWdlfHx8fGVufDB8fHx8fA%3D%3D&auto=format&fit=crop&w=987&q=80") center/cover;
  height: 100%;
  border-radius: 0 20px 20px 0;
}

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.login-content {
  animation: fadeIn 0.5s ease-out;
}

/* Error messages */
.error-message {
  color: #dc3545;
  font-size: 0.85rem;
  margin-top: 0.25rem;
  display: none;
}

.is-invalid+.error-message {
  display: block;
}

.is-invalid {
  border-color: #dc3545 !important;
}

.is-invalid:focus {
  box-shadow: 0 0 0 0.25rem rgba(220, 53, 69, 0.25) !important;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .login-container {
    margin: 1rem;
    border-radius: 15px;
  }

  .login-image {
    display: none;
  }

  .login-header {
    padding: 1.5rem;
  }

  .login-form {
    padding: 1.5rem;
  }
}

/* =========================
   Reset sent card & Change password card
   ========================= */

.form-body {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 10px 30px rgba(20, 30, 50, 0.07);
  padding: 28px;
  max-width: 520px;
  margin: 0 auto 18px auto;
  transition: transform 220ms ease, opacity 220ms ease;
  border: 1px solid rgba(15, 23, 42, 0.04);
}

/* Small entrance micro-animation */
.form-body[style*="display: block"] {
  transform: translateY(0);
  opacity: 1;
}

/* Success "reset sent" card */
#reset_sent {
  display: block;
  text-align: center;
  padding: 36px 28px;
}

/* Decorative circular icon */
#reset_sent::before {
  content: "✔";
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 84px;
  height: 84px;
  margin-bottom: 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #e6960c 0%, #ffbb00 100%);
  color: #fff;
  font-size: 40px;
  box-shadow: 0 8px 20px rgba(18, 184, 134, 0.18);
}

/* Headline */
#reset_sent h2 {
  font-size: 1.35rem;
  margin-bottom: 8px;
  color: #0f172a;
  font-weight: 600;
}

/* Message text */
#reset_sent p {
  color: #475569;
  font-size: 0.97rem;
  line-height: 1.5;
  margin-bottom: 6px;
}

/* Helpful link styling */
#reset_sent a {
  color: #0d6efd;
  text-decoration: none;
  font-weight: 600;
}

#reset_sent a:hover {
  text-decoration: underline;
}

/* -------------------------
   Change password form styling
   ------------------------- */
#change_password {
  display: block;
  padding: 28px;
}

/* Change password header */
#change_password h2 {
  font-size: 1.25rem;
  margin-bottom: 6px;
  color: #0f172a;
  font-weight: 600;
}

/* Form paragraph */
#change_password p {
  color: #6b7280;
  font-size: 0.92rem;
  margin-bottom: 16px;
}

#change_password .form-control {
  width: 100%;
  padding: 12px 14px;
  border-radius: 10px;
  border: 1px solid rgba(15, 23, 42, 0.08);
  background: #fff;
  box-shadow: none;
  font-size: 0.98rem;
  transition: border-color 140ms ease, box-shadow 140ms ease, transform 140ms ease;
}

/* Input focus */
#change_password .form-control:focus {
  outline: none;
  border-color: rgba(13, 110, 253, 0.9);
  box-shadow: 0 6px 20px rgba(13, 110, 253, 0.08);
  transform: translateY(-1px);
}

/* Labels keep default look but smaller */
#change_password label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.92rem;
  color: #111827;
  font-weight: 500;
}

/* Spacing between fields */
#change_password .mb-3 {
  margin-bottom: 14px;
}

#change_password .btn-primary {
  background: linear-gradient(135deg, #e6960c 0%, #ffbb00 100%);
  border: none;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 1rem;
  font-weight: 600;
  box-shadow: 0 8px 24px rgba(13, 110, 253, 0.12);
  transition: transform 120ms ease, box-shadow 120ms ease, opacity 120ms ease;
}

/* Button hover / active */
#change_password .btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 30px rgba(13, 110, 253, 0.14);
  opacity: 0.98;
}

#change_password .btn-primary:active {
  transform: translateY(0);
  box-shadow: 0 6px 14px rgba(13, 110, 253, 0.10);
}

/* Small helper/error text you might show under inputs */
#change_password .help-text {
  font-size: 0.85rem;
  color: #6b7280;
  margin-top: 6px;
}

/* Responsive tweaks */
@media (max-width: 767.98px) {
  .form-body {
    padding: 20px;
    border-radius: 12px;
  }

  #reset_sent::before {
    width: 70px;
    height: 70px;
    font-size: 34px;
  }

  #change_password .btn-primary {
    padding: 12px;
    font-size: 0.98rem;
  }
}

/* Accessibility: reduce motion for users who prefer reduced motion */
@media (prefers-reduced-motion: reduce) {

  .form-body,
  #change_password .btn-primary,
  #reset_sent::before {
    transition: none !important;
  }
}