.change-password-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.change-password-card header h2 {
  margin: 0;
}

.change-password-card .muted {
  margin: 4px 0 0;
}

.pw-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.pw-form label {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--muted);
}

.pw-form input[type="password"],
.pw-form input[type="text"],
.pw-form input[type="email"] {
  width: 100%;
  border-radius: 12px;
  border: var(--border);
  background: rgba(255, 255, 255, 0.04);
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--text);
  padding: 12px 14px;
  box-sizing: border-box;
  min-height: 46px;
  line-height: 1.2;
  font: inherit;
  appearance: none;
  -webkit-appearance: none;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.pw-form input:focus {
  outline: none;
  background: rgba(255, 255, 255, 0.04);
  background-color: rgba(255, 255, 255, 0.04);
  color: var(--text);
  border-color: rgba(87, 199, 255, 0.6);
  box-shadow: 0 0 0 1px rgba(87, 199, 255, 0.35);
}

.pw-form input:-webkit-autofill,
.pw-form input:-webkit-autofill:hover,
.pw-form input:-webkit-autofill:focus,
.pw-form input:-webkit-autofill:active {
  -webkit-text-fill-color: var(--text) !important;
  caret-color: var(--text);
  background-color: rgba(255, 255, 255, 0.04) !important;
  box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.04) inset !important;
  -webkit-box-shadow: 0 0 0 1000px rgba(255, 255, 255, 0.04) inset !important;
  border: var(--border) !important;
  transition: background-color 999999s ease-in-out 0s;
}

.pw-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
  margin-top: 4px;
}

.pw-actions button,
.action-button {
  border: none;
  border-radius: 999px;
  padding: 10px 16px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.pw-actions button {
  background: rgba(110, 168, 254, 0.12);
  color: #d7e4ff;
}

.auth-check-form {
  margin-top: 12px;
  margin-bottom: 8px;
  display: flex;
  justify-content: flex-start;
}

@media (max-width: 860px) {
  .pw-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .pw-actions button,
  .action-button {
    text-align: center;
  }
}

/* --- modern eye toggle (show/hide password) --- */
.pw-field {
  position: relative;
  width: 100%;
}

.pw-field input[type="password"],
.pw-field input[type="text"],
.pw-field input[type="email"] {
  padding-right: 46px;
}

.pw-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  cursor: pointer;
  padding: 0;
}

.pw-toggle:hover {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text);
}

.pw-toggle:focus-visible {
  outline: none;
  box-shadow: 0 0 0 2px rgba(87, 199, 255, 0.35);
}

.pw-eye {
  width: 20px;
  height: 20px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.pw-actions button {
  background: linear-gradient(135deg, #d42727, #a40d32);
  color: #fff;
}

.action-button {
  background: rgba(255, 255, 255, 0.08);
  border: var(--border);
  color: var(--text);
}

.btn-secondary {
  border-radius: 12px;
  border: none;
  padding: 8px 14px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 0.15);
}

.error-message,
.success-message {
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
}

.error-message {
  border: 1px solid rgba(255, 90, 103, 0.6);
  background: rgba(255, 90, 103, 0.1);
  color: #ff9ea8;
}

.success-message {
  border: 1px solid rgba(110, 168, 254, 0.6);
  background: rgba(110, 168, 254, 0.1);
  color: #a0c8ff;
}

.alert.info {
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid rgba(110, 168, 254, 0.4);
  background: rgba(110, 168, 254, 0.12);
  color: #d7e4ff;
}
