* {
  box-sizing: border-box;
}

body.auth-page {
  margin: 0;
  padding-top: 0 !important;
  min-height: 100vh;
  background: linear-gradient(135deg, #fef4f5 0%, #fff5ed 50%, #fdf0f8 100%);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.auth-wrap {
  position: relative;
  min-height: 100vh;
  display: flex;
  overflow: hidden;
  background: linear-gradient(135deg, #fdf1f3 0%, #fff4ea 52%, #fbeefa 100%);
}

.auth-bg-decor {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

.auth-blob {
  position: absolute;
  border-radius: 999px;
  filter: blur(70px);
  opacity: 0.36;
  mix-blend-mode: multiply;
  animation: authBlobMove 16s ease-in-out infinite;
}

.auth-blob-1 {
  width: 420px;
  height: 420px;
  top: -140px;
  left: -90px;
  background: #ff8aa0;
}

.auth-blob-2 {
  width: 420px;
  height: 420px;
  top: -120px;
  right: 10%;
  background: #ffbe7a;
  animation-delay: -5s;
}

.auth-blob-3 {
  width: 460px;
  height: 460px;
  bottom: -220px;
  left: 40%;
  background: #f7a8dd;
  animation-delay: -10s;
}

@keyframes authBlobMove {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  33% {
    transform: translate3d(20px, -22px, 0) scale(1.06);
  }
  66% {
    transform: translate3d(-22px, 14px, 0) scale(0.96);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.auth-banner {
  position: relative;
  z-index: 2;
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 56px 64px;
}

.auth-banner:after {
  content: "";
  position: absolute;
  right: 0;
  top: 0;
  width: 1px;
  height: 100%;
  background: #f0dddd;
}

.auth-banner-inner {
  max-width: 540px;
  width: 100%;
}

.auth-brand-wrap {
  margin-bottom: 56px;
}

.auth-brand {
  line-height: 0;
}

.auth-brand-logo {
  display: block;
  max-width: 200px;
  height: auto;
  vertical-align: top;
}

.auth-slogan {
  margin-top: 10px;
  color: #505866;
  font-size: 17px;
  line-height: 1.3;
  font-weight: 400;
}

.auth-banner-title {
  font-size: 30px;
  font-weight: 600;
  color: #1b1f2a;
  margin: 0 0 20px;
  letter-spacing: 0.2px;
}

.auth-banner-desc {
  font-size: 16px;
  color: #424b59;
  line-height: 1.55;
}

.auth-banner-illus {
  margin-top: 34px;
  height: 300px;
  background: #fff url("/assets/img/wanlshop/login_bg.png") center center/cover no-repeat;
  border-radius: 14px;
  border: 1px solid #ece7e7;
  box-shadow: 0 8px 18px rgba(38, 43, 57, 0.12);
}

.auth-right {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 510px;
  background: #fff;
  display: flex;
  flex-direction: column;
  padding-top: 24px;
}

.auth-notice {
  background: #fff1f2;
  color: #ef4444;
  font-size: 12px;
  padding: 11px 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 18px;
  border-left: 4px solid #ef4444;
}

.auth-notice i {
  flex-shrink: 0;
}

.auth-form-wrap {
  flex: 1;
  padding: 20px 18px 30px;
  display: flex;
  flex-direction: column;
}

.auth-tabs {
  display: flex;
  gap: 34px;
  margin-bottom: 18px;
  border-bottom: 1px solid #e5e7eb;
}

.auth-tabs a {
  padding: 0 0 10px;
  margin-bottom: -1px;
  font-size: 20px;
  color: #1f2630;
  text-decoration: none;
  transition: color 0.2s;
}

.auth-tabs a:hover {
  color: #111827;
}

.auth-tabs a.active {
  color: #ef4444;
  font-weight: 600;
  border-bottom: 3px solid #ef4444;
}

.auth-body .form-group {
  margin-bottom: 18px;
}

.auth-body .form-group:last-of-type {
  margin-bottom: 18px;
}

.auth-body .control-label {
  display: block;
  margin-bottom: 10px;
  font-weight: 500;
  color: #1f2937;
  font-size: 16px;
}

.auth-body .form-control {
  width: 100%;
  height: 50px;
  padding: 0 14px 0 40px;
  border: 1px solid #d6d8de;
  border-radius: 8px;
  font-size: 16px;
  color: #111827;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.auth-body .form-control:focus {
  border-color: #ef4444;
  box-shadow: 0 0 0 1px rgba(239, 68, 68, 0.2);
  outline: none;
}

.auth-body .input-wrap {
  position: relative;
}

.auth-body .input-wrap .fa {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #bcc0ca;
  font-size: 17px;
  z-index: 1;
}

.auth-body .input-wrap.has-right-addon .form-control {
  padding-right: 120px;
}

.auth-body .input-wrap.has-right-addon .right-addon {
  position: absolute;
  right: 1px;
  top: 1px;
  height: calc(100% - 2px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
}

.auth-body .input-wrap.has-image-addon .form-control {
  padding-right: 130px;
}

.auth-body .input-wrap.has-image-addon .right-addon img {
  height: 100%;
  width: 120px;
  object-fit: cover;
  border-left: 1px solid #d1d5db;
  border-radius: 0 8px 8px 0;
  cursor: pointer;
}

.auth-body .input-wrap.has-button-addon .right-addon .btn {
  height: 100%;
  min-width: 110px;
  border-left: 1px solid #d1d5db;
  border-radius: 0 8px 8px 0;
  background: #f9fafb;
  color: #6b7280;
}

.auth-body .input-wrap.has-button-addon .right-addon .btn:hover {
  background: #f3f4f6;
  color: #ef4444;
}

.auth-body .btn-primary {
  width: 100%;
  height: 50px;
  background: #ff2b3a;
  border: none;
  border-radius: 8px;
  color: #fff;
  font-size: 18px;
  font-weight: 500;
  cursor: pointer;
  transition: background 0.2s;
}

.auth-body .btn-primary:hover {
  background: #ef2434;
}

.auth-body .checkbox.inline {
  margin: 0;
}

.auth-body .checkbox.inline input[type="checkbox"] {
  position: relative;
  top: 2px;
}

.auth-body .checkbox.inline label {
  font-weight: normal;
  color: #222b36;
  font-size: 14px;
}

.auth-body .help-block {
  margin: 6px 0 0;
  font-size: 12px;
  color: #9ca3af;
}

@media (max-width: 1024px) {
  .auth-wrap {
    background: linear-gradient(135deg, #fdf1f3 0%, #fff4ea 52%, #fbeefa 100%);
  }

  .auth-banner {
    display: none;
  }

  .auth-right {
    max-width: 100%;
    padding-top: 16px;
  }
}

@media (max-width: 600px) {
  .auth-blob {
    filter: blur(56px);
    opacity: 0.26;
  }

  .auth-form-wrap {
    padding: 20px;
  }

  .auth-notice {
    margin: 20px 20px 0;
  }

  .auth-body .form-control,
  .auth-body .btn-primary {
    height: 44px;
    font-size: 16px;
  }

  .auth-tabs a {
    font-size: 16px;
  }

  .auth-body .control-label,
  .auth-body .checkbox.inline label {
    font-size: 14px;
  }
}
