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

body {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #f8f9fa;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.reset-container {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
}

.reset-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
  padding: 40px;
  animation: slideIn 0.5s ease-out;
  border-left: 4px solid #198754;
  border-right: 4px solid #198754;
}

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

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

.logo-container img {
  max-width: 140px;
  height: auto;
  margin-bottom: 20px;
}

.reset-title {
  font-size: 1.75rem;
  font-weight: 600;
  color: #333333;
  text-align: center;
  margin-bottom: 8px;
}

.reset-subtitle {
  font-size: 0.95rem;
  color: #6c757d;
  text-align: center;
  margin-bottom: 30px;
  line-height: 1.6;
}

.form-group {
  margin-bottom: 1.5rem;
  width: 100%;
}

.form-label {
  display: block;
  font-size: 15px;
  font-weight: 500;
  color: #333333;
  margin-bottom: 8px;
  text-align: left;
  width: 100%;
}

.form-control {
  width: 100%;
  padding: 12px 16px;
  font-size: 15px;
  border: 2px solid #dee2e6;
  border-radius: 8px;
  transition: all 0.3s ease;
  background-color: #f8f9fa;
  margin-bottom: 0.5rem;
  display: block;
  height: auto;
  line-height: 1.5;
  color: #212529;
  appearance: none;
}

.form-control:focus {
  outline: none;
  border-color: #198754;
  background-color: #f8fdfe;
  box-shadow: 0 0 0 0.25rem rgba(25, 135, 84, 0.15);
}

.form-control.is-invalid {
  border-color: #dc3545;
  background-color: #fff5f5;
}

.invalid-feedback {
  display: block;
  font-size: 13px;
  color: #dc3545;
  margin-top: 6px;
  text-align: left;
}

.alert {
  padding: 12px 16px;
  border-radius: 8px;
  margin-bottom: 20px;
  font-size: 14px;
  animation: slideDown 0.3s ease;
}

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

.alert-success {
  background-color: #d1e7dd;
  color: #0f5132;
  border: 1px solid #badbcc;
}

.alert-danger {
  background-color: #f8d7da;
  color: #842029;
  border: 1px solid #f5c2c7;
}

.btn-reset {
  width: 100%;
  padding: 14px;
  font-size: 16px;
  font-weight: 600;
  color: #ffffff;
  background: linear-gradient(135deg, #198754 0%, #0d6832 100%);
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  margin-top: 10px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
}

.btn-reset:hover:not(:disabled) {
  background: linear-gradient(135deg, #0d6832 0%, #198754 100%);
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(25, 135, 84, 0.25);
}

.btn-reset:active:not(:disabled) {
  transform: translateY(0);
}

.btn-reset:disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.btn-outline {
  width: 100%;
  padding: 12px;
  font-size: 15px;
  font-weight: 600;
  color: #198754;
  background: transparent;
  border: 2px solid #198754;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
}

.btn-outline:hover:not(:disabled) {
  background: #198754;
  color: #ffffff;
}

.btn-outline:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.resend-container {
  margin-top: 20px;
}

.resend-text {
  font-size: 14px;
  color: #6c757d;
  margin-bottom: 12px;
  text-align: center;
}

.back-link {
  text-align: center;
  margin-top: 25px;
}

.back-link a {
  color: #198754;
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.3s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.back-link a:hover {
  color: #0d6832;
  text-decoration: underline;
}

.footer-text {
  text-align: center;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #dee2e6;
  color: #6c757d;
  font-size: 13px;
}

.spinner-border-sm {
  width: 16px;
  height: 16px;
  border-width: 2px;
}

/* Responsive Design */
@media (max-width: 576px) {
  body {
    padding: 15px;
  }

  .reset-card {
    padding: 30px 25px;
  }

  .reset-title {
    font-size: 1.5rem;
  }

  .reset-subtitle {
    font-size: 0.875rem;
  }

  .logo-container img {
    max-width: 100px;
  }

  .form-control {
    padding: 10px 14px;
    font-size: 14px;
  }

  .btn-reset {
    padding: 12px;
    font-size: 15px;
  }
}

@media (max-width: 375px) {
  .reset-card {
    padding: 25px 20px;
  }

  .reset-title {
    font-size: 1.35rem;
  }

  .reset-subtitle {
    font-size: 0.8125rem;
  }
}

/* Animation for error messages */
.invalid-feedback {
  animation: shake 0.3s ease;
}

@keyframes shake {
  0%,
  100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-5px);
  }
  75% {
    transform: translateX(5px);
  }
}
