.login-body {
  background: var(--navy);
  min-height: 100dvh;
}

.login-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(500px, 0.92fr);
  min-height: 100dvh;
}

/* ============ 左侧品牌视觉 ============ */

.login-visual {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  padding: 36px 52px 26px;
  color: #eaf7f4;
  background:
    radial-gradient(circle at 78% 14%, rgba(43, 224, 183, 0.1), transparent 30%),
    radial-gradient(circle at 12% 82%, rgba(37, 110, 124, 0.22), transparent 32%),
    linear-gradient(145deg, #091a26 0%, #0b2331 58%, #09202b 100%);
  isolation: isolate;
}

.login-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(rgba(158, 225, 213, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(158, 225, 213, 0.035) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(to bottom, transparent, #000 18%, #000 88%, transparent);
}

.login-visual::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 38%;
  z-index: -1;
  background: linear-gradient(to top, rgba(4, 16, 25, 0.75), transparent);
}

.visual-glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(1px);
  pointer-events: none;
  z-index: -1;
}

.visual-glow--one {
  width: 520px;
  height: 520px;
  right: -210px;
  top: -160px;
  background: radial-gradient(circle, rgba(43, 224, 183, 0.08), transparent 68%);
}

.visual-glow--two {
  width: 420px;
  height: 420px;
  left: 30%;
  bottom: -180px;
  background: radial-gradient(circle, rgba(54, 149, 168, 0.12), transparent 70%);
}

.visual-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  position: relative;
  z-index: 5;
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(145deg, #2cd8b3, #0b8e73);
  box-shadow: 0 10px 28px rgba(24, 190, 155, 0.26), inset 0 1px 0 rgba(255, 255, 255, 0.35);
}

.brand-mark > span {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  color: #fff;
  font-size: 21px;
  font-weight: 800;
  letter-spacing: -1px;
}

.brand-words {
  display: grid;
  gap: 2px;
}

.brand-words b {
  font-size: 18px;
  letter-spacing: 1.5px;
  font-weight: 700;
}

.brand-words em {
  font-style: normal;
  color: #7fa69f;
  font-size: 8px;
  letter-spacing: 2.4px;
  font-family: var(--mono);
}

.visual-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  height: 32px;
  padding: 0 13px;
  border: 1px solid rgba(147, 218, 205, 0.16);
  border-radius: 999px;
  color: #a8cbc2;
  font-size: 11px;
  letter-spacing: 0.4px;
  background: rgba(14, 40, 51, 0.48);
  backdrop-filter: blur(12px);
}

.visual-chip i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--mint);
  box-shadow: 0 0 0 3px rgba(53, 215, 178, 0.13);
}

.visual-copy {
  position: relative;
  z-index: 4;
  margin-top: 7.2vh;
  max-width: 590px;
  animation: fadeUp 0.7s ease both;
}

.visual-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #55cdb4;
  font-size: 10px;
  letter-spacing: 3px;
  font-family: var(--mono);
  font-weight: 600;
}

.visual-eyebrow::before {
  content: "";
  width: 26px;
  height: 1px;
  background: #38b99f;
}

.visual-copy h1 {
  margin: 22px 0 19px;
  font-size: clamp(38px, 4.1vw, 58px);
  line-height: 1.22;
  letter-spacing: -2px;
  font-weight: 700;
  color: #f0faf7;
}

.visual-copy h1 span {
  position: relative;
  color: #48e2bf;
  font-weight: 700;
}

.visual-copy h1 span::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  bottom: 1px;
  height: 6px;
  border-radius: 3px;
  background: linear-gradient(90deg, rgba(72, 226, 191, 0.28), rgba(72, 226, 191, 0.03));
}

.visual-copy > p {
  max-width: 470px;
  margin: 0;
  color: #91afa9;
  font-size: 14px;
  line-height: 1.85;
}

.visual-stats {
  display: flex;
  align-items: center;
  gap: 0;
  margin-top: 34px;
}

