/* ============================================================
   login 页 —— 背景图 + 顶部 LOGO + 大卡片（表单 + 二维码）
                + 右侧宣传 + 底部备案
   ============================================================ */
[v-cloak] { display: none !important; }

* { box-sizing: border-box; }

html, body { margin: 0; padding: 0; }

#login {
  min-height: 100vh;
  width: 100vw;
  background: url("https://v3.hbyidc.com/themes/web/www/static/banner/local65ab5f44a43e2.png") no-repeat center center;
  background-size: cover;
  background-attachment: fixed;
  overflow-x: hidden;
}

.login-page {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ====================== 顶部 LOGO 栏 ====================== */
.login-page-header {
  height: 80px;
  padding: 0 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: transparent;
  flex-shrink: 0;
  position: relative;
  z-index: 5;
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #1e2736;
}

.site-logo {
  height: 44px;
  max-width: 200px;
  object-fit: contain;
  display: block;
}

.site-name {
  display: none;
}

.header-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.header-right .lang-box {
  display: flex;
  align-items: center;
  font-size: 13px;
  color: #1e2736;
}

/* 语言选择器触发按钮 - 简约文字样式 */
.lang-trigger {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 0;
  border: none;
  background: transparent;
  cursor: pointer;
  user-select: none;
  transition: color .2s;
  line-height: 1;
  color: #4a5568;
}

.lang-trigger:hover {
  color: var(--color-primary);
  background: transparent;
}

.lang-trigger .lang-icon {
  display: none;
}

/* 头部右侧返回登录简约文字链接（oauth页使用） */
.header-back-link {
  display: inline-flex;
  align-items: center;
  font-size: 13px;
  color: #4a5568;
  text-decoration: none;
  padding: 4px 0;
  transition: color .2s;
  cursor: pointer;
}

.header-back-link:hover {
  color: var(--color-primary);
}

.lang-trigger .lang-current {
  font-size: 13px;
  font-weight: 400;
}

.lang-trigger .lang-arrow {
  font-size: 12px;
  margin-left: 0;
  transition: transform .2s;
}

/* Popover 内部样式（使用 popper-class） */
.lang-popover {
  padding: 12px 0 8px !important;
  border-radius: 10px !important;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.12) !important;
}

.lang-popover .lang-popover-title {
  font-size: 13px;
  color: #909399;
  font-weight: 500;
  padding: 0 16px 8px;
  border-bottom: 1px solid #f0f2f5;
  margin-bottom: 4px;
}

.lang-popover .lang-radio-group {
  display: flex;
  flex-direction: column;
}

.lang-popover .lang-radio-item {
  display: flex;
  align-items: center;
  margin: 0;
  padding: 8px 16px;
  height: auto;
  cursor: pointer;
  transition: background .2s;
}

.lang-popover .lang-radio-item:hover {
  background: #f5f7fa;
}

.lang-popover .lang-radio-item .el-radio__label {
  font-size: 14px;
  color: #1e2736;
  padding-left: 8px;
}

.lang-popover .lang-radio-item.is-checked .el-radio__label {
  color: var(--color-primary);
  font-weight: 500;
}

.header-right .btn a {
  color: #fff;
  text-decoration: none;
}

/* ====================== 中间区域 ====================== */
.login-container {
  flex: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 4vw;
}

/* 中间垂直包裹：介绍卡 + 登录卡，作为一个整体居中 */
.login-main-center {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 28px;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
}

/* 卡片内容水平居中 */
.login-intro-card,
.login-card-wrap {
  margin-left: auto;
  margin-right: auto;
}

/* 卡片上方的介绍卡（透明、渐变艺术字） */
.login-intro-card {
  width: 100%;
  padding: 0 12px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  text-align: center;
  position: relative;
  overflow: visible;
}

.login-intro-card::before,
.login-intro-card::after {
  content: none;
}

.intro-title {
  font-size: 32px;
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 4px;
  letter-spacing: 2px;
  color: #1e2736;
  font-family: "PingFang SC", "Microsoft YaHei", "思源黑体 CN", sans-serif;
}

.intro-subtitle {
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
  margin: 0;
  letter-spacing: 2px;
  color: #5a6678;
}

/* 卡片容器 */
.login-card-wrap {
  width: 100%;
  display: flex;
  justify-content: center;
}

