/* ===== 注册页 - 左右分栏布局 ===== */

/* 全局容器 */
#regist {
  width: 100%;
  min-height: 100vh;
}
.auth-wrapper {
  width: 100%;
  min-height: 100vh;
}
.auth-inner {
  display: flex;
  min-height: 100vh;
  margin: 0;
}

/* 左侧背景图 */
.auth-left {
  display: none;
  flex: 0 0 58.333%;
  max-width: 58.333%;
  align-items: center;
  justify-content: center;
  padding: 40px;
  background: #f7f7f9;
}
.auth-left-img {
  width: 100%;
  display: flex;
  justify-content: center;
}
.auth-left-img img {
  max-width: 680px;
  width: 100%;
  height: auto;
  object-fit: contain;
}

/* 右侧表单 */
.auth-right {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  background: #fff;
  overflow-y: auto;
  font-size: 14px;
}
.auth-form-wrapper {
  width: 100%;
  max-width: 420px;
}

/* Logo */
.auth-logo {
  margin-bottom: 20px;
}
.auth-logo img {
  height: 45px;
  cursor: pointer;
}

/* 标题 */
.auth-title {
  font-size: 22px;
  font-weight: 600;
  color: #566a7f;
  margin: 0 0 6px 0;
  line-height: 1.4;
}
.auth-subtitle {
  font-size: 14px;
  color: #666;
  margin: 0 0 16px 0;
  line-height: 1.5;
}

/* 表单区 */
.login-form {
  margin-top: 0;
}
.login-top {
  display: flex;
  flex-direction: row;
  margin-bottom: 4px;
}
.login-email,
.login-phone {
  height: 28px;
  color: #666B80;
  cursor: pointer;
  font-size: 14px;
  padding-bottom: 2px;
}
.login-email {
  margin-right: 20px;
}
.active {
  color: var(--color-primary);
  border-bottom: 2px solid var(--color-primary);
}
.form-main {
  margin-top: 0;
}
.form-item {
  margin-top: 8px;
}
.empty-input {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  padding: 0;
  border: 0;
}

/* 自定义字段表单 */
.custom-form {
  margin-top: 8px;
}
.custom-form .el-form-item__label {
  line-height: 1;
}
.custom-form .el-select {
  width: 100%;
}

/* 输入框 */
.input-with-select .el-input-group__prepend {
  background: #FFFFFF;
  width: 60px;
}

/* 验证码 */
.code-item {
  display: flex;
  flex-direction: row;
}
.code-btn {
  margin-left: 10px;
  background: var(--color-primary);
  color: #FFFFFF;
}

/* 协议勾选 */
.read-item {
  margin-top: 6px;
  display: flex;
  align-items: flex-start;
}
.read-item a {
  color: var(--color-primary);
  cursor: pointer;
}
.read-text {
  flex: 1;
  font-size: 13px;
  line-height: 19px;
  padding: 0 8px;
  color: #606266;
  font-weight: 400;
}

/* 按钮 */
.login-btn {
  width: 100%;
  height: 42px;
  font-size: 15px;
  border-radius: 6px;
  background: linear-gradient(135deg, #3a8ffe 0%, #1a56db 100%) !important;
  border-color: #3a8ffe !important;
  box-shadow: 0 2px 6px 0 rgba(58, 143, 254, 0.35);
  transition: all 0.3s;
}
.login-btn:hover {
  background: linear-gradient(135deg, #2b7df6 0%, #1248c4 100%) !important;
  border-color: #2b7df6 !important;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px 0 rgba(58, 143, 254, 0.45);
}

/* 底部链接 */
.auth-bottom-link {
  text-align: center;
  margin-top: 14px;
  font-size: 14px;
  color: #666;
}
.auth-bottom-link a {
  color: var(--color-primary);
  cursor: pointer;
  font-weight: 500;
}
.auth-bottom-link a:hover {
  text-decoration: underline;
}

/* ===== 大屏显示左侧图片 ===== */
@media screen and (min-width: 992px) {
  .auth-left {
    display: flex;
  }
}

/* ===== 小屏适配 ===== */
@media screen and (max-width: 991px) {
  .auth-right {
    padding: 30px 20px;
  }
  .auth-form-wrapper {
    max-width: 100%;
  }
}
@media screen and (max-width: 750px) {
  .auth-right {
    padding: 20px 16px;
  }
  .auth-title {
    font-size: 20px;
  }
  .login-btn {
    font-size: 16px;
    height: 44px;
  }
  .read-item .check-div {
    display: flex;
    white-space: inherit;
  }
}
