/*
 * 登录页样式（复刻 lmgw 门户 LoginView）
 */

body.lm-page {
  margin: 0;
  padding: 0;
  background: #1b2f4e;
}

.lm-login-wrap {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(120deg, #1b2f4e, #233b5c 55%, #2f4c76);
  padding: 40px 24px;
  box-sizing: border-box;
  overflow: hidden;
}

.lm-bg-deco {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  bottom: 0;
  background: radial-gradient(circle at 18% 22%, rgba(255, 255, 255, 0.12), transparent 42%),
    radial-gradient(circle at 85% 78%, rgba(215, 170, 66, 0.12), transparent 42%);
  pointer-events: none;
}

.lm-login-inner {
  position: relative;
  width: 100%;
  max-width: 1080px;
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 56px;
  align-items: center;
}

/* 左侧品牌区 */
.lm-brand-side { color: #fff; }

.lm-brand-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(215, 170, 66, 0.35);
  background: rgba(215, 170, 66, 0.12);
  color: #d7aa42;
  border-radius: 999px;
  padding: 6px 16px;
  font-size: 14px;
  font-weight: 500;
  margin-bottom: 24px;
}
.lm-brand-chip i {
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d7aa42;
  animation: lm-chip-pulse 1.6s infinite;
}
@keyframes lm-chip-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

.lm-brand-side h1 {
  margin: 0;
  font-size: 46px;
  font-weight: 700;
  letter-spacing: 2px;
  line-height: 1.15;
  color: #fff;
}
.lm-brand-side h1 span {
  display: block;
  margin-top: 10px;
  font-size: 30px;
  letter-spacing: 1px;
  background: linear-gradient(90deg, #d7aa42, #e7c67c, #d7aa42);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lm-brand-side p {
  margin: 24px 0 0;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 15px;
  line-height: 2;
}
.lm-brand-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 44px;
  max-width: 620px;
}
.lm-brand-stat {
  border-left: 2px solid rgba(215, 170, 66, 0.5);
  padding-left: 12px;
  text-align: left;
}
.lm-brand-stat b {
  display: block;
  font-size: 24px;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.lm-brand-stat span {
  font-size: 13px;
  color: rgba(255, 255, 255, 0.6);
}

/* 右侧登录卡 */
.lm-login-card {
  background: #fff;
  padding: 36px 36px 24px;
  border-radius: 16px;
  box-shadow: 0 20px 60px rgba(10, 15, 26, 0.35);
  box-sizing: border-box;
}
.lm-login-title { margin-bottom: 22px; }
.lm-login-title h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #151d28;
}
.lm-login-title p {
  margin: 6px 0 0;
  font-size: 13px;
  color: #627084;
}

/* 身份切换（对齐 el-radio-button --small） */
.lm-role-group {
  display: flex;
  flex-wrap: wrap;
  width: 100%;
  margin-bottom: 16px;
}
.lm-rb { position: relative; margin: 0 0 -1px -1px; cursor: pointer; }
.lm-rb input { position: absolute; opacity: 0; width: 0; height: 0; }
.lm-rb span {
  display: block;
  height: 38px;
  line-height: 36px;
  padding: 0 12px;
  border: 1px solid #dcdfe6;
  background: #fff;
  color: #606266;
  font-size: 13px;
  white-space: nowrap;
  box-sizing: border-box;
  transition: all 0.15s;
}
.lm-rb:first-child span { border-radius: 4px 0 0 4px; }
.lm-rb:last-child span { border-radius: 0 4px 4px 0; }
.lm-rb:hover span { color: #c91d39; }
.lm-rb.is-active { z-index: 1; }
.lm-rb.is-active span {
  border-color: #c91d39;
  background: #c91d39;
  color: #fff;
}

.lm-field { margin-bottom: 18px; }
.lm-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  line-height: 22px;
  color: #606266;
  font-weight: 400;
}
.lm-input-wrap {
  display: flex;
  align-items: center;
  height: 40px;
  padding: 0 11px;
  border-radius: 6px;
  background: #fff;
  box-shadow: inset 0 0 0 1px #dcdfe6;
  box-sizing: border-box;
  transition: box-shadow 0.15s;
}
.lm-input-wrap:hover { box-shadow: inset 0 0 0 1px #c0c4cc; }
.lm-input-wrap:focus-within { box-shadow: inset 0 0 0 1px #c91d39; }
.lm-input-ico {
  flex-shrink: 0;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  color: #a8abb2;
}
.lm-input {
  flex: 1;
  min-width: 0;
  height: 38px;
  padding: 0;
  border: none;
  background: transparent;
  color: #303133;
  font-size: 14px;
  outline: none;
}
.lm-input::placeholder { color: #a8abb2; }
.lm-eye {
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  margin-left: 6px;
  padding: 0;
  border: none;
  background: transparent;
  color: #a8abb2;
  cursor: pointer;
}
.lm-eye svg { display: block; width: 14px; height: 14px; }
.lm-eye:hover { color: #606266; }
.lm-eye.is-on { color: #c91d39; }

.lm-login-btn {
  display: block;
  width: 100%;
  margin-top: 6px;
  height: 40px;
  border: none;
  border-radius: 6px;
  background: #c91d39;
  color: #fff;
  font-size: 16px;
  letter-spacing: 4px;
  cursor: pointer;
  transition: background 0.15s;
}
.lm-login-btn:hover { background: #e0354f; }

.lm-no-account {
  margin-top: 16px;
  text-align: center;
  font-size: 13px;
  color: #8a94a6;
}
.lm-no-account a {
  color: #c91d39;
  font-weight: 500;
  text-decoration: none;
}
.lm-no-account a:hover { text-decoration: underline; }

.lm-back { margin-top: 12px; }
.lm-back-btn {
  display: block;
  width: 100%;
  height: 40px;
  line-height: 38px;
  text-align: center;
  border: 1px solid #d5ddee;
  border-radius: 6px;
  background: #fff;
  color: #5a6a85;
  font-size: 14px;
  letter-spacing: 1px;
  text-decoration: none;
  box-sizing: border-box;
}
.lm-back-btn:hover { color: #233b5c; border-color: #b9c6dd; }

@media (max-width: 900px) {
  .lm-login-inner { grid-template-columns: 1fr; gap: 32px; }
  .lm-brand-side { text-align: center; }
  .lm-brand-chip { margin-bottom: 16px; }
  .lm-brand-side h1 { font-size: 34px; }
  .lm-brand-side h1 span { font-size: 24px; }
  .lm-brand-side p { margin-left: auto; margin-right: auto; }
  .lm-brand-stats { margin-top: 28px; }
  .lm-brand-stat { text-align: center; border-left: none; border-top: 2px solid rgba(215, 170, 66, 0.5); padding: 8px 0 0; }
}
@media (max-width: 560px) {
  .lm-brand-stats { grid-template-columns: repeat(2, 1fr); }
  .lm-login-card { padding: 28px 22px 18px; }
}
