* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

/* 验证码相关样式 */
.form-input {
  vertical-align: top;
  position: relative;
  width: 100%;
}

.form-unit {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.qc-log-input-text {
  font-size: 14px;
  height: 44px;
  width: 100%;
  display: inline-block;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  color: #333;
  vertical-align: middle;
  padding: 10px;
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  line-height: 1;
  transition: border-color 0.3s;
}

.qc-log-input-text:focus {
  outline: none;
  border-color: #0080FF;
  box-shadow: 0 0 0 2px rgba(0, 128, 255, 0.1);
}

.qc-log-btn {
  background-color: #0080ff;
  border: none;
  color: #fff;
  border-radius: 4px;
  outline: 0;
  cursor: pointer;
  font-size: 14px;
  transition: background-color 0.3s;
  height: 44px;
  white-space: nowrap;
}

.qc-log-btn:hover {
  background-color: #6696ff;
}

.qc-log-btn:disabled {
  background-color: #c0c4cc;
  cursor: not-allowed;
}

.qc-log-btn.xl {
  flex-shrink: 0;
  margin-left: 1rem;
  width: 10rem;
}

/* 图形验证码容器样式 */
.form-verify {
  position: relative;
  width: 100%;
}

.form-verify .form-unit {
  align-items: center;
  justify-content: space-between;
}

.form-verify .qc-log-input-text {
  flex: 1;
  margin-right: 10px;
  width: 100%;
}

/* 验证码图片样式 - 自适应容器宽度 */
.verifycode {
  height: 44px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  cursor: pointer;
  vertical-align: middle;
  background: #f4f4f4;
  display: inline-block;
  flex-shrink: 0;
  object-fit: cover;
  transition: all 0.3s ease;
}
.form-unit img {
    width: 100%;
}

/* 图形验证码自适应不同屏幕尺寸 */
@media (max-width: 480px) {
  .verifycode {
    width: 100px;
  }
  .fm-verify:not(.form-verify) .qc-log-btn {
    width: 100px;
    font-size: 12px;
  }
}

/* 错误提示样式 */
.form-input-help {
  position: absolute;
  top: -25px;
  left: 0;
  width: 100%;
  text-align: left;
  color: rgb(225, 80, 74);
  font-size: 14px;
  margin: 0;
  z-index: 10;
  background: #fff;
  padding: 2px 0;
  display: none;
}

/* 短信验证码容器样式 */
.fm-verify:not(.form-verify) {
  position: relative;
  width: 100%;
}

.fm-verify:not(.form-verify) .form-unit {
  align-items: center;
  justify-content: space-between;
}

.fm-verify:not(.form-verify) .qc-log-input-text {
  flex: 1;
  margin-right: 10px;
  width: 100%;
}

.fm-verify:not(.form-verify) .form-input-help {
  position: absolute;
  top: -25px;
  left: 0;
  width: 100%;
  text-align: left;
  color: rgb(225, 80, 74);
  font-size: 14px;
  margin: 0;
  z-index: 10;
  background: #fff;
  padding: 2px 0;
}

.fm-verify:not(.form-verify) .qc-log-btn {
  background: #f4f4f4;
  border: 1px solid #dcdfe6;
  color: #333;
  margin-left: 10px;
  width: 10rem; /* 与图形验证码宽度一致 */
  flex-shrink: 0;
  text-align: center;
  font-size: 13px; /* 稍微调小字体以适应按钮 */
}

.fm-verify:not(.form-verify) .qc-log-btn:hover {
  background: #e0e0e0;
}

.fm-verify:not(.form-verify) .qc-log-btn:disabled {
  background: #c0c4cc;
  color: #666;
  cursor: not-allowed;
}

/* 自定义提示组件样式 */
.custom-toast {
  position: fixed;
  top: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 9999;
  min-width: 300px;
  max-width: 500px;
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  border-left: 4px solid #409eff;
  overflow: hidden;
  opacity: 0;
  transition: all 0.3s ease;
  transform: translateX(-50%) translateY(-20px);
}

.custom-toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.custom-toast.success {
  border-left-color: #67c23a;
}

.custom-toast.warning {
  border-left-color: #e6a23c;
}

.custom-toast.error {
  border-left-color: #f56c6c;
}

.custom-toast-content {
  display: flex;
  align-items: center;
  padding: 16px 20px;
  font-size: 14px;
  color: #333;
}

.custom-toast-icon {
  margin-right: 12px;
  font-size: 18px;
  flex-shrink: 0;
}

.custom-toast.success .custom-toast-icon {
  color: #67c23a;
}

.custom-toast.warning .custom-toast-icon {
  color: #e6a23c;
}

.custom-toast.error .custom-toast-icon {
  color: #f56c6c;
}

.custom-toast-close {
  margin-left: auto;
  cursor: pointer;
  color: #909399;
  font-size: 16px;
  flex-shrink: 0;
  transition: color 0.3s;
}

.custom-toast-close:hover {
  color: #606266;
}

/* 响应式设计 */
@media (max-width: 768px) {
  .custom-toast {
    min-width: 280px;
    max-width: 90%;
    left: 5%;
    transform: translateY(-20px);
  }

  .custom-toast.show {
    transform: translateY(0);
  }

  .custom-toast-content {
    padding: 12px 16px;
    font-size: 13px;
  }

  .custom-toast-icon {
    font-size: 16px;
    margin-right: 10px;
  }
}
.login_bg {
  width: 100%;
  height: 57.5rem;
  background: url(/static/img/login/login_bg.png) no-repeat;
  background-size: 100% 100%;
  position: relative;
  padding: 15px;
}
.login_box {
  width: 31.25rem;
  height: auto;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0px 4px 10px 0px rgba(159, 167, 182, 0.3);
  border-radius: 1.25rem;
  position: absolute;
  right: 18.75rem;
  top: 7.19rem;
  padding: 2.5rem;
}
.login_title {
  font-weight: 500;
  font-size: 1.75rem;
  color: #16181a;
  text-align: left;
  margin-bottom: 1.5rem;
}
.form_item {
  margin-bottom: 1.25rem;
}
/* 注册页独立输入框样式，避免依赖 login.css */
.el-input-wrapper {
  position: relative;
}

/* 表单项中的错误提示样式 */
.el-input-wrapper .form-input-help {
  position: absolute;
  top: -25px;
  left: 0;
  width: 100%;
  text-align: left;
  color: rgb(225, 80, 74);
  font-size: 14px;
  margin: 0;
  z-index: 10;
  background: #fff;
  padding: 2px 0;
  display: none;
}

/* form-group 中的错误提示样式 */
.form-group {
  position: relative;
  margin-bottom: 1.25rem;
}

.form-group .form-input-help {
  position: absolute;
  top: -25px;
  left: 0;
  width: 100%;
  text-align: left;
  color: rgb(225, 80, 74);
  font-size: 14px;
  margin: 0;
  z-index: 10;
  background: #fff;
  padding: 2px 0;
  display: none;
}

/* 通用样式类 */
.full-width {
  width: 100%;
}

.error-message {
  color: #f56c6c;
  font-size: 14px;
  margin-bottom: 5px;
  text-align: left;
  display: none;
}

.login-icon-small {
  width: 18px;
  height: 18px;
}

.login-icon-tiny {
  width: 16px;
  height: 18px;
}

.form-input-error {
  text-align: left;
  color: rgb(225, 80, 74);
  font-size: 14px;
  display: none;
}

.input-hidden {
  display: none;
}

.text-center {
  text-align: center;
}

.text-gray {
  color: #666;
}

.btn-full-width {
  width: 100%;
}

/* 表单控件样式优化 */

.form-control {
  width: 100%;
  height: 44px;
  padding: 10px;
  border: 1px solid #dcdfe6;
  border-radius: 4px;
  font-size: 14px;
  transition: border-color 0.3s;
  background-color: #fff;
  color: #333;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  cursor: pointer;
}

.form-control:focus {
  outline: none;
  border-color: #0080FF;
  box-shadow: 0 0 0 2px rgba(0, 128, 255, 0.1);
}

/* 修复select下拉选项样式 */
.form-control option {
  background-color: #fff;
  color: #333;
  padding: 8px 10px;
}

/* 修复下拉列表样式 - 防止黑色块和抖动 */
select.form-control {
  background-color: #fff;
  color: #333;
  background-image: url("data:image/svg+xml;charset=utf-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 40px;
}

select.form-control:focus {
  background-color: #fff;
  color: #333;
  border-color: #0080FF;
  box-shadow: 0 0 0 2px rgba(0, 128, 255, 0.1);
}

/* 移除浏览器默认的下拉箭头 */
select.form-control::-ms-expand {
  display: none;
}

select.form-control::-ms-value {
  background: transparent;
}

/* Firefox优化 */
@-moz-document url-prefix() {
  select.form-control {
    background-image: url("data:image/svg+xml;charset=utf-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='currentColor' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
  }

  select.form-control option {
    background-color: #fff;
    color: #333;
  }
}

/* Chrome/Safari特殊处理 - 移除默认箭头 */
select.form-control::-webkit-calendar-picker-indicator {
  display: none;
}

/* Webkit浏览器下拉箭头 */
select.form-control::-webkit-scrollbar {
  width: 0;
  display: none;
}

/* 表单项间距 */
.form_item {
  margin-bottom: 1.88rem;
  position: relative;
}

/* 下拉框hover状态 */
.form-control:hover {
  border-color: #c0c4cc;
}

/* 下拉框disabled状态 */
.form-control:disabled {
  background-color: #f5f7fa;
  border-color: #e4e7ed;
  color: #c0c4cc;
  cursor: not-allowed;
}

.login_img {
  margin-left: 10px;
  margin-top: 10px;
  position:absolute;
  display: none;
}

.el-input__inner {
  width: 100%;
  height: 40px;
  padding-left: 10px;
  border-radius: 0.31rem;
  border: 1px solid #dcdfe6;
  box-sizing: border-box;
}

.el-input__inner::placeholder {
  color: #bfbfbf;
}

.el-input__inner:placeholder-shown {
  border-color: #C0C4CC;
}

.el-input__inner:focus {
  border-color: #0080ff;
}

.el-input__inner:hover {
  border-color: #C0C4CC;
}

.el-input__inner:focus-visible,
.el-input__inner:focus {
  outline: none;
  border-color: #0080ff;
}

@media (max-width: 768px) {
  .login_bg {
    position: static;
    height: auto;
  }
  .login_box {
    width: 100%;
    position: static;
    padding: 15px;
  }
  .login_title {
    font-size: 24px;
    text-align: center;
    margin: 20px 0;
  }
  .form_item {
    margin-bottom: 15px;
  }
}
