body {
  background: linear-gradient(rgba(15, 23, 42, 0.8), rgba(15, 23, 42, 0.8)), 
              url('https://images.unsplash.com/photo-1555066931-4365d14bab8c?q=80&w=2070&auto=format&fit=crop') !important;
  background-size: cover !important;
  background-position: center !important;
  background-attachment: fixed !important;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 !important;
}

.reset-form {
  max-width: 420px;
  width: 95%;
  background: rgba(255, 255, 255, 0.85) !important; /* Slightly more transparent to blend better */
  backdrop-filter: blur(15px);
  -webkit-backdrop-filter: blur(15px);
  border-radius: 20px !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2) !important; /* Softer shadow */
  border: 1px solid rgba(255, 255, 255, 0.2) !important; /* More transparent border */
  padding: 35px !important;
  text-align: center;
  margin: 40px 20px;
  box-sizing: border-box;
}

.card-head h1 {
  font-size: 1.8rem; 
  color: #1e3a8a; /* Deep professional blue */
  margin: 0; 
  font-weight: 800;
  letter-spacing: -0.02em;
}

.card-head .lead {
  font-size: 0.9rem; color: #334155; margin: 10px 0 0; font-weight: 600; line-height: 1.5;
}

.header-divider {
  margin: 20px 0 25px; border: 0; border-top: 1px solid #e2e8f0;
}

.reset-form .form-group {
  margin-bottom: 20px;
  text-align: left;
}

.reset-form label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #475569;
  font-size: 0.9rem;
  padding-left: 4px;
}

.reset-form input[type="text"],
.reset-form input[type="email"],
.reset-form input[type="password"],
.reset-form input[type="number"],
.reset-form select,
.reset-form .otp {
  width: 100% !important;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 10px;
  font-size: 1rem;
  background-color: #f9f9f9;
  color: #333;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.reset-form input:focus,
.reset-form select:focus,
.reset-form .otp:focus {
  outline: none;
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background-color: #fff;
}

.reset-form .otp-container {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 20px 0;
}

.reset-form .otp {
  width: 45px !important;
  text-align: center;
  margin: 0;
  font-weight: 700;
  font-size: 1.2rem;
}

.reset-form button {
  width: 100%;
  padding: 11px 16px; /* Slightly smaller height */
  border: none;
  border-radius: 12px;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
}

.reset-form button#sendCodeBtn,
.reset-form button#verifyCodeBtn,
.reset-form button#resetPasswordBtn {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.reset-help-text {
  margin-top: 35px;
  font-size: 0.82rem;
  color: #475569;
  line-height: 1.6;
  padding: 14px 18px;
  background: rgba(37, 99, 235, 0.06); /* Very subtle blue tint */
  border-radius: 10px;
  border-left: 4px solid #2563eb; /* Visual indicator for "Info" */
  text-align: left;
}

.back-to-login {
  margin-top: 20px;
}

.back-to-login a {
  display: inline-block;
  color: #2563eb;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  padding: 10px 24px;
  background: #eff6ff; /* Soft blue background */
  border: 1px solid #bfdbfe; /* Clean, light border */
  border-radius: 12px;
  transition: all 0.3s ease;
}

.back-to-login a:hover {
  background: #2563eb;
  color: #ffffff;
  border-color: #2563eb;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.15);
}

.reset-form button#sendCodeBtn:hover,
.reset-form button#verifyCodeBtn:hover,
.reset-form button#resetPasswordBtn:hover {
  background: #1d4ed8;
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.reset-form button#clearBtn,
.reset-form button#cancelBtn {
  background: #6c757d;
  color: #fff;
}

.reset-form button#clearBtn:hover,
.reset-form button#cancelBtn:hover {
  background: #5a6268;
  transform: translateY(-2px);
}

.reset-form .feedback {
  padding: 10px 15px;
  margin-bottom: 15px;
  border-radius: 8px;
  font-size: 0.9rem;
  font-weight: 500;
  text-align: center;
}

.reset-form .feedback.error {
  background-color: #f8d7da;
  color: #721c24;
  border: 1px solid #f5c6cb;
}

.reset-form .feedback.success {
  background-color: #d4edda;
  color: #155724;
  border: 1px solid #c3e6cb;
}

.reset-form .feedback.info {
  background-color: #e2e3e5;
  color: #383d41;
  border: 1px solid #d6d8db;
}

.reset-form .input-error {
  border-color: #dc3545 !important;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.2) !important;
}

.reset-form #pwStrengthBar {
  height: 8px;
  border-radius: 4px;
  margin-top: 5px;
  transition: width 0.3s ease-in-out, background 0.3s ease-in-out;
}

.reset-form #pwStrengthText {
  font-size: 0.85rem;
  margin-top: 5px;
  color: #666;
}

.reset-form #togglePwdBtn {
  background: none;
  border: none;
  color: #007bff;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin: 0;
  width: auto;
  text-align: right;
  margin-top: -10px;
  margin-bottom: 10px;
}

.reset-form #togglePwdBtn:hover {
  text-decoration: underline;
  transform: none;
  box-shadow: none;
}

.reset-form #resendBtn {
  background: none;
  border: none;
  color: #007bff;
  font-size: 0.9rem;
  cursor: pointer;
  padding: 0;
  margin-top: 10px;
  width: auto;
  display: inline-block;
}

.reset-form #resendBtn:hover {
  text-decoration: underline;
}

.reset-form #resendTimer {
  font-size: 0.9rem;
  color: #6c757d;
  margin-left: 5px;
}

.reset-form .btn-spinner {
  display: inline-block;
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top: 2px solid #fff;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin-right: 8px;
  vertical-align: middle;
}

@keyframes spin {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.reset-form .step {
  padding: 10px 0;
}

.reset-form .step:not(.active) {
  display: none;
}

.reset-form .step.active {
  animation: fadeInStep 0.4s ease-out forwards;
}

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

.reset-form .button-group {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.reset-form .button-group button {
  flex: 1;
  margin-top: 0;
}

/* Page Footer */
.login-footer,
footer { /* Target the footer element directly */
  margin-top: auto; /* Pushes footer to the absolute bottom of the page */
  width: 100%;
  padding: 20px;
  text-align: center;
  color: #ffffff; /* Make it fully white for visibility */
  font-size: 0.8rem;
  background: rgba(0, 0, 0, 0.3); /* A slightly darker, semi-transparent background */
}