/* ==========================================================================
   登录页样式（移动端 · 党建红）
   ========================================================================== */

.lg-page {
  padding-bottom: 34px;
  background:
    radial-gradient(120% 60% at 50% 0%, rgba(193, 39, 45, .10), transparent 62%),
    var(--bg);
}

/* ---------------------------------------------------------------- 顶部标识 */
.lg-top {
  position: relative;
  padding: calc(26px + var(--safe-t, 0px)) 18px 16px;
  text-align: center;
}

.lg-back {
  position: absolute;
  left: 10px;
  top: calc(12px + var(--safe-t, 0px));
  width: 34px;
  height: 34px;
  border: 0;
  background: rgba(255, 255, 255, .75);
  border-radius: 11px;
  color: var(--ink-2);
  display: grid;
  place-items: center;
  cursor: pointer;
  backdrop-filter: blur(6px);
}

.lg-back svg {
  width: 19px;
  height: 19px;
}

.lg-logo {
  width: 64px;
  height: 64px;
  margin: 0 auto 11px;
  border-radius: 20px;
  background: #fff;
  display: grid;
  place-items: center;
  box-shadow: 0 14px 30px -18px rgba(160, 18, 24, .85), 0 0 0 1px rgba(193, 39, 45, .07);
}

.lg-logo img {
  width: 46px;
  height: 46px;
  object-fit: contain;
  display: block;
}

.lg-top h1 {
  margin: 0 0 5px;
  font-size: 21px;
  letter-spacing: .14em;
  color: var(--red-deep);
  font-weight: 700;
}

.lg-top p {
  margin: 0;
  font-size: 11px;
  letter-spacing: .26em;
  color: var(--ink-3);
}

/* ---------------------------------------------------------------- 卡片 */
.lg-card {
  margin: 4px 16px 0;
  background: #fff;
  border: 1px solid #f1efea;
  border-radius: 20px;
  padding: 16px 16px 18px;
  box-shadow: 0 20px 44px -32px rgba(27, 31, 36, .5);
}

.lg-tabs {
  display: flex;
  gap: 4px;
  background: #f7f6f3;
  border-radius: 13px;
  padding: 4px;
  margin-bottom: 13px;
}

.lg-tab {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 9px 0;
  font-size: 12.5px;
  font-family: inherit;
  color: var(--ink-3);
  border-radius: 10px;
  cursor: pointer;
  transition: background .16s ease, color .16s ease;
}

.lg-tab.on {
  background: #fff;
  color: var(--red-deep);
  font-weight: 700;
  box-shadow: 0 2px 8px rgba(27, 31, 36, .08);
}

.lg-hint {
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.7;
  margin-bottom: 13px;
}

.lg-field {
  margin-bottom: 12px;
}

.lg-field label {
  display: block;
  font-size: 11.5px;
  color: var(--ink-3);
  margin-bottom: 6px;
}

.lg-field input {
  width: 100%;
  height: 46px;
  border: 1px solid var(--line);
  background: #faf9f7;
  border-radius: 13px;
  padding: 0 14px;
  font-size: 14.5px;
  font-family: inherit;
  color: var(--ink);
  outline: 0;
  transition: border-color .16s ease, background .16s ease, box-shadow .16s ease;
  appearance: none;
}

.lg-field input::placeholder {
  color: #b6bbc2;
}

.lg-field input:focus {
  border-color: #e2a6a3;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(193, 39, 45, .06);
}

.lg-pwd {
  position: relative;
}

.lg-pwd input {
  padding-right: 68px;
}

.lg-eye {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--ink-3);
  font-size: 11.5px;
  font-family: inherit;
  padding: 8px 9px;
  cursor: pointer;
  border-radius: 8px;
}

.lg-eye:active {
  background: #f4f3ef;
}

.lg-send {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: var(--red-soft);
  color: var(--red);
  font-size: 11.5px;
  font-weight: 600;
  font-family: inherit;
  padding: 9px 12px;
  border-radius: 10px;
  cursor: pointer;
  white-space: nowrap;
}

.lg-send.off {
  background: #f2f3f5;
  color: #9aa0ab;
}

.lg-dev {
  margin: 0 0 11px;
  font-size: 11px;
  line-height: 1.65;
  color: #14603b;
  background: #eaf6f0;
  border-radius: 10px;
  padding: 9px 11px;
}

.lg-err {
  margin: 2px 0 11px;
  font-size: 11.5px;
  line-height: 1.6;
  color: #a01218;
  background: var(--red-soft);
  border-radius: 10px;
  padding: 9px 11px;
}

.lg-submit {
  width: 100%;
  height: 48px;
  margin-top: 4px;
  border: 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #c1272d, #a01218);
  color: #fff;
  font-size: 15.5px;
  font-weight: 700;
  letter-spacing: .18em;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 12px 24px -14px rgba(160, 18, 24, .95);
  transition: transform .12s ease, opacity .12s ease;
}

.lg-submit:active {
  transform: scale(.985);
}

.lg-submit:disabled {
  opacity: .75;
  cursor: default;
}

.lg-agree {
  margin-top: 11px;
  text-align: center;
  font-size: 10.5px;
  color: #a8adb4;
  line-height: 1.7;
}

.lg-foot {
  margin: 16px 24px 0;
  text-align: center;
  font-size: 11px;
  color: var(--ink-3);
  line-height: 1.95;
}

.lg-demo {
  margin: 12px 20px 0;
  text-align: center;
  font-size: 10.5px;
  color: #b6bbc2;
  line-height: 1.7;
}

/* ---------------------------------------------------------------- 已登录身份卡 */
.lg-logged {
  text-align: center;
  padding-top: 24px;
}

.lg-avatar {
  width: 64px;
  height: 64px;
  margin: 0 auto 11px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  font-size: 26px;
  font-weight: 700;
  color: #fff;
  background: linear-gradient(135deg, #c1272d, #8c1116);
  box-shadow: 0 12px 24px -14px rgba(160, 18, 24, .95);
}

.lg-name {
  font-size: 17.5px;
  font-weight: 700;
  color: var(--ink);
}

.lg-dept {
  margin-top: 5px;
  font-size: 12px;
  color: var(--ink-3);
}

.lg-role {
  display: inline-block;
  margin-top: 9px;
  padding: 4px 11px;
  border-radius: 999px;
  background: var(--red-soft);
  color: var(--red);
  font-size: 10.5px;
  letter-spacing: .04em;
}

.lg-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 12px;
  padding: 11px 6px;
  border-bottom: 1px dashed #f1efea;
  font-size: 12px;
  color: var(--ink-3);
}

.lg-info b {
  color: var(--ink);
  font-weight: 600;
}

.lg-logout {
  width: 100%;
  height: 44px;
  margin-top: 13px;
  border: 1px solid var(--line);
  background: #fff;
  color: #787f88;
  border-radius: 12px;
  font-size: 13.5px;
  font-family: inherit;
  cursor: pointer;
}

.lg-logout:active {
  background: #faf9f7;
}

/* ---------------------------------------------------------------- 我的页面身份区 */
.prof-letter {
  font-size: 22px;
  font-weight: 700;
  color: #fff;
  background: rgba(255, 255, 255, .18);
  border: 1px solid rgba(255, 255, 255, .34);
}

.profile-guest {
  cursor: default;
}

.prof-login {
  margin-top: 9px;
  border: 0;
  background: #fff;
  color: var(--red-deep);
  font-size: 12px;
  font-weight: 700;
  padding: 7px 15px;
  border-radius: 999px;
  font-family: inherit;
  cursor: pointer;
  box-shadow: 0 8px 16px -10px rgba(0, 0, 0, .5);
}

.prof-out {
  padding: 4px 16px 6px;
}
