/* ============================================================
   登录页（/v2/login）· 底部导航「卖账号 / 消息 / 我的」跳转页
   ============================================================ */

body.login {
  background: #f3f5f9;
}

.lg {
  position: relative;
  min-height: 100vh;
  overflow-x: clip;
}

.lg-bg {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 0;
  width: 100%;
  height: 286px;
  object-fit: cover;
  pointer-events: none;
}

/* ---------- 导航 ---------- */
.lg-nav {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  height: 44px;
  padding: 0 12px;
}

.lg-nav__back {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  color: var(--kr-blue-500);
}

.lg-nav__back svg {
  width: 22px;
  height: 22px;
}

.lg-nav__title {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  color: var(--color-text);
  font-size: 18px;
  font-weight: 500;
  white-space: nowrap;
}

.lg-nav__switch {
  margin-left: auto;
  padding: 0;
  color: var(--kr-blue-500);
  font-size: 14px;
  font-weight: 500;
  white-space: nowrap;
}

/* ---------- 内容 ---------- */
.lg-body {
  position: relative;
  z-index: 1;
  padding: 0 12px 90px;
}

.lg-logo {
  position: absolute;
  top: 2px;
  right: 18px;
  width: 92px;
  height: 86px;
  pointer-events: none;
}

.lg-title {
  margin: 12px 0 0 12px;
  color: var(--color-text);
  font-size: 24px;
  font-weight: 500;
  line-height: 34px;
}

.lg-desc {
  margin-left: 12px;
  color: var(--color-text);
  font-size: 16px;
  font-weight: 400;
  line-height: 22px;
}

.lg-form {
  margin-top: 12px;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.lg-field {
  position: relative;
  display: flex;
  align-items: center;
  height: 64px;
  padding: 0 12px;
}

/* 验证码行：发送验证码后才展开 */
.lg-code {
  max-height: 0;
  overflow: hidden;
  visibility: hidden;
  transition: max-height .3s ease, visibility .3s;
}

.lg-code.is-open {
  max-height: 64px;
  visibility: visible;
}

.lg-code .lg-field::before {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 1px;
  background: #ebedf0;
  transform: scaleY(.5);
  transform-origin: 0 0;
}

.lg-field input {
  flex: 1;
  min-width: 0;
  height: 24px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #323233;
  font-family: inherit;
  font-size: 16px;
  font-weight: 300;
}

.lg-field input::placeholder {
  color: #ccc;
  font-weight: 300;
}

.lg-send {
  flex: 0 0 auto;
  margin-left: 8px;
  padding: 0;
  color: var(--kr-blue-500);
  font-size: 15px;
  font-weight: 500;
  white-space: nowrap;
}

.lg-send:disabled {
  color: #c3c9ff;
}

.lg-submit {
  display: block;
  width: 100%;
  height: 50px;
  margin-top: 34px;
  border-radius: 12px;
  background: var(--kr-blue-500);
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  transition: background-color .2s, transform .1s;
}

.lg-submit:active {
  background: #4054e0;
  transform: scale(.995);
}

/* ---------- 协议 ---------- */
.lg-agree {
  display: flex;
  align-items: flex-start;
  margin-top: 20px;
  color: var(--color-text-weak);
  font-size: 12px;
}

.lg-check {
  position: relative;
  flex: 0 0 auto;
  width: 12px;
  height: 12px;
  margin: 3px 8px 0 0;
  border: 1px solid var(--kr-blue-500);
  border-radius: 3px;
  cursor: pointer;
}

.lg-check.is-checked {
  background: var(--kr-blue-500);
}

.lg-check.is-checked::after {
  content: "";
  position: absolute;
  top: 1px;
  left: 3px;
  width: 4px;
  height: 7px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(42deg);
}

.lg-agree__text {
  line-height: 1.5;
}

.lg-link {
  color: var(--kr-blue-500);
}

.lg-issue {
  margin-top: 10px;
  color: var(--color-text-weak);
  font-size: 12px;
  line-height: 17px;
  text-align: center;
}

/* ---------- 轻提示 ---------- */
.lg-toast {
  position: fixed;
  top: 46%;
  left: 50%;
  z-index: 999;
  width: max-content;
  max-width: 80vw;
  padding: 10px 16px;
  border-radius: 8px;
  background: rgba(0, 0, 0, .78);
  color: #fff;
  font-size: 13px;
  line-height: 1.5;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -50%) scale(.96);
  transition: opacity .2s, transform .2s;
}

.lg-toast.is-show {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

@media (hover: hover) {
  .lg-link:hover,
  .lg-issue:hover,
  .lg-nav__switch:hover {
    color: #7587ff;
  }
}
