.login-view {
  position: absolute;
  inset: 0;
  z-index: 20;
  overflow: hidden;
  padding: calc(18px + env(safe-area-inset-top)) 28px calc(24px + env(safe-area-inset-bottom));
  background:
    radial-gradient(circle at 12% 22%, rgba(15, 139, 83, 0.08), transparent 18%),
    linear-gradient(180deg, #fffefa 0%, #fffdf9 46%, #fbfaf6 100%);
  color: var(--home-ink);
}

.login-view[hidden] {
  display: none;
}

.login-bg {
  position: absolute;
  top: 0;
  right: 0;
  left: 0;
  height: 338px;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(255, 254, 250, 0.95) 0%, rgba(255, 254, 250, 0.86) 42%, rgba(255, 254, 250, 0.36) 100%),
    linear-gradient(180deg, rgba(255, 254, 250, 0.1), rgba(255, 254, 250, 0.96)),
    url("/assets/hero-carousel-living.png") right 18% top / auto 100% no-repeat;
  opacity: 0.9;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 76%, transparent 100%);
  mask-image: linear-gradient(180deg, #000 0%, #000 76%, transparent 100%);
}

.login-topbar {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.login-back,
.login-support,
.login-submit,
.login-tabs button,
.social-login,
#sendCodeButton {
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, color 180ms ease;
}

.login-back {
  display: grid;
  place-items: center;
  width: 43px;
  height: 43px;
  border: 1px solid rgba(17, 21, 19, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  color: #0f1210;
  box-shadow: 0 16px 34px rgba(42, 36, 26, 0.13);
}

.login-back svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-support {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: #0d8b58;
  font-size: 14px;
  font-weight: 800;
}

.login-support svg {
  width: 22px;
  height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-panel {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 18px;
  margin-top: 68px;
}

.login-hero {
  display: grid;
  gap: 13px;
}

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

.login-logo {
  display: grid;
  place-items: center;
  width: 45px;
  height: 45px;
  border-radius: 13px;
  background:
    radial-gradient(circle at 32% 24%, rgba(255, 255, 255, 0.4), transparent 30%),
    linear-gradient(145deg, #0c9a63 0%, #027145 100%);
  color: #fff;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.22), 0 14px 28px rgba(15, 139, 83, 0.2);
}

.login-logo span {
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border: 1.4px solid rgba(255, 255, 255, 0.88);
  border-radius: 50%;
  font-family: "Songti SC", "STSong", serif;
  font-size: 24px;
  line-height: 1;
}

.login-brand {
  color: #111513;
  font-size: 22px;
  font-weight: 900;
  line-height: 1.15;
}

.login-brand-sub,
.login-subtitle {
  color: #69706c;
  font-weight: 600;
}

.login-brand-sub {
  margin-top: 4px;
  font-size: 13px;
  letter-spacing: 0;
}

.login-hero h1 {
  color: #111513;
  font-family: "Avenir Next", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: clamp(27px, 6.8vw, 32px);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.18;
  white-space: nowrap;
}

.login-hero h1 span {
  color: #0d8b58;
}

.login-subtitle {
  font-size: 16px;
  line-height: 1.45;
}

.login-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  margin-top: 3px;
}

.login-benefit {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
  min-height: 49px;
  padding: 8px 9px;
  border: 1px solid rgba(219, 211, 197, 0.8);
  border-radius: 15px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: 0 12px 32px rgba(54, 43, 30, 0.06);
  backdrop-filter: blur(12px);
}

.login-benefit svg {
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  padding: 5px;
  border-radius: 50%;
  background: rgba(15, 139, 83, 0.12);
  color: #0d8b58;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.login-benefit span {
  display: grid;
  min-width: 0;
  gap: 2px;
}

.login-benefit strong,
.login-benefit small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.login-benefit strong {
  color: #151918;
  font-size: 12px;
  font-weight: 900;
}

.login-benefit small {
  color: #5f6662;
  font-size: 10px;
  font-weight: 600;
}
