/**
 * 修改密码页面样式
 */

.change-password-page .page-header {
  margin-bottom: var(--spacing-lg);
}

.change-password-card {
  max-width: 640px;
  margin: 0 auto;
}

.change-password-card .card-body {
  padding: 32px;
}

.change-password-form .form-group {
  margin-bottom: var(--spacing-lg);
}

.change-password-form .form-group:last-child {
  margin-bottom: 0;
}

@media (min-width: 640px) {
  .change-password-form .form-group {
    display: grid;
    grid-template-columns: 150px 1fr;
    align-items: center;
    gap: 16px;
  }

  .change-password-form .form-group label {
    margin: 0;
    text-align: right;
    padding-right: 8px;
    white-space: nowrap;
  }

  .change-password-form .form-group .form-control,
  .change-password-form .form-group .form-text {
    grid-column: 2 / 3;
  }
}

.change-password-form .form-text {
  margin-top: 6px;
}

.change-password-form .form-actions {
  justify-content: flex-start;
}

@media (min-width: 640px) {
  .change-password-form .form-actions {
    justify-content: flex-end;
  }
}

/* 验证码容器样式 */
.captcha-container {
  display: flex;
  gap: 12px;
  align-items: center;
}

.captcha-container .form-control {
  flex: 1;
  max-width: 150px;
}

.captcha-image-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 8px;
}

.captcha-image-wrapper img {
  border: 1px solid var(--border-color);
  border-radius: 4px;
  background: #f5f5f5;
  cursor: pointer;
  transition: opacity 0.3s ease;
}

.captcha-image-wrapper img:hover {
  opacity: 0.8;
}

.captcha-refresh {
  background: var(--primary-color);
  color: white;
  border: none;
  border-radius: 4px;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s ease;
}

.captcha-refresh:hover {
  background: var(--secondary-color);
}

.captcha-refresh i {
  font-size: 14px;
}