.visual-stats > div {
  display: grid;
  gap: 5px;
  min-width: 108px;
  padding-right: 28px;
  margin-right: 28px;
  border-right: 1px solid rgba(158, 218, 207, 0.13);
}

.visual-stats > div:last-child {
  border-right: 0;
  margin-right: 0;
  padding-right: 0;
}

.visual-stats b {
  color: #e9f9f5;
  font-size: 25px;
  line-height: 1;
  font-family: var(--mono);
  font-weight: 600;
  letter-spacing: 0.5px;
}

.visual-stats span {
  color: #779890;
  font-size: 10px;
  letter-spacing: 0.8px;
}

.visual-art {
  position: absolute;
  left: 18px;
  right: -4%;
  bottom: 40px;
  z-index: 1;
  opacity: 0.95;
  mask-image: linear-gradient(to top, #000 56%, transparent 97%);
}

.route-map {
  width: 100%;
  height: auto;
}

.map-city text {
  font-family: var(--font);
  fill: #b5d7d0;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.8px;
}

.map-city .map-city-en {
  fill: #4e7773;
  font-size: 7px;
  letter-spacing: 2px;
  font-family: var(--mono);
}

.route-float {
  position: absolute;
  z-index: 6;
  left: 52px;
  bottom: 84px;
  width: 342px;
  padding: 15px 16px 13px;
  border: 1px solid rgba(177, 235, 222, 0.17);
  border-radius: 16px;
  background: rgba(9, 32, 43, 0.78);
  backdrop-filter: blur(20px);
  box-shadow: 0 25px 55px rgba(0, 5, 9, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  animation: floatCard 6s ease-in-out infinite;
}

@keyframes floatCard {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.route-float-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.route-float-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: linear-gradient(145deg, #225260, #153640);
  border: 1px solid rgba(113, 194, 179, 0.14);
  color: #9dd8cc;
  font-size: 10px;
  font-weight: 700;
}

.route-float-head > div {
  display: grid;
  gap: 2px;
  flex: 1;
}

.route-float-head b {
  color: #e8f8f5;
  font-size: 12px;
  letter-spacing: 0.5px;
}

.route-float-head span:not(.route-float-icon, .route-float-live) {
  color: #70928d;
  font-size: 9px;
}

.route-float-live {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 22px;
  padding: 0 8px;
  border-radius: 6px;
  background: rgba(43, 224, 183, 0.1);
  color: #53e3c3;
  font-size: 9px;
  font-weight: 600;
}

.route-float-live i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: currentColor;
  animation: pulse 2s infinite;
}

.route-float-route {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 16px 2px 13px;
}

.route-float-route > div:not(.route-float-line) {
  display: flex;
  align-items: flex-start;
  gap: 6px;
}

.route-float-route > div > i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  margin-top: 4px;
  background: #3ddfbe;
  box-shadow: 0 0 0 3px rgba(61, 223, 190, 0.12);
}

.route-float-route > div:last-child > i {
  background: #ffd28d;
  box-shadow: 0 0 0 3px rgba(255, 210, 141, 0.11);
}

.route-float-route span {
  display: grid;
  gap: 2px;
}

.route-float-route b {
  color: #e9f8f5;
  font-size: 11px;
}

.route-float-route em {
  color: #617f7b;
  font-style: normal;
  font-size: 8px;
}

.route-float-line {
  flex: 1;
  height: 1px;
  position: relative;
  background: linear-gradient(90deg, rgba(64, 224, 189, 0.1), rgba(64, 224, 189, 0.7), rgba(64, 224, 189, 0.1));
}

.route-float-line span {
  position: absolute;
  top: -2px;
  left: 52%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 10px #2be0b7;
}

.route-float-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 11px;
  border-top: 1px solid rgba(176, 224, 214, 0.09);
  color: #6e8f89;
  font-size: 9px;
}

.route-float-foot b {
  color: #a7c9c2;
  font-weight: 500;
}

