﻿body {
  background:
    radial-gradient(circle at top left, rgba(139, 21, 56, 0.08), transparent 22%),
    linear-gradient(180deg, #f5f7fb 0%, #eef2f7 100%);
}

.auth-page ~ .main-footer,
.auth-page + .main-footer {
  margin-top: 0;
}

.auth-page .auth-buttons,
.auth-page + .auth-buttons {
  display: none;
}

.main-header .auth-buttons {
  display: none;
}

.auth-page {
  padding: 36px 0 60px;
}

.auth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  align-items: start;
}

.auth-showcase {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 380px);
  gap: 28px;
  align-items: stretch;
}

.auth-promo {
  position: relative;
  min-height: 620px;
  padding: 62px 58px 52px;
  border-radius: 0;
  color: #fff;
  background:
    linear-gradient(90deg, rgba(113, 17, 45, 0.88), rgba(139, 21, 56, 0.64)),
    url("../../res/images/homepage/banner02.jpg") center center / cover no-repeat;
}

.auth-promo__bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.2), transparent 24%),
    radial-gradient(circle at 78% 76%, rgba(255, 255, 255, 0.12), transparent 28%);
  pointer-events: none;
}

.auth-promo__content {
  position: relative;
  z-index: 1;
  max-width: 560px;
}

.auth-promo__badge {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.auth-promo__title {
  margin: 26px 0 14px;
  font-size: clamp(34px, 4vw, 52px);
  line-height: 1.18;
  font-weight: 700;
}

.auth-promo__subtitle {
  margin: 0;
  max-width: 480px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.85;
}

.auth-promo__features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px 24px;
  margin: 42px 0 0;
  padding: 0;
  list-style: none;
}

.auth-promo__feature {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 48px;
  color: #fff;
  font-size: 17px;
  font-weight: 600;
}

.auth-promo__feature i {
  color: #d7ef8a;
  font-size: 24px;
}

.auth-promo__footer {
  display: flex;
  align-items: center;
  gap: 18px;
  width: min(100%, 460px);
  margin-top: 52px;
  padding: 0;
}

.auth-promo__mini-code {
  width: 92px;
  height: 92px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background:
    linear-gradient(45deg, rgba(255, 255, 255, 0.22) 25%, transparent 25%, transparent 50%, rgba(255, 255, 255, 0.22) 50%, rgba(255, 255, 255, 0.22) 75%, transparent 75%, transparent),
    rgba(255, 255, 255, 0.2);
  background-size: 18px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  font-size: 36px;
}

.auth-promo__footer-text {
  margin: 0;
  font-size: 17px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.96);
}

.auth-panel {
  position: relative;
  overflow: hidden;
  align-self: center;
  border: 1px solid rgba(24, 39, 75, 0.08);
  border-radius: 0;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 10px 30px rgba(31, 42, 68, 0.05);
}

.auth-panel--wechat {
  width: 100%;
  max-width: 380px;
  min-height: auto;
  margin: 0;
  padding: 30px 26px 22px;
}

.auth-panel__header {
  margin-bottom: 18px;
  text-align: center;
}

.auth-panel__badge {
  display: inline-flex;
  align-items: center;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #8b1538;
  font-size: 12px;
  font-weight: 700;
}

.auth-panel__title {
  margin: 10px 0 8px;
  color: #122033;
  font-size: 28px;
  line-height: 1.2;
}

.auth-panel__subtitle {
  margin: 0;
  color: #5a697d;
  font-size: 14px;
  line-height: 1.7;
}

.auth-qrcode-card {
  display: grid;
  justify-items: center;
  gap: 14px;
  padding: 14px 0 16px;
}

.auth-qrcode-card__frame {
  width: min(100%, 246px);
  padding: 10px;
  border-radius: 4px;
  border: 1px solid #e9edf2;
  background: #fff;
  box-shadow: none;
}

.auth-qrcode-card__canvas {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 220px;
  border-radius: 4px;
  border: 1px solid #edf0f4;
  background: #fff;
}

.auth-qrcode-card__placeholder {
  display: grid;
  justify-items: center;
  gap: 12px;
  color: #445469;
}

.auth-qrcode-card__placeholder i {
  font-size: 46px;
  color: #1fa960;
}

.auth-qrcode-card__tips {
  text-align: center;
  color: #5a697d;
  font-size: 14px;
  line-height: 1.7;
}

.auth-qrcode-card__tips p {
  margin: 0;
}

.auth-qrcode-card__actions {
  display: flex;
  justify-content: center;
}

.auth-status {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 0;
  border-top: 1px solid #edf0f4;
  background: #fafbfc;
  color: #556274;
  font-size: 12px;
  line-height: 1.75;
}

.auth-panel__meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  margin: 8px 0 0;
  padding: 0;
  list-style: none;
}

.auth-panel__meta-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #8a94a6;
  font-size: 12px;
}

.auth-panel__meta-item i {
  color: #c0c8d4;
  font-size: 16px;
}

.auth-panel__doc {
  margin: 12px 0 0;
  color: #8a94a6;
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

@media (max-width: 1199px) {
  .auth-showcase {
    grid-template-columns: minmax(0, 1fr);
    gap: 20px;
  }

  .auth-promo {
    min-height: auto;
    padding: 44px 34px 38px;
  }

  .auth-panel--wechat {
    max-width: 100%;
  }
}

@media (max-width: 767px) {
  .auth-page {
    padding: 20px 0 48px;
  }

  .auth-promo {
    padding: 30px 20px 28px;
  }

  .auth-promo__title {
    font-size: 30px;
  }

  .auth-promo__subtitle {
    font-size: 15px;
  }

  .auth-promo__features {
    grid-template-columns: 1fr;
    gap: 14px;
    margin-top: 28px;
  }

  .auth-promo__feature {
    font-size: 15px;
  }

  .auth-promo__footer {
    flex-direction: column;
    align-items: flex-start;
    margin-top: 28px;
  }

  .auth-panel--wechat {
    width: 100%;
    padding: 22px 18px 18px;
  }

  .auth-panel__title {
    font-size: 28px;
  }

  .auth-panel__meta {
    flex-wrap: wrap;
    justify-content: center;
  }
}
