/* ===== Independent Scoped CSS for Password Change Section ===== */
.password-change-section * {
  box-sizing: border-box;
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

.password-change-section {
  /* background: #f2f5f9; */
  display: flex;
  justify-content: left;
  align-items: center;
  /* min-height: 100vh; */
  padding: 10px;
}

.password-change-section .password-container {
  background: #fff;
  padding: 2rem;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  width: 100%;
  max-width: 420px;
  transition: all 0.3s ease;
}

.password-change-section .password-container:hover {
  /* transform: translateY(-3px); */
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.password-change-section h2 {
  text-align: center;
  color: #333;
  margin-bottom: 1.5rem;
  font-weight: 600;
}

/* === Form Fields === */
.password-change-section .form-group {
  margin-bottom: 1.2rem;
}

.password-change-section label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
  color: #444;
  font-weight: 500;
}

/* === Password Field with Eye Icon === */
.password-change-section .password-field {
  position: relative;
  display: flex;
  align-items: center;
}

.password-change-section input[type="password"],
.password-change-section input[type="text"] {
  width: 100%;
  padding: 0.7rem 2.5rem 0.7rem 0.7rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.password-change-section input:focus {
  border-color: #007bff;
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.15);
}

.password-change-section .toggle-password {
  position: absolute;
  right: 10px;
  cursor: pointer;
  color: #888;
  font-size: 1.2rem;
  user-select: none;
  transition: color 0.2s ease;
}

.password-change-section .toggle-password:hover {
  color: #007bff;
}

.password-change-section .toggle-password.visible {
  color: #007bff;
}

/* === Submit Button === */
.password-change-section .btn-submit {
  width: 100%;
  background: #007bff;
  color: #fff;
  padding: 0.8rem;
  border: none;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.3s ease, transform 0.2s ease;
}

.password-change-section .btn-submit:hover {
  background: #0056d2;
  transform: translateY(-1px);
}

/* === Message Box === */
.password-change-section .form-message {
  margin-bottom: 1rem;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 500;
  display: none;
}

.password-change-section .form-message.error {
  color: #d93025;
  display: block;
}

.password-change-section .form-message.success {
  color: #0f9d58;
  display: block;
}

/* === Responsive === */
@media (max-width: 480px) {
  .password-change-section .password-container {
    padding: 1.5rem;
    border-radius: 12px;
  }

  .password-change-section input {
    padding: 0.6rem 2rem 0.6rem 0.6rem;
  }

  .password-change-section .btn-submit {
    font-size: 0.95rem;
  }
}