.online-float {
  position: absolute;
  right: 48px;
  bottom: 272px;
  z-index: 6;
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 245px;
  padding: 13px 14px;
  border: 1px solid rgba(177, 235, 222, 0.13);
  border-radius: 13px;
  background: rgba(8, 29, 39, 0.64);
  backdrop-filter: blur(14px);
}

.online-float-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #35d7b2;
  animation: pulse 2s infinite;
}

.online-float > div {
  display: grid;
  gap: 2px;
  flex: 1;
}

.online-float b {
  color: #cfeae5;
  font-size: 10px;
  font-weight: 600;
}

.online-float span {
  color: #627f7b;
  font-size: 8px;
}

.online-float svg {
  width: 70px;
  opacity: 0.85;
}

.visual-foot {
  position: relative;
  z-index: 7;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: auto;
  color: #4d6d68;
  font-size: 9px;
  letter-spacing: 0.3px;
}

/* ============ 右侧登录面板 ============ */

.login-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 44px 44px 36px;
  background:
    radial-gradient(circle at 85% 12%, rgba(14, 159, 127, 0.055), transparent 32%),
    radial-gradient(circle at 5% 88%, rgba(30, 87, 101, 0.065), transparent 35%),
    #f3f5f3;
}

.login-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image: radial-gradient(#b8c8c4 0.75px, transparent 0.75px);
  background-size: 20px 20px;
  opacity: 0.19;
  mask-image: linear-gradient(150deg, transparent 20%, #000 90%);
}

.mobile-brand {
  display: none;
}

.login-card {
  position: relative;
  z-index: 2;
  width: min(440px, 100%);
  padding: 34px 34px 28px;
  border: 1px solid rgba(221, 230, 227, 0.9);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.93);
  box-shadow: 0 30px 75px rgba(20, 53, 45, 0.1), 0 2px 3px rgba(20, 53, 45, 0.03);
  backdrop-filter: blur(16px);
  animation: cardIn 0.5s cubic-bezier(0.2, 0.8, 0.3, 1) both;
}

@keyframes cardIn {
  from { opacity: 0; transform: translateY(14px) scale(0.992); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.card-head {
  margin-bottom: 23px;
}

.card-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--green);
  font-family: var(--mono);
  font-size: 8px;
  letter-spacing: 2.7px;
  font-weight: 600;
}

.card-eyebrow::before {
  content: "";
  width: 15px;
  height: 1px;
  background: currentColor;
}

.card-head h2 {
  margin: 11px 0 7px;
  color: var(--ink);
  font-size: 28px;
  line-height: 1.25;
  letter-spacing: -0.8px;
  font-weight: 700;
}

.card-head p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

#continue-session {
  margin-bottom: 0;
}

.continue-box {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 10px 11px;
  border: 1px solid #d9ebe4;
  border-radius: 11px;
  background: #f5fbf8;
}

.continue-box .avatar {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  font-size: 11px;
}

.continue-box > div {
  display: grid;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.continue-box b {
  color: var(--ink-2);
  font-size: 11px;
}

.continue-box span {
  color: var(--muted);
  font-size: 9px;
}

.continue-box button {
  height: 30px;
  padding: 0 10px;
  border-radius: 8px;
  background: var(--green);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
}

.continue-box .continue-clear {
  background: transparent;
  color: var(--muted);
  padding: 0 2px;
}

.role-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  margin-bottom: 22px;
  padding: 5px;
  border-radius: 13px;
  background: #f1f4f2;
}

.role-tab {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 50px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  text-align: left;
  color: #80938c;
  transition: all 0.18s ease;
}

.role-tab.active {
  background: #fff;
  border-color: #e6ece9;
  color: var(--ink);
  box-shadow: 0 4px 13px rgba(22, 58, 48, 0.07);
}

.role-tab-icon {
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 8px;
  background: #e9eeec;
  color: #82958e;
  transition: all 0.18s ease;
}

.role-tab.active .role-tab-icon {
  background: var(--green-soft);
  color: var(--green);
}

.role-tab-icon svg {
  width: 17px;
  height: 17px;
}

.role-tab > span:last-child {
  display: grid;
  gap: 1px;
}

