page {
  height: 100%;
  overflow: hidden;
}

.login-page {
  position: relative;
  height: 100vh;
  min-height: 100vh;
  overflow: hidden;
  background: #f4f8ff;
}

.login-page__background {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.login-page__content {
  position: relative;
  z-index: 1;
  height: 100vh;
  min-height: 0;
  padding: 72px 30px calc(30px + env(safe-area-inset-bottom));
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
}

.login-page__brand-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 340px;
}

.login-page__logo-card {
  width: 104px;
  height: 104px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 4px solid rgba(255, 255, 255, 0.9);
  border-radius: 50%;
  box-shadow: 0 14px 28px rgba(18, 62, 124, 0.13);
}

.login-page__logo {
  width: 104px;
  height: 104px;
}

.login-page__brand-copy {
  margin-top: 14px;
}

.login-page__brand {
  display: block;
  color: #111827;
  font-size: 24px;
  font-weight: 800;
  line-height: 1.24;
}

.login-page__subtitle {
  display: block;
  margin-top: 6px;
  color: #123e7c;
  font-size: 15px;
  font-weight: 700;
}

.login-page__intro-line {
  display: block;
  margin-top: 7px;
  color: #667085;
  font-size: 13px;
  line-height: 1.5;
}

.login-page__pc-note {
  display: block;
  margin-bottom: 12px;
  color: #475569;
  font-size: 14px;
  line-height: 1.4;
  text-align: center;
}

.login-page__panel {
  margin-top: auto;
  padding-bottom: 4px;
}

.login-page__wechat-button {
  width: 520px;
  max-width: 100%;
  min-height: 48px;
  margin: 0 auto 10px;
  border: none;
  border-radius: 8px;
  background: #123e7c;
  color: #ffffff;
  font-size: 16px;
  font-weight: 800;
  line-height: 48px;
  box-shadow: 0 14px 26px rgba(18, 62, 124, 0.16);
  transition: transform 120ms ease, opacity 120ms ease;
}

.login-page__wechat-button:active {
  transform: scale(0.985);
}

.login-page__wechat-button[disabled] {
  opacity: 0.52;
}

.login-page__wechat-button::after {
  border: none;
}

.login-page__other-entry {
  width: 520px;
  max-width: 100%;
  min-height: 46px;
  margin: 0 auto;
  border: 1px solid #d7e2f1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  color: #123e7c;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  font-weight: 760;
  transition: transform 120ms ease, border-color 120ms ease, background 120ms ease;
}

.login-page__other-entry:active {
  transform: scale(0.985);
  border-color: #123e7c;
  background: rgba(255, 255, 255, 0.94);
}

.login-page__other-entry.disabled {
  opacity: 0.48;
}

.login-page__staff-entry {
  width: 520px;
  max-width: 100%;
  min-height: 38px;
  margin: 10px auto 0;
  color: #344054;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 760;
  line-height: 1.4;
  transition: transform 120ms ease, opacity 120ms ease;
}

.login-page__staff-entry Text {
  padding-bottom: 2px;
  border-bottom: 1px solid rgba(52, 64, 84, 0.32);
}

.login-page__staff-entry:active {
  transform: scale(0.985);
  opacity: 0.76;
}

.login-page__staff-entry.disabled {
  opacity: 0.48;
}

.login-agreement {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 14px;
  padding: 0 8px;
  transition: transform 120ms ease;
}

.login-agreement:active {
  transform: scale(0.99);
}

