/* =========================================================
   屿光桌面 · 登录 / 注册
   ========================================================= */
.login-body {
  min-height: 100vh;
  min-height: 100dvh;
  overflow: auto;
  background: #1d2b37;
}

.login-body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 1;
  background: radial-gradient(ellipse at 70% 35%, rgba(255, 225, 184, 0.07), transparent 55%);
  pointer-events: none;
}

.login-shell {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 424px;
  align-items: center;
  gap: clamp(40px, 8vw, 120px);
  width: min(1180px, calc(100% - 72px));
  min-height: 100vh;
  min-height: 100dvh;
  margin: 0 auto;
  padding: 52px 0;
}

/* ---------- 左侧品牌区 ---------- */
.login-brand-panel {
  display: flex;
  flex-direction: column;
  min-height: 620px;
  padding: 8px 0 4px;
}

.login-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  align-self: flex-start;
  color: #fff;
}

.login-brand__mark {
  display: grid;
  place-items: center;
  width: 41px;
  height: 41px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 13px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.035));
  color: var(--accent-hi);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 12px 25px rgba(2, 8, 14, 0.2);
}

.login-brand__mark svg {
  width: 25px;
  height: 25px;
}

.login-brand > span:last-child {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.login-brand strong {
  font-size: 15px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.login-brand small {
  color: rgba(255, 255, 255, 0.35);
  font-size: 7.5px;
  font-weight: 650;
  letter-spacing: 0.16em;
}

.login-hero {
  margin-top: clamp(66px, 10vh, 112px);
}

.login-hero h1 {
  margin-top: 11px;
  color: #fbfaf7;
  font-size: clamp(38px, 4.3vw, 61px);
  font-weight: 560;
  letter-spacing: -0.055em;
  line-height: 1.17;
  text-shadow: 0 4px 32px rgba(0, 0, 0, 0.18);
}

.login-hero__copy {
  max-width: 460px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.55);
  font-size: 12.5px;
  line-height: 1.9;
}

.login-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 510px;
  gap: 10px;
  margin-top: 39px;
}

.login-feature {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  padding: 11px 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.065);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
}

.login-feature > span {
  display: grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: rgba(var(--accent-rgb), 0.13);
  color: var(--accent-hi);
}

.login-feature > span svg {
  width: 14px;
  height: 14px;
}

.login-feature > div {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.login-feature strong {
  color: rgba(255, 255, 255, 0.8);
  font-size: 9.5px;
  font-weight: 550;
}

.login-feature small {
  overflow: hidden;
  color: rgba(255, 255, 255, 0.4);
  font-size: 7.5px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.login-quote {
  margin-top: auto;
  padding-top: 40px;
  color: rgba(255, 255, 255, 0.36);
}

.login-quote p {
  font-family: "STSong", "Songti SC", "SimSun", serif;
  font-size: 13px;
  letter-spacing: 0.05em;
}

.login-quote cite {
  display: block;
  margin-top: 5px;
  font-size: 8.5px;
  font-style: normal;
}

/* ---------- 右侧卡片 ---------- */
.login-card {
  position: relative;
  width: 100%;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 30px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.085), transparent 36%),
    rgba(17, 24, 33, 0.78);
  box-shadow:
    0 35px 90px rgba(2, 8, 14, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.12);
  -webkit-backdrop-filter: blur(36px) saturate(1.12);
  backdrop-filter: blur(36px) saturate(1.12);
  animation: authCardIn 0.6s var(--ease) both;
}

@keyframes authCardIn {
  from { opacity: 0; transform: translateY(18px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
}

.auth-tab {
  height: 35px;
  border: 1px solid transparent;
  border-radius: 9px;
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  font-size: 11.5px;
  font-weight: 520;
  transition: color 0.2s, background 0.2s, border-color 0.2s;
}

.auth-tab:hover {
  color: rgba(255, 255, 255, 0.72);
}

.auth-tab.is-active {
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.auth-head {
  margin-top: 25px;
}

.auth-head h2 {
  margin-top: 4px;
  font-size: 25px;
  font-weight: 590;
  letter-spacing: -0.035em;
}

.auth-head > p:last-child {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.4);
  font-size: 10.5px;
}

.auth-form {
  margin-top: 22px;
}

.auth-form .field + .field {
  margin-top: 13px;
}

.auth-form .field-row {
  margin-top: 13px;
}

.auth-submit {
  width: 100%;
  margin-top: 20px;
  justify-content: space-between;
  padding: 0 18px;
}

.auth-submit svg {
  width: 16px;
  height: 16px;
}

.auth-submit.is-loading {
  opacity: 0.65;
  pointer-events: none;
}

.auth-switch-copy {
  margin-top: 14px;
  color: rgba(255, 255, 255, 0.32);
  font-size: 9.5px;
  text-align: center;
}

.auth-switch-copy button {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-hi);
  font-size: inherit;
}

.auth-switch-copy button:hover {
  text-decoration: underline;
}

.auth-error {
  margin-top: 14px;
  padding: 10px 12px;
  border: 1px solid rgba(255, 124, 113, 0.2);
  border-radius: 10px;
  background: rgba(255, 124, 113, 0.09);
  color: #ffc1ba;
  font-size: 10.5px;
  line-height: 1.6;
}

.auth-foot {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 24px;
  padding-top: 17px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
  color: rgba(255, 255, 255, 0.26);
  font-size: 8.5px;
}

.auth-foot__dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #85d5a2;
  box-shadow: 0 0 0 3px rgba(133, 213, 162, 0.07);
}

@media (max-width: 980px) {
  .login-shell {
    grid-template-columns: minmax(0, 1fr) 390px;
    gap: 35px;
    width: calc(100% - 48px);
  }

  .login-brand-panel {
    min-height: 570px;
  }

  .login-features {
    grid-template-columns: 1fr;
    max-width: 230px;
  }
}

@media (max-width: 760px) {
  .login-shell {
    display: flex;
    flex-direction: column;
    justify-content: center;
    width: calc(100% - 32px);
    min-height: 100vh;
    min-height: 100dvh;
    padding: 32px 0;
  }

  .login-brand-panel {
    width: 100%;
    min-height: 0;
  }

  .login-hero {
    margin-top: 37px;
  }

  .login-hero h1 {
    font-size: 36px;
  }

  .login-hero__copy {
    display: none;
  }

  .login-features,
  .login-quote {
    display: none;
  }

  .login-card {
    width: 100%;
    max-width: 460px;
    margin-top: 30px;
  }
}

@media (max-width: 460px) {
  .login-shell {
    width: calc(100% - 24px);
    padding: 20px 0;
  }

  .login-hero {
    margin-top: 28px;
  }

  .login-hero h1 {
    font-size: 31px;
  }

  .login-card {
    padding: 21px;
    border-radius: 23px;
  }

  .login-brand__mark {
    width: 36px;
    height: 36px;
  }

  .auth-head h2 {
    font-size: 22px;
  }

  .auth-form .field-row {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .auth-form .field-row .field + .field {
    margin-top: 13px;
  }
}

.login-brand__mark img { width: 100%; height: 100%; object-fit: contain; }
