/* ==================== 登录页全新高端特斯拉车友会设计 ==================== */
:where(.mp-page[data-route="pages/login/login"]) .login {
  min-height: 100vh;
  min-height: calc(100 * var(--mp-vh, 1vh));
  display: flex;
  flex-direction: column;
  background: #FFFFFF;
  overflow-x: hidden;
  user-select: none;
}

/* 顶栏避让区：纯净白底，与小程序原生顶栏无缝衔接 */
:where(.mp-page[data-route="pages/login/login"]) .login-top-bar {
  position: relative;
  width: 100%;
  z-index: 20;
  background: #FFFFFF;
}

:where(.mp-page[data-route="pages/login/login"]) .login-nav {
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  box-sizing: border-box;
}

:where(.mp-page[data-route="pages/login/login"]) .login-back-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #F3F4F6;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #1F2937;
  cursor: pointer;
  transition: all 0.15s ease;
}
:where(.mp-page[data-route="pages/login/login"]) .login-back-btn:active {
  background: #E5E7EB;
  transform: scale(0.95);
}

:where(.mp-page[data-route="pages/login/login"]) .login-capsule-space {
  width: 8px;
}
.in-miniprogram :where(.mp-page[data-route="pages/login/login"]) .login-capsule-space {
  width: 90px;
}

/* 主体内容区：紧凑均衡，无巨大空旷留白 */
:where(.mp-page[data-route="pages/login/login"]) .login-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 4px 24px calc(env(safe-area-inset-bottom, 20px) + 16px);
  max-width: 380px;
  margin: 0 auto;
  width: 100%;
  box-sizing: border-box;
}

/* 顶部品牌核心区 */
:where(.mp-page[data-route="pages/login/login"]) .login-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-top: 4px;
  margin-bottom: 12px;
}

:where(.mp-page[data-route="pages/login/login"]) .login-brand-tag {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 2px;
  color: var(--brand-orange, #E45A1B);
  text-transform: uppercase;
  margin-bottom: 4px;
}

:where(.mp-page[data-route="pages/login/login"]) .login-title {
  font-size: 36px;
  font-weight: 900;
  letter-spacing: 6px;
  color: #111827;
  line-height: 1.1;
}

:where(.mp-page[data-route="pages/login/login"]) .login-subtitle {
  font-size: 15px;
  font-weight: 700;
  color: #374151;
  margin-top: 6px;
  letter-spacing: 1px;
}

:where(.mp-page[data-route="pages/login/login"]) .login-slogan {
  font-size: 12px;
  color: #8A919E;
  margin-top: 6px;
  font-weight: 500;
  letter-spacing: 0.8px;
}

/* 核心视觉展示区：3D立体金属质感尊贵会员卡 */
:where(.mp-page[data-route="pages/login/login"]) .login-card-showcase {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 8px 0 16px;
}

:where(.mp-page[data-route="pages/login/login"]) .login-metal-card {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 184px;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22), 0 0 0 1px rgba(0, 0, 0, 0.08);
  background: #1C1F26;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 16px 18px;
  box-sizing: border-box;
  transform: perspective(800px) rotateX(2deg);
}

:where(.mp-page[data-route="pages/login/login"]) .login-metal-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.65;
  z-index: 1;
}

:where(.mp-page[data-route="pages/login/login"]) .login-metal-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 35, 45, 0.45) 0%, rgba(10, 12, 16, 0.85) 100%);
  z-index: 2;
}

:where(.mp-page[data-route="pages/login/login"]) .login-metal-shine {
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.1) 48%, rgba(255, 255, 255, 0.22) 50%, transparent 58%);
  z-index: 3;
  pointer-events: none;
}

:where(.mp-page[data-route="pages/login/login"]) .login-metal-header {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

:where(.mp-page[data-route="pages/login/login"]) .login-metal-brand {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1.5px;
  color: #FFFFFF;
}

:where(.mp-page[data-route="pages/login/login"]) .login-metal-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand-orange, #E45A1B);
  box-shadow: 0 0 8px #E45A1B;
}

:where(.mp-page[data-route="pages/login/login"]) .login-metal-chip {
  width: 32px;
  height: 23px;
  border-radius: 4px;
  background: linear-gradient(135deg, #D4AF37, #AA771C);
  border: 0.5px solid rgba(255, 255, 255, 0.4);
  box-shadow: inset 0 1px 2px rgba(255, 255, 255, 0.5);
}

:where(.mp-page[data-route="pages/login/login"]) .login-metal-center {
  position: relative;
  z-index: 4;
  margin: 4px 0;
}

:where(.mp-page[data-route="pages/login/login"]) .login-metal-num-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.55);
  text-transform: uppercase;
  margin-bottom: 2px;
}

