/* 修改密码页（与后台整体风格协调） */

.password-settings-page {
  min-height: calc(100vh - 140px);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 24px 48px;
  box-sizing: border-box;
  background: linear-gradient(180deg, rgba(24, 188, 156, 0.04) 0%, transparent 32%);
}

.password-settings-card {
  width: 100%;
  max-width: 440px;
  padding: 32px 36px 36px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.06);
  box-sizing: border-box;
}

.password-settings-title {
  margin: 0 0 8px;
  font-size: 22px;
  font-weight: 700;
  color: #1e293b;
  letter-spacing: 0.02em;
}

.password-settings-desc {
  margin: 0 0 28px;
  font-size: 14px;
  line-height: 1.55;
  color: #64748b;
}

.password-field {
  margin-bottom: 20px;
}

.password-field label {
  display: block;
  font-size: 14px;
  font-weight: 500;
  color: #334155;
  margin-bottom: 8px;
}

.password-settings-input {
  width: 100%;
  box-sizing: border-box;
  padding: 10px 14px;
  font-size: 15px;
  line-height: 1.5;
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.password-settings-input:hover {
  border-color: #cbd5e1;
  background: #fff;
}

.password-settings-input:focus {
  border-color: #18bc9c;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(24, 188, 156, 0.2);
}

.password-settings-actions {
  margin-top: 28px;
}

.password-settings-submit {
  width: 100%;
  padding: 12px 20px;
  font-size: 15px;
  font-weight: 600;
  color: #fff !important;
  background: linear-gradient(180deg, #1dd1a1 0%, #18bc9c 100%) !important;
  border: none !important;
  border-radius: 8px !important;
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(24, 188, 156, 0.35);
  transition: transform 0.15s ease, box-shadow 0.2s ease, opacity 0.2s ease;
}

.password-settings-submit:hover:not(:disabled) {
  box-shadow: 0 4px 14px rgba(24, 188, 156, 0.45);
  transform: translateY(-1px);
}

.password-settings-submit:active:not(:disabled) {
  transform: translateY(0);
}

.password-settings-submit:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  transform: none;
}

html[data-theme="dark"] .password-settings-card {
  background: #1e293b;
  border-color: rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

html[data-theme="dark"] .password-settings-title {
  color: #f1f5f9;
}

html[data-theme="dark"] .password-settings-desc {
  color: #94a3b8;
}

html[data-theme="dark"] .password-field label {
  color: #cbd5e1;
}

html[data-theme="dark"] .password-settings-input {
  background: #0f172a;
  border-color: #334155;
  color: #f8fafc;
}

html[data-theme="dark"] .password-settings-input:hover {
  border-color: #475569;
}

html[data-theme="dark"] .password-settings-input:focus {
  border-color: #18bc9c;
  box-shadow: 0 0 0 3px rgba(24, 188, 156, 0.25);
}