/* ====================== 主卡片 ====================== */
.container-before {
  width: 820px;
  max-width: 92vw;
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  padding: 40px 48px 32px;
  position: relative;
  overflow: hidden;
  transition: all .3s ease;
}

/* 左上角斜切标签 */
.card-forget-tag {
  position: absolute;
  top: 0;
  right: 0;
  padding: 9px 20px;
  background: #eef1ff;
  color: var(--color-primary);
  font-size: 13px;
  border-bottom-left-radius: 14px;
  cursor: pointer;
  z-index: 3;
  transition: all .2s;
}

.card-forget-tag:hover {
  background: var(--color-primary);
  color: #fff;
}

.login {
  position: relative;
  font-family: PingFang SC, "Source Han Sans CN", sans-serif;
  font-size: 14px;
  color: #1e2736;
}

.login-text {
  margin-bottom: 22px;
}

.login-text-title {
  font-size: 26px;
  font-weight: 600;
  line-height: 1.2;
  color: #1e2736;
}

.login-text-regist {
  margin-top: 10px;
  font-size: 13px;
  color: #666b80;
}

.login-text-regist a {
  color: var(--color-primary);
  cursor: pointer;
  margin-left: 4px;
}

/* 主体：左二维码 + 分割线 + 右表单 */
.login-body {
  display: flex;
  align-items: stretch;
  gap: 30px;
}

.login-form-wrap {
  flex: 1;
  min-width: 0;
  order: 3;
}
.card-divider { order: 2; }
.login-qr-wrap { order: 1; }

.login-form { margin-top: 0; }

.login-top {
  display: flex;
  border-bottom: 1px solid #eef0f5;
  margin-bottom: 4px;
}

.login-email,
.login-phone {
  height: 40px;
  line-height: 40px;
  color: #666b80;
  cursor: pointer;
  padding: 0 2px;
  position: relative;
}

.login-email.active,
.login-phone.active {
  color: var(--color-primary);
}

.login-email.active::after,
.login-phone.active::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  background: var(--color-primary);
}

.login-email { margin-right: 28px; }

.active { color: var(--color-primary); }

.form-main { margin-top: 14px; }

.form-item { margin-top: 14px; }
.form-item:first-child { margin-top: 0; }

.input-with-select .el-input-group__prepend {
  background: #fff;
  width: 100px;
}

.code-item { display: flex; }

.code-btn {
  margin-left: 10px;
  color: #fff;
  min-width: 120px;
}

.rember-item {
  margin-top: 14px;
  display: flex;
  align-items: center;
  line-height: 1.5;
}

.read-text {
  flex: 1;
  font-size: 13px;
  line-height: 19px;
  padding: 0 10px;
  color: #606266;
  font-weight: 500;
}

.rember-item a {
  color: var(--color-primary);
  cursor: pointer;
}

.login-btn {
  width: 100%;
  height: 42px;
  font-size: 14px;
  letter-spacing: 1px;
}

.pass-btn {
  width: 100%;
  height: 42px;
  margin-left: 0 !important;
  margin-top: 10px;
}

.read-item { margin-top: 14px; }
.read-item a { color: var(--color-primary); cursor: pointer; }