:where(.mp-page[data-route="pages/login/login"]) .login-metal-number {
  font-family: 'EwDIN', -apple-system, sans-serif;
  font-size: 26px;
  font-weight: 900;
  letter-spacing: 2px;
  color: #FFFFFF;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.6);
}

:where(.mp-page[data-route="pages/login/login"]) .login-metal-model {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1px;
  color: #FFB37C;
  margin-top: 2px;
}

:where(.mp-page[data-route="pages/login/login"]) .login-metal-footer {
  position: relative;
  z-index: 4;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

:where(.mp-page[data-route="pages/login/login"]) .login-metal-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 10px;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.85);
}

:where(.mp-page[data-route="pages/login/login"]) .login-badge-star {
  color: #FFB37C;
  font-size: 11px;
}

:where(.mp-page[data-route="pages/login/login"]) .login-metal-limited {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1px;
  color: rgba(255, 255, 255, 0.45);
}

:where(.mp-page[data-route="pages/login/login"]) .login-card-tip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 500;
  color: #6B7280;
  margin-top: 14px;
}
:where(.mp-page[data-route="pages/login/login"]) .login-card-tip svg {
  color: var(--brand-orange, #E45A1B);
}

/* 底部交互区 */
:where(.mp-page[data-route="pages/login/login"]) .login-action-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
}

:where(.mp-page[data-route="pages/login/login"]) .login-main-btn {
  width: 100%;
  height: 50px;
  border-radius: 25px;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #FFFFFF;
  background: linear-gradient(135deg, #FF6B2B 0%, #E45A1B 100%);
  border: none;
  cursor: pointer;
  box-shadow: 0 8px 22px rgba(228, 90, 27, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.15s ease;
}
:where(.mp-page[data-route="pages/login/login"]) .login-main-btn:active {
  transform: scale(0.98);
  box-shadow: 0 4px 12px rgba(228, 90, 27, 0.25);
}

:where(.mp-page[data-route="pages/login/login"]) .login-btn-icon {
  display: inline-flex;
}

:where(.mp-page[data-route="pages/login/login"]) .login-guest-link {
  font-size: 13px;
  color: #8A919E;
  font-weight: 500;
  cursor: pointer;
  padding: 12px 0 6px;
  transition: color 0.15s;
  text-align: center;
}
:where(.mp-page[data-route="pages/login/login"]) .login-guest-link:active {
  color: #111827;
}

:where(.mp-page[data-route="pages/login/login"]) .login-agree-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

:where(.mp-page[data-route="pages/login/login"]) .checkbox {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: 1.5px solid #D1D5DB;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #FFFFFF;
  cursor: pointer;
  transition: all 0.15s ease;
}

:where(.mp-page[data-route="pages/login/login"]) .checkbox-on {
  background: var(--brand-orange, #E45A1B);
  border-color: var(--brand-orange, #E45A1B);
}

:where(.mp-page[data-route="pages/login/login"]) .agree-text {
  font-size: 11px;
  color: #9CA3AF;
  line-height: 1.5;
}

:where(.mp-page[data-route="pages/login/login"]) .agree-link {
  color: #3B82F6;
  cursor: pointer;
  font-weight: 500;
}

:where(.mp-page[data-route="pages/login/login"]) .login-mode-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-bottom: 12px;
}
:where(.mp-page[data-route="pages/login/login"]) .login-mode-btn {
  height: 36px;
  border: 0;
  border-radius: 999px;
  background: #F3F4F6;
  color: #6B7280;
  font-size: 13px;
  font-weight: 600;
}
:where(.mp-page[data-route="pages/login/login"]) .login-mode-btn.is-on {
  background: #111827;
  color: #fff;
}
:where(.mp-page[data-route="pages/login/login"]) .login-phone-form {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}
:where(.mp-page[data-route="pages/login/login"]) .login-phone-input {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border: 1px solid #E5E7EB;
  border-radius: 12px;
  background: #fff;
  font-size: 15px;
  box-sizing: border-box;
}
:where(.mp-page[data-route="pages/login/login"]) .login-code-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}
:where(.mp-page[data-route="pages/login/login"]) .login-code-btn {
  min-width: 108px;
  height: 46px;
  border: 0;
  border-radius: 12px;
  background: #111827;
  color: #fff;
  font-size: 12px;
  font-weight: 600;
}
:where(.mp-page[data-route="pages/login/login"]) .login-code-btn[disabled] {
  background: #D1D5DB;
  color: #6B7280;
}
:where(.mp-page[data-route="pages/login/login"]) .login-dev-hint {
  font-size: 12px;
  color: #B45309;
  background: #FFF7ED;
  border-radius: 10px;
  padding: 8px 10px;
}
