:root {
  --brand-red: #a31f1f;
  --brand-red-dark: #8f1b1b;
  --page-bg-image: url("../../小图/微信图片_20260414214619_122_535.jpg");
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  background: #e8e2d5;
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  color: #2f2520;
}

input,
button {
  font: inherit;
}

.page {
  max-width: 375px;
  min-height: 100vh;
  margin: 0 auto;
  background:
    linear-gradient(rgba(244, 239, 228, 0.78), rgba(244, 239, 228, 0.78)),
    var(--page-bg-image) center top / cover no-repeat;
  position: relative;
  overflow-x: hidden;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--brand-red);
}

.topbar-main {
  height: calc(66px + env(safe-area-inset-top));
  padding: env(safe-area-inset-top) 12px 0;
  display: grid;
  grid-template-columns: 28px 1fr 86px;
  align-items: center;
}

.back-btn {
  color: #fff;
  text-decoration: none;
  font-size: 34px;
  line-height: 1;
}

.topbar-spacer {
  height: 1px;
}

.right-actions {
  width: 86px;
  height: 30px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.65);
  color: #2f2520;
  display: flex;
  align-items: center;
  justify-content: space-evenly;
  font-size: 14px;
}

.divider {
  width: 1px;
  height: 15px;
  background: rgba(47, 37, 32, 0.2);
}

.content {
  min-height: calc(100vh - 66px);
  padding: 138px 18px 40px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.login-panel {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.brand-main-logo {
  width: 160px;
  height: auto;
  margin-top: -24px;
}

.phone-text {
  margin: 18px 0 14px;
  font-size: 50px;
  line-height: 1;
  transform: scale(0.5);
  transform-origin: center;
  color: #462b22;
}

.login-btn {
  width: 320px;
  height: 54px;
  border: 0;
  border-radius: 27px;
  background: var(--brand-red);
  color: #fff;
  font-size: 34px;
  line-height: 1;
  transform: scale(0.5);
  transform-origin: center;
  letter-spacing: 0.4px;
}

.login-btn:active {
  background: var(--brand-red-dark);
}

.agree-row {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  color: #63584f;
  white-space: nowrap;
}

.agree-row input {
  width: 15px;
  height: 15px;
}

.agree-row em {
  color: #8f2f26;
  font-style: normal;
}

.other-login {
  text-align: center;
  margin-top: -14px;
}

.other-login p {
  margin: 0 0 14px;
  color: #5e544b;
  font-size: 14px;
}

.other-icons {
  display: flex;
  justify-content: center;
  gap: 30px;
}

.other-btn {
  width: 52px;
  height: 52px;
  border: 0;
  background: transparent;
  padding: 0;
}

.other-btn img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