.role-tab b {
  font-size: 11px;
  font-weight: 600;
}

.role-tab em {
  color: #9dafaa;
  font-style: normal;
  font-size: 8px;
}

.role-tab.active em {
  color: #7e9690;
}

.login-form {
  display: grid;
  gap: 15px;
}

.login-form .field {
  gap: 7px;
}

.login-form .field > label {
  font-size: 11px;
}

.login-form .field input {
  height: 45px;
  background: #fbfcfb;
  border-color: #e0e7e4;
}

.input-icon-wrap {
  position: relative;
}

.input-icon-wrap .icon {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #a1b2ac;
  pointer-events: none;
}

.input-icon-wrap input {
  padding-left: 38px;
}

.eye-toggle {
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  display: grid;
  place-items: center;
  width: 31px;
  height: 31px;
  border-radius: 8px;
  color: #97aaa4;
}

.eye-toggle:hover {
  background: #f0f4f2;
  color: var(--ink-2);
}

.eye-toggle .icon {
  position: static;
  transform: none;
  width: 15px;
  height: 15px;
}

.login-form .form-error {
  margin-top: -2px;
}

.login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  height: 47px;
  margin-top: 3px;
  border-radius: 11px;
  background: linear-gradient(135deg, #10a985, #0b8a70);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.5px;
  box-shadow: 0 10px 24px rgba(14, 159, 127, 0.24);
  transition: all 0.18s ease;
}

.login-submit:hover {
  background: linear-gradient(135deg, #0e9f7f, #08755f);
  box-shadow: 0 12px 28px rgba(14, 159, 127, 0.3);
}

.login-submit:disabled {
  opacity: 0.65;
  cursor: wait;
}

.login-submit .icon {
  width: 16px;
  height: 16px;
}

.form-note {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: -2px;
  color: var(--muted);
  font-size: 10px;
}

.form-note a,
.link-green {
  color: var(--green-dark);
  font-weight: 600;
  cursor: pointer;
}

.form-note a:hover,
.link-green:hover {
  text-decoration: underline;
}

.demo-box {
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid #edf1ef;
}

.demo-box-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 9px;
}

.demo-box-head > span {
  color: #96a8a2;
  font-size: 9px;
  letter-spacing: 1.2px;
  font-weight: 600;
}

.demo-box-head button {
  color: var(--green-dark);
  font-size: 9px;
  font-weight: 600;
}

.demo-account {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid #edf1ef;
  border-radius: 9px;
  background: #fbfcfb;
  text-align: left;
  transition: all 0.16s ease;
}

.demo-account + .demo-account {
  margin-top: 6px;
}

.demo-account:hover {
  border-color: #cfe6de;
  background: #f8fcfa;
}

.demo-account .demo-avatar {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: #e8f5ef;
  color: var(--green-dark);
  font-size: 10px;
  font-weight: 700;
}

.demo-account > span:nth-child(2) {
  display: grid;
  gap: 1px;
  flex: 1;
}

.demo-account b {
  color: var(--ink-2);
  font-size: 10px;
  font-weight: 600;
}

.demo-account em {
  color: #9baca6;
  font-style: normal;
  font-size: 8px;
  font-family: var(--mono);
  letter-spacing: 0.5px;
}

.demo-account .icon {
  width: 13px;
  height: 13px;
  color: #a9b8b3;
}

.card-foot {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 20px;
  padding-top: 15px;
  border-top: 1px solid #eef2f0;
  color: #9aaba5;
  font-size: 9px;
  line-height: 1.5;
}

.card-foot a {
  color: var(--green-dark);
  font-weight: 600;
}

.portal-links {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #a7b7b2;
}

.portal-links span {
  width: 2px;
  height: 2px;
  border-radius: 50%;
  background: #c5d1cd;
}

.panel-foot {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 20px;
  width: min(440px, 100%);
  margin-top: 18px;
  color: #a0b0ab;
  font-size: 8px;
  letter-spacing: 0.3px;
}