.agree-box {
  width: 18px;
  height: 18px;
  flex: none;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #cfd8e3;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

.agree-box.checked {
  border-color: #123e7c;
  background: #123e7c;
}

.agree-text {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px;
  color: #8a96a8;
  font-size: 12px;
  line-height: 1.45;
}

.agree-link {
  color: #123e7c;
  font-weight: 700;
  transition: opacity 120ms ease;
}

.agree-link:active {
  opacity: 0.72;
}

.drawer-mask {
  position: fixed;
  inset: 0;
  z-index: 88;
  display: flex;
  align-items: flex-end;
  background: rgba(15, 23, 42, 0.22);
  animation: legalMaskFade 180ms ease-out both;
}

.bottom-drawer {
  width: 100%;
  padding: 0 24px calc(32px + env(safe-area-inset-bottom));
  border-radius: 24px 24px 0 0;
  background: #ffffff;
  box-shadow: 0 -18px 42px rgba(15, 23, 42, 0.14);
  box-sizing: border-box;
  animation: legalDrawerUp 240ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
  transform: translate3d(0, 0, 0);
  transition: transform 300ms cubic-bezier(0.16, 1, 0.3, 1), max-height 260ms cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.bottom-drawer.dragging {
  transition: none;
}

.bottom-drawer.expanded {
  max-height: 92vh;
}

.drawer-drag-zone {
  padding-top: 10px;
}

.drawer-handle {
  width: 40px;
  height: 4px;
  margin: 10px auto 4px;
  border-radius: 999px;
  background: #d7deea;
  transition: transform 160ms ease, background 160ms ease;
}

.drawer-drag-zone:active .drawer-handle {
  transform: scaleX(1.16);
  background: #bfc8d8;
}

.drawer-head {
  height: 50px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
}

.drawer-title {
  color: #111827;
  font-size: 18px;
  font-weight: 800;
}

.phone-login-drawer {
  min-height: 78vh;
  padding-right: 28px;
  padding-bottom: calc(24px + env(safe-area-inset-bottom));
  padding-left: 28px;
}

.phone-login-drawer .drawer-title {
  text-align: left;
}

.phone-login-drawer-body {
  min-height: 330px;
  padding-top: 0;
}

.staff-login-drawer {
  min-height: 58vh;
}

.staff-login-drawer-body {
  min-height: 250px;
}

.staff-login-field {
  margin-top: 12px;
}

.staff-login-submit {
  margin-top: 16px;
}

.phone-login-drawer-copy {
  display: block;
  margin-bottom: 10px;
  color: #667085;
  font-size: 13px;
  line-height: 1.55;
}

.phone-login-step-viewport {
  min-height: 48px;
  margin-top: 0;
  overflow: hidden;
  transition: min-height 180ms ease;
}

.phone-login-step-viewport.with-meta {
  min-height: 88px;
}

.phone-login-step-track {
  width: 200%;
  display: flex;
  transform: translateX(0);
  transition: transform 220ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.phone-login-step-track.code {
  transform: translateX(-50%);
}

.phone-login-step-track.password {
  transform: translateX(-50%);
}

.phone-login-step-panel {
  width: 50%;
  flex: none;
  padding-right: 2px;
  box-sizing: border-box;
}

.drawer-auth-field {
  margin-top: 0;
}

.drawer-auth-field--plain {
  margin: 0;
}

.drawer-auth-label {
  display: block;
  margin-bottom: 8px;
  color: #344054;
  font-size: 14px;
  font-weight: 760;
}

.drawer-auth-input {
  height: 48px;
  padding: 0 15px;
  border-radius: 8px;
  background: #f7faf8;
  color: #111827;
  font-size: 15px;
  font-weight: 680;
  box-sizing: border-box;
}

.drawer-auth-change {
  display: block;
  margin-top: 10px;
  color: #123e7c;
  font-size: 13px;
  font-weight: 750;
  transition: opacity 120ms ease, transform 120ms ease;
}

.drawer-auth-change:active {
  opacity: 0.72;
  transform: scale(0.98);
}

.drawer-auth-primary {
  height: 48px;
  margin-top: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(180deg, #174a91 0%, #0d3674 100%);
  box-shadow: 0 12px 22px rgba(18, 62, 124, 0.18);
  font-size: 15px;
  font-weight: 850;
  transition: transform 120ms ease, opacity 120ms ease, box-shadow 120ms ease;
}

.drawer-auth-primary:active {
  transform: scale(0.985);
  box-shadow: 0 8px 16px rgba(18, 62, 124, 0.16);
}

.drawer-auth-primary.translucent {
  opacity: 0.48;
  box-shadow: none;
}

.password-login-panel {
  margin-top: 0;
}

.password-login-panel__field {
  margin-top: 14px;
}

.drawer-auth-alt {
  display: block;
  margin-top: 10px;
  color: #7c8a9a;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.4;
  text-align: center;
  transition: opacity 120ms ease, transform 120ms ease;
}

.drawer-auth-alt:active {
  opacity: 0.72;
  transform: scale(0.98);
}

.legal-drawer-mask {
  z-index: 99;
  background: rgba(15, 23, 42, 0.42);
}

.agreement-drawer {
  max-height: 78vh;
  overflow: hidden;
}

.legal-drawer__body {
  max-height: calc(78vh - 88px);
  padding: 8px 0 24px;
  box-sizing: border-box;
}

.legal-drawer__section-title {
  display: block;
  margin: 14px 0 8px;
  color: #111827;
  font-size: 15px;
  font-weight: 800;
  line-height: 1.6;
}

.legal-drawer__paragraph,
.legal-drawer__muted,
.legal-drawer__error {
  display: block;
  margin-bottom: 10px;
  color: #475569;
  font-size: 13px;
  line-height: 1.8;
}

.legal-drawer__muted {
  color: #94a3b8;
  font-weight: 700;
}

.legal-drawer__error {
  color: #b42318;
  font-weight: 700;
}

@keyframes legalMaskFade {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes legalDrawerUp {
  from { transform: translateY(100%); }
  to { transform: translateY(0); }
}