.line-item { margin-top: 24px; }
.line-item .text { font-size: 14px; color: #888; padding: 0 10px; }

.login-type {
  display: flex;
  align-items: center;
  column-gap: 12px;
  flex-wrap: wrap;
}

.oauth-item {
  display: flex;
  align-items: center;
  padding: 4px;
  cursor: pointer;
  border-radius: 6px;
  transition: all .2s;
}

.oauth-item:hover { background: #f5f7fa; }

.oauth-img { width: 26px; height: 26px; }

/* 短竖向分割线（带 OR） */
.card-divider {
  width: 1px;
  margin: 30px 0 10px -12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.card-divider .divider-line {
  flex: 1;
  width: 0;
  border-left: 1px dashed #d8dce5;
  background: none;
}

.card-divider .divider-text {
  font-size: 12px;
  color: #a8acb8;
  padding: 10px 0;
  writing-mode: vertical-rl;
  letter-spacing: 2px;
}

/* 左侧二维码区域（含公众号二维码 + 下方三方登录，整体左对齐） */
.login-qr-wrap {
  width: 240px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 14px;
  padding-top: 10px;
}

/* 公众号下方三方登录 */
.qr-oauth-divider {
  width: 100%;
  text-align: left;
  font-size: 12px;
  color: #a8acb8;
  margin-top: 6px;
  position: relative;
  display: block;
}
.qr-oauth-divider::before,
.qr-oauth-divider::after {
  content: none;
}
.qr-oauth-divider span {
  background: transparent;
  padding: 0;
  position: relative;
  z-index: 1;
}

.qr-oauth-list {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  column-gap: 6px;
  flex-wrap: wrap;
  row-gap: 8px;
}

.qr-box {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  width: 100%;
}

.qr-box-tips {
  font-size: 12px;
  color: #a8acb8;
  font-weight: 400;
  margin: 0 0 10px;
  text-align: left;
  width: 100%;
}

.qr-box-img {
  width: 190px;
  height: 190px;
  position: relative;
  border: 1px solid #eef0f5;
  border-radius: 8px;
  padding: 8px;
  background: #fff;
}

.qr-box-img img {
  width: 100%;
  height: 100%;
  display: block;
  cursor: pointer;
}

.qr-expire-time {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 8px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 13px;
  border-radius: 8px;
  cursor: pointer;
}

.qr-expire-time .el-icon-refresh-right { font-size: 28px; }

.qr-box-select-account {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: 100%;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
}

.qr-box-select-account .qr-box-back {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: var(--color-primary);
  cursor: pointer;
}

.qr-box-select-account-title { font-size: 13px; color: #666; }

/* 右侧宣传栏已移除，该模块改为卡片上方的 .login-intro-card */
.login-side-panel { display: none !important; }

/* ====================== 底部备案 ====================== */
.login-page-footer {
  min-height: 56px;
  padding: 14px 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  column-gap: 0;
  row-gap: 6px;
  font-size: 12px;
  color: #4a5568;
  background: transparent;
  flex-shrink: 0;
  position: relative;
  z-index: 5;
  line-height: 1.6;
}

.login-page-footer > *:not(:last-child)::after {
  content: '·';
  display: inline-block;
  margin: 0 12px;
  color: #c5c8d0;
}

.login-page-footer .footer-copyright,
.login-page-footer .footer-link {
  color: #4a5568;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  transition: color .2s;
}

.login-page-footer a.footer-link:hover {
  color: #1f6feb;
}

.footer-police-icon {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 4px;
  background: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1024 1024'><path fill='%231f6feb' d='M512 64 128 192v320c0 213.333 128 384 384 448 256-64 384-234.667 384-448V192L512 64zm0 96 288 96v240c0 170.667-96 304-288 358.4-192-54.4-288-187.733-288-358.4V256l288-96zm-32 256v96h-96v64h96v160h64V576h96v-64h-96v-96h-64z'/></svg>") no-repeat center / contain;
  flex-shrink: 0;
}

/* 兼容旧 class（如其他页面仍使用 footer-beian） */
.footer-beian {
  color: #4a5568;
  text-decoration: none;
}

/* ====================== 响应式 ====================== */
/* 笔记本中等尺寸（1366/1440/1536） */
@media screen and (max-width: 1440px) {
  .login-container { padding: 40px 4vw; }
  .container-before { max-width: 880px; padding: 44px 52px 36px; }
  .login-main-center { max-width: 820px; margin-top: 0; }
  .intro-title { font-size: 34px; letter-spacing: 2px; margin-bottom: 2px; }
  .intro-subtitle { font-size: 16px; letter-spacing: 3px; }
  .login-text { margin-bottom: 20px; }
  .login-text-title { font-size: 24px; }
  .login-text-regist { font-size: 12px; }
  .login-body { gap: 28px; }
  .form-main { margin-top: 14px; }
  .form-item { margin-top: 14px; }
  .login-btn, .pass-btn { height: 42px; font-size: 14px; letter-spacing: 1px; }
  .oauth-img { width: 24px; height: 24px; }
  .login-qr-wrap { width: 220px; }
  .qr-box-img { width: 160px; height: 160px; }
}

/* 小屏笔记本 / 大平板（1280） */
@media screen and (max-width: 1280px) {
  .login-container { padding: 30px 5vw; }
  .container-before { width: 100%; max-width: 780px; padding: 36px 40px 30px; }
  .login-main-center { max-width: 780px; margin-top: 0; }
  .intro-title { font-size: 28px; letter-spacing: 2px; }
  .intro-subtitle { font-size: 14px; letter-spacing: 3px; }
  .login-text { margin-bottom: 16px; }
  .login-text-title { font-size: 22px; }
  .login-body { gap: 24px; }
  .form-main { margin-top: 12px; }
  .form-item { margin-top: 12px; }
  .login-btn, .pass-btn { height: 40px; font-size: 14px; }
  .oauth-img { width: 22px; height: 22px; }
  .login-qr-wrap { width: 200px; }
  .qr-box-img { width: 150px; height: 150px; }
}

@media screen and (max-width: 1024px) {
  .login-container { padding: 30px 20px; }
  .container-before { width: 100%; max-width: 720px; }
  .login-main-center { margin-top: 0; }
  .intro-title { font-size: 24px; }
  .intro-subtitle { font-size: 13px; }
}

@media screen and (max-width: 750px) {
  #login { background-attachment: scroll; }
  .login-page-header { height: 64px; padding: 0 16px; }
  .site-logo { height: 32px; }
  .site-name { font-size: 15px; }
  .login-container { padding: 20px 14px; }
  .container-before { padding: 40px 24px 28px; border-radius: 10px; }
  .login-intro-card { padding: 4px 4px 0; }
  .intro-title { font-size: 22px; margin-bottom: 6px; }
  .intro-subtitle { font-size: 13px; }
  .login-body { flex-direction: column; gap: 0; }
  .card-divider {
    width: 100%;
    height: auto;
    flex-direction: row;
    margin: 24px 0;
  }
  .card-divider .divider-line {
    height: 0;
    width: auto;
    flex: 1;
    border-top: 1px dashed #d8dce5;
    background: none;
  }
  .card-divider .divider-text {
    writing-mode: horizontal-tb;
    padding: 0 14px;
  }
  .login-qr-wrap { width: 100%; padding-top: 0; }
  .login-text-title { font-size: 24px; }
  .login-btn { height: 46px; font-size: 16px; }
  .login-page-footer {
    min-height: auto;
    padding: 12px 16px;
    flex-direction: column;
    gap: 4px;
    text-align: center;
  }
}

/* ===== 大屏适配（24寸 / 27寸 / 32寸）===== */
/* 中大屏 1600+ */
@media screen and (min-width: 1600px) {
  .login-container { padding: 60px 4vw; }
  .login-main-center { max-width: 960px; gap: 32px; }
  .container-before { width: 960px; max-width: 960px; padding: 52px 64px 44px; border-radius: 14px; }
  .intro-title { font-size: 38px; letter-spacing: 3px; margin-bottom: 6px; }
  .intro-subtitle { font-size: 16px; letter-spacing: 3px; }
  .login-text-title { font-size: 30px; }
  .login-text-regist { font-size: 14px; }
  .login-body { gap: 40px; }
  .form-item { margin-top: 16px; }
  .login-btn, .pass-btn, .type-btn { height: 46px; font-size: 15px; letter-spacing: 2px; }
  .login-qr-wrap { width: 260px; }
  .qr-box-img { width: 190px; height: 190px; }
  .oauth-img { width: 28px; height: 28px; }
}

/* 超大屏 1920+（32寸级别） */
@media screen and (min-width: 1920px) {
  .login-container { padding: 80px 4vw; }
  .login-main-center { max-width: 1080px; gap: 36px; }
  .container-before { width: 1080px; max-width: 1080px; padding: 60px 76px 50px; border-radius: 16px; }
  .intro-title { font-size: 44px; letter-spacing: 4px; margin-bottom: 8px; }
  .intro-subtitle { font-size: 18px; letter-spacing: 4px; }
  .login-text-title { font-size: 34px; }
  .login-text-regist { font-size: 15px; }
  .login-body { gap: 48px; }
  .form-item { margin-top: 18px; }
  .login-btn, .pass-btn, .type-btn { height: 50px; font-size: 16px; letter-spacing: 2px; }
  .login-qr-wrap { width: 290px; }
  .qr-box-img { width: 210px; height: 210px; }
  .oauth-img { width: 30px; height: 30px; }
}