/* 注册 */
.register-head {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 17px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: var(--muted);
  font-size: 10px;
}

.back-link .icon {
  width: 13px;
  height: 13px;
}

.register-head h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.3px;
}

.register-head p {
  margin: 2px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.invite-result {
  display: none;
  align-items: center;
  gap: 10px;
  padding: 10px 11px;
  border: 1px solid #d8ebe3;
  border-radius: 10px;
  background: #f5fbf8;
}

.invite-result.show {
  display: flex;
}

.invite-result.error {
  border-color: #f0dada;
  background: #fdf7f7;
}

.invite-result .invite-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: var(--green-soft);
  color: var(--green);
}

.invite-result.error .invite-icon {
  background: var(--red-soft);
  color: var(--red);
}

.invite-result .invite-icon .icon {
  width: 15px;
  height: 15px;
}

.invite-result > div {
  display: grid;
  gap: 2px;
}

.invite-result b {
  color: var(--ink-2);
  font-size: 10px;
}

.invite-result span {
  color: var(--muted);
  font-size: 9px;
}

.register-legal {
  color: #9db0aa;
  font-size: 9px;
  line-height: 1.55;
}

/* ============ 响应式 ============ */

@media (max-width: 1240px) {
  .login-visual {
    padding-left: 38px;
    padding-right: 38px;
  }

  .route-float {
    left: 38px;
    width: 318px;
  }

  .online-float {
    right: 32px;
  }

  .visual-copy h1 {
    font-size: clamp(36px, 4vw, 48px);
  }
}

@media (max-width: 1080px) {
  .login-shell {
    grid-template-columns: minmax(0, 1fr) minmax(470px, 0.95fr);
  }

  .visual-copy {
    margin-top: 5vh;
  }

  .visual-copy h1 {
    font-size: 38px;
  }

  .visual-stats > div {
    min-width: 86px;
    padding-right: 19px;
    margin-right: 19px;
  }

  .visual-stats b {
    font-size: 21px;
  }

  .online-float {
    display: none;
  }
}

@media (max-width: 900px) {
  .login-body {
    background: #f3f5f3;
  }

  .login-shell {
    display: block;
  }

  .login-visual {
    display: none;
  }

  .login-panel {
    min-height: 100dvh;
    justify-content: flex-start;
    padding: 28px 20px 30px;
    background:
      radial-gradient(circle at 88% 0%, rgba(14, 159, 127, 0.1), transparent 32%),
      linear-gradient(160deg, #edf4f1, #f6f7f5 46%, #f1f4f2);
  }

  .mobile-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    width: min(440px, 100%);
    margin-bottom: 18px;
  }

  .mobile-brand .brand-mark {
    width: 37px;
    height: 37px;
    border-radius: 11px;
  }

  .mobile-brand .brand-mark > span {
    font-size: 19px;
  }

  .mobile-brand > div {
    display: grid;
    gap: 1px;
  }

  .mobile-brand b {
    font-size: 15px;
    letter-spacing: 1px;
  }

  .mobile-brand span {
    color: var(--muted);
    font-size: 8px;
    letter-spacing: 1.5px;
  }

  .login-card {
    padding: 30px 30px 25px;
  }

  .panel-foot {
    width: min(440px, 100%);
  }
}

@media (max-width: 520px) {
  .login-panel {
    padding: 20px 14px 24px;
  }

  .mobile-brand {
    margin: 2px 4px 14px;
  }

  .login-card {
    padding: 25px 20px 22px;
    border-radius: 21px;
    box-shadow: 0 18px 44px rgba(20, 53, 45, 0.08);
  }

  .card-head {
    margin-bottom: 19px;
  }

  .card-head h2 {
    font-size: 25px;
  }

  .role-tab {
    padding: 7px 8px;
    gap: 7px;
  }

  .role-tab-icon {
    width: 28px;
    height: 28px;
  }

  .role-tab b {
    font-size: 10px;
  }

  .role-tab em {
    font-size: 7px;
  }

  .panel-foot {
    flex-direction: column;
    gap: 4px;
  }
}
