/* ========== 三套登录页：结构级差异 ========== */

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}
[v-cloak] { display: none !important; }

.login-root {
  min-height: 100vh;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.login-form .el-form-item { margin-bottom: 20px; }
.login-form .el-input__inner {
  height: 44px;
  line-height: 44px;
  padding-left: 40px;
}
.login-form .el-input__prefix { left: 12px; }
.login-form .el-input__prefix .el-input__icon { line-height: 44px; }
.login-form__hint {
  margin: -6px 0 16px;
  font-size: 12px;
  color: #9aa5b5;
  line-height: 1.5;
}
.login-form__captcha {
  display: flex;
  align-items: center;
  gap: 10px;
}
.login-form__captcha .el-input {
  flex: 1;
  min-width: 0;
}
.login-form__captcha-img {
  width: 140px;
  height: 44px;
  flex-shrink: 0;
  border-radius: 4px;
  cursor: pointer;
  object-fit: contain;
  background: #f5f7fa;
}
.login-form__submit {
  width: 100%;
  height: 44px;
  font-size: 15px;
  letter-spacing: 2px;
  border: none;
}
.login-form__footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid #eef2f6;
  font-size: 12px;
  color: #b0b8c4;
  text-align: center;
}

/* ========== classic：深蓝左右分栏 ========== */
.login-shell--classic {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
  background: linear-gradient(145deg, #0b1220 0%, #132337 40%, #0f2d4a 100%);
}
.login-shell--classic .classic-box {
  display: flex;
  width: 100%;
  max-width: 1080px;
  min-height: 520px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 24px 80px rgba(0,0,0,.45);
}
.login-shell--classic .classic-brand {
  flex: 1.05;
  padding: 56px 48px;
  color: #fff;
  background: linear-gradient(160deg, rgba(255,255,255,.08), rgba(255,255,255,.02));
  border-right: 1px solid rgba(255,255,255,.08);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.login-shell--classic .classic-brand h1 {
  margin: 0 0 12px;
  font-size: 30px;
  font-weight: 600;
}
.login-shell--classic .classic-brand p {
  margin: 0 0 28px;
  font-size: 14px;
  line-height: 1.7;
  color: rgba(255,255,255,.72);
  max-width: 340px;
}
.login-shell--classic .classic-brand ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.login-shell--classic .classic-brand li {
  margin-bottom: 12px;
  font-size: 14px;
  color: rgba(255,255,255,.88);
  padding-left: 16px;
  position: relative;
}
.login-shell--classic .classic-brand li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #3e8ef7;
}
.login-shell--classic .classic-panel {
  flex: 1.05;
  background: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 48px;
}
.login-shell--classic .classic-panel .login-card { width: 100%; max-width: 400px; }
.login-shell--classic .classic-panel h2 {
  margin: 0 0 8px;
  font-size: 24px;
  color: #1a2332;
}
.login-shell--classic .classic-panel .sub {
  margin: 0 0 28px;
  font-size: 13px;
  color: #8b95a5;
}
.login-shell--classic .login-form__submit {
  background: linear-gradient(135deg, #3e8ef7, #3579d2);
  border-radius: 10px;
  color: #fff;
}
.login-shell--classic .login-form .el-input__inner { border-radius: 10px; }

@media (max-width: 900px) {
  .login-shell--classic .classic-box { flex-direction: column; max-width: 460px; min-height: auto; }
  .login-shell--classic .classic-brand { padding: 32px; border-right: none; }
  .login-shell--classic .classic-brand p,
  .login-shell--classic .classic-brand ul { display: none; }
}

/* ========== topnav：企业门户风登录 ========== */
.login-shell--topnav {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  background: #eef1f8;
}
.login-shell--topnav .topnav-hero {
  position: relative;
  padding: 48px 56px 56px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  color: #fff;
  background: linear-gradient(145deg, #1a237e 0%, #303f9f 42%, #5c6bc0 78%, #7986cb 100%);
}
.login-shell--topnav .topnav-hero__glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(40px);
  pointer-events: none;
}
.login-shell--topnav .topnav-hero__glow--1 {
  width: 360px;
  height: 360px;
  right: -80px;
  top: -60px;
  background: rgba(129, 140, 248, 0.45);
}
.login-shell--topnav .topnav-hero__glow--2 {
  width: 280px;
  height: 280px;
  left: -60px;
  bottom: 10%;
  background: rgba(63, 81, 181, 0.55);
}
.login-shell--topnav .topnav-hero__grid {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.22;
  background-image:
    linear-gradient(rgba(255,255,255,0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 40% 50%, #000 10%, transparent 75%);
}
.login-shell--topnav .topnav-hero__top,
.login-shell--topnav .topnav-hero__body {
  position: relative;
  z-index: 1;
}
.login-shell--topnav .topnav-hero__top {
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: auto;
}
.login-shell--topnav .topnav-hero__badge {
  display: inline-flex;
  align-self: flex-start;
  padding: 7px 14px;
  border-radius: 999px;
  font-size: 11px;
  letter-spacing: 1.5px;
  background: rgba(255,255,255,.14);
  border: 1px solid rgba(255,255,255,.28);
  backdrop-filter: blur(6px);
}
.login-shell--topnav .topnav-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.login-shell--topnav .topnav-hero__chips span {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 12px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
}
.login-shell--topnav .topnav-hero__body {
  padding-top: 40px;
}
.login-shell--topnav .topnav-hero h1 {
  margin: 0 0 14px;
  font-size: 42px;
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 1.2;
}
.login-shell--topnav .topnav-hero p {
  margin: 0 0 28px;
  max-width: 440px;
  font-size: 15px;
  line-height: 1.75;
  color: rgba(255,255,255,.86);
}
.login-shell--topnav .topnav-hero__features {
  list-style: none;
  margin: 0 0 36px;
  padding: 0;
}
.login-shell--topnav .topnav-hero__features li {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  font-size: 14px;
  color: rgba(255,255,255,.92);
}
.login-shell--topnav .topnav-hero__features i {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  background: rgba(255,255,255,.18);
}
.login-shell--topnav .topnav-hero__stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  max-width: 480px;
}
.login-shell--topnav .topnav-hero__stat {
  padding: 14px 12px;
  border-radius: 12px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
}
.login-shell--topnav .topnav-hero__stat strong {
  display: block;
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 4px;
}
.login-shell--topnav .topnav-hero__stat em {
  font-style: normal;
  font-size: 12px;
  color: rgba(255,255,255,.72);
}
.login-shell--topnav .topnav-side {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px 40px;
  background:
    radial-gradient(circle at 80% 10%, rgba(92,107,192,.12), transparent 40%),
    linear-gradient(180deg, #f7f8fc 0%, #eef1f8 100%);
}
.login-shell--topnav .topnav-side__card {
  width: 100%;
  max-width: 400px;
  padding: 36px 36px 28px;
  border-radius: 18px;
  background: #fff;
  box-shadow:
    0 18px 48px rgba(48, 63, 159, 0.12),
    0 0 0 1px rgba(48, 63, 159, 0.06);
}
/* 通用品牌图标 */
.shell-brand-logo {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
}
.shell-brand-logo--lg {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.login-shell--topnav .topnav-hero__identity {
  display: flex;
  align-items: center;
  gap: 12px;
}
.login-shell--topnav .topnav-side__mark {
  width: 52px;
  height: 52px;
  margin-bottom: 18px;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 24px rgba(48, 63, 159, 0.28);
}
.login-shell--topnav .topnav-side__card h2 {
  margin: 0 0 6px;
  font-size: 24px;
  color: #1a237e;
  font-weight: 600;
}
.login-shell--topnav .topnav-side__card .sub {
  margin: 0 0 28px;
  font-size: 13px;
  color: #90a4ae;
}
.login-shell--topnav .login-form .el-input__inner {
  height: 46px;
  line-height: 46px;
  border-radius: 10px;
  border-color: #d5dbeb;
  background: #f8f9fd;
}
.login-shell--topnav .login-form .el-input__inner:focus {
  border-color: #5c6bc0;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(92, 107, 192, 0.15);
}
.login-shell--topnav .login-form__submit {
  height: 46px;
  background: linear-gradient(135deg, #303f9f, #5c6bc0);
  border-radius: 10px;
  color: #fff;
  box-shadow: 0 10px 22px rgba(48, 63, 159, 0.28);
}
.login-shell--topnav .login-form__submit:hover,
.login-shell--topnav .login-form__submit:focus {
  background: linear-gradient(135deg, #3949ab, #7986cb);
  color: #fff;
}

@media (max-width: 960px) {
  .login-shell--topnav { grid-template-columns: 1fr; }
  .login-shell--topnav .topnav-hero { min-height: 280px; padding: 32px; }
  .login-shell--topnav .topnav-hero h1 { font-size: 28px; }
  .login-shell--topnav .topnav-hero__stats { grid-template-columns: repeat(3, 1fr); }
  .login-shell--topnav .topnav-side { padding: 28px 20px 40px; }
}

/* ========== ledger：浅色商务登录（左右分栏 + 财务卡片） ========== */
.login-shell--ledger {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(160deg, #f4faf5 0%, #eef5f0 45%, #e8f0ec 100%);
  overflow: hidden;
}
.login-shell--ledger .ledger-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.login-shell--ledger .ledger-bg__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(36px);
}
.login-shell--ledger .ledger-bg__orb--1 {
  width: 420px;
  height: 420px;
  top: -120px;
  right: -80px;
  background: rgba(129, 199, 132, 0.35);
}
.login-shell--ledger .ledger-bg__orb--2 {
  width: 320px;
  height: 320px;
  bottom: -80px;
  left: -60px;
  background: rgba(46, 125, 50, 0.16);
}
.login-shell--ledger .ledger-bg__leaf {
  position: absolute;
  width: 220px;
  height: 220px;
  right: 18%;
  bottom: 12%;
  border-radius: 40% 60% 55% 45%;
  background: rgba(67, 160, 71, 0.08);
  transform: rotate(18deg);
}
.login-shell--ledger .ledger-top {
  position: relative;
  z-index: 1;
  height: 60px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 40px;
  background: rgba(255, 255, 255, 0.82);
  border-bottom: 1px solid rgba(46, 125, 50, 0.1);
  backdrop-filter: blur(8px);
}
.login-shell--ledger .ledger-top__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 17px;
  font-weight: 600;
  color: #1b5e20;
}
.login-shell--ledger .ledger-top__brand .shell-brand-logo {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
.login-shell--ledger .ledger-top__tag {
  font-size: 11px;
  letter-spacing: 1.2px;
  color: #66bb6a;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(102, 187, 106, 0.45);
  background: rgba(232, 245, 233, 0.8);
}
.login-shell--ledger .ledger-main {
  position: relative;
  z-index: 1;
  flex: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 36px;
  align-items: center;
  padding: 40px 56px 56px;
  max-width: 1180px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
}
.login-shell--ledger .ledger-aside h1 {
  margin: 0 0 14px;
  font-size: 34px;
  line-height: 1.25;
  color: #1b5e20;
  font-weight: 600;
}
.login-shell--ledger .ledger-aside > p {
  margin: 0 0 28px;
  font-size: 15px;
  line-height: 1.7;
  color: #607d8b;
  max-width: 420px;
}
.login-shell--ledger .ledger-aside__cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
}
.login-shell--ledger .ledger-aside__card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(46, 125, 50, 0.12);
  box-shadow: 0 8px 24px rgba(46, 125, 50, 0.06);
}
.login-shell--ledger .ledger-aside__card i {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #fff;
  background: linear-gradient(135deg, #66bb6a, #2e7d32);
}
.login-shell--ledger .ledger-aside__card strong {
  display: block;
  font-size: 14px;
  color: #1b5e20;
  margin-bottom: 2px;
}
.login-shell--ledger .ledger-aside__card em {
  font-style: normal;
  font-size: 12px;
  color: #78909c;
}
.login-shell--ledger .ledger-card {
  width: 100%;
  max-width: 440px;
  justify-self: end;
  background: #fff;
  border-radius: 18px;
  padding: 36px 36px 28px;
  box-shadow:
    0 18px 48px rgba(46, 125, 50, 0.1),
    0 0 0 1px rgba(46, 125, 50, 0.06);
}
.login-shell--ledger .ledger-card__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}
.login-shell--ledger .ledger-card__mark {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  overflow: hidden;
  flex: 0 0 auto;
  box-shadow: 0 10px 22px rgba(46, 125, 50, 0.25);
}
.login-shell--ledger .ledger-card h2 {
  margin: 0 0 4px;
  font-size: 24px;
  color: #1b5e20;
  font-weight: 600;
}
.login-shell--ledger .ledger-card .sub {
  margin: 0;
  font-size: 13px;
  color: #90a4ae;
}
.login-shell--ledger .ledger-card .features {
  list-style: none;
  margin: 0 0 24px;
  padding: 12px 14px;
  background: #f1f8f4;
  border-radius: 12px;
  border: 1px solid #e8f5e9;
}
.login-shell--ledger .ledger-card .features li {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: #558b2f;
  line-height: 1.9;
}
.login-shell--ledger .ledger-card .features i {
  color: #43a047;
}
.login-shell--ledger .login-form .el-input__inner {
  height: 46px;
  line-height: 46px;
  border-radius: 10px;
  border-color: #d7e7d9;
  background: #f8fbf8;
}
.login-shell--ledger .login-form .el-input__inner:focus {
  border-color: #66bb6a;
  background: #fff;
  box-shadow: 0 0 0 3px rgba(102, 187, 106, 0.16);
}
.login-shell--ledger .login-form__submit {
  height: 46px;
  background: linear-gradient(135deg, #43a047, #2e7d32);
  border-radius: 10px;
  color: #fff;
  box-shadow: 0 10px 22px rgba(46, 125, 50, 0.25);
}
.login-shell--ledger .login-form__submit:hover,
.login-shell--ledger .login-form__submit:focus {
  background: linear-gradient(135deg, #4caf50, #388e3c);
  color: #fff;
}

@media (max-width: 960px) {
  .login-shell--ledger .ledger-main {
    grid-template-columns: 1fr;
    padding: 28px 20px 40px;
  }
  .login-shell--ledger .ledger-aside {
    display: none;
  }
  .login-shell--ledger .ledger-card {
    justify-self: center;
  }
  .login-shell--ledger .ledger-top {
    padding: 0 20px;
  }
}
