/* 登录页面专属样式 */

/* 标签和错误信息同行布局 */
.label-error-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 5px;
}

.label-error-row .control-label {
  margin: 0;
  flex-shrink: 0;
}

.label-error-row .error-message {
  margin: 0;
  text-align: right;
  flex-shrink: 0;
}

/* 表单校验样式 */
.form-group.has-error .form-control {
  border-color: #e74c3c !important;
}

.form-group.has-error .form-control:focus {
  border-color: #e74c3c !important;
}

.form-group.has-error .help-block {
  color: #e74c3c;
  font-size: 12px;
  margin-top: 5px;
  display: block;
}

.form-group.has-error .control-label {
  color: #e74c3c;
}

/* 错误提示样式 */
.error-message {
  color: #e74c3c;
  font-size: 12px;
  display: none;
}

.error-message::before {
  content: "✖";
  font-weight: bolder;
  margin-right: 3px;
}

.form-group.has-error .error-message {
  display: block;
}

/* 成功状态样式 */
.form-group.has-success .form-control {
  border-color: #27ae60;
}

.form-group.has-success .form-control:focus {
  border-color: #27ae60;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 0 3px rgba(39, 174, 96, 0.1);
}

.success-message {
  color: #27ae60;
  font-size: 12px;
  display: block;
}

.success-message::before {
  content: "✓";
  font-weight: bolder;
  margin-right: 3px;
}

/* 表单控件基础样式增强 */
.form-control {
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

/* 密码输入框包装器 */
.pwd-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.pwd-wrap .form-control {
  flex: 1;
  padding-right: 40px;
}

/* 密码查看按钮 */
.pwd-eye {
  position: absolute;
  right: 12px;
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #999;
  font-size: 16px;
  z-index: 10;
}

.pwd-eye:hover {
  color: #666;
}

.pwd-eye .eye-icon.closed {
  color: #999;
}

/* 密码框眼睛图标容器 */
.password-eye-container {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
}

/* 眼睛图标基础样式 */
.eye-icon {
  font-size: 18px;
  color: #999;
  transition: color 0.3s ease;
  width: 12px;
  height: 12px;
}

/* 眼睛图标悬停效果 */
.eye-icon:hover {
  color: #666;
}

.form-control:focus {
  outline: none;
  border-color: #3498db;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 0 3px rgba(52, 152, 219, 0.1);
}

/* 隐藏number类型输入框的加减按钮 */
.form-control[type="number"]::-webkit-outer-spin-button,
.form-control[type="number"]::-webkit-inner-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.form-control[type="number"] {
  -moz-appearance: textfield;
}

/* 图形验证码容器样式 */
.checkcode-container {
  display: flex;
  align-items: center;
  gap: 8px;
}

.checkcode-input {
  flex: 1;
  min-width: 0;
  height: 40px;
  font-size: 14px;
  border-radius: 4px 0 0 4px;
  border-right: none;
}

.checkcode-input:focus {
  border-color: #3498db;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 0 3px rgba(52, 152, 219, 0.1);
}

.checkcode-input:focus+.captcha-img {
  border-color: #3498db;
}

.captcha-img {
  height: 40px;
  width: auto;
  cursor: pointer;
  border-radius: 0 4px 4px 0;
  border-left: none;
  transition: border-color 0.3s ease;
}

.captcha-img:hover {
  border-color: #3498db;
}