/**
 * 登录页 — 商户端 / 管理端共用
 * 安静金融台面：品牌先行、通透背景、无卡片堆叠
 */
@import url("https://fonts.googleapis.com/css2?family=Sora:wght@500;600;700&family=Noto+Sans+SC:wght@400;500;600;700&display=swap");

body.premium-admin-login,
body.premium-user-login {
  --auth-ink: #12263a;
  --auth-ink-soft: #3d5166;
  --auth-muted: #6b7c8f;
  --auth-line: #c9d4e0;
  --auth-accent: #1f4e6b;
  --auth-accent-hover: #163d54;
  --auth-surface: rgba(255, 255, 255, 0.55);
  --auth-field: rgba(255, 255, 255, 0.82);
  --auth-display: "Sora", "Noto Sans SC", "PingFang SC", "Microsoft YaHei", sans-serif;
  --auth-body: "Noto Sans SC", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
  min-height: 100vh !important;
  margin: 0 !important;
  background: #e8eef4 !important;
  color: var(--auth-ink) !important;
  font-family: var(--auth-body) !important;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

body.premium-admin-login::before,
body.premium-user-login::before,
body.premium-admin-login::after,
body.premium-user-login::after {
  display: none !important;
  content: none !important;
}

.auth-page {
  position: relative !important;
  min-height: 100vh !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: clamp(28px, 6vh, 64px) 22px !important;
  isolation: isolate;
  background: transparent !important;
}

.auth-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background:
    linear-gradient(160deg, #eef3f8 0%, #e4ebf2 42%, #d9e4ee 100%);
}

.auth-bg::before,
.auth-bg::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(2px);
}

.auth-bg::before {
  width: min(72vw, 640px);
  height: min(72vw, 640px);
  top: -18%;
  right: -12%;
  background: radial-gradient(circle at 35% 40%, rgba(255, 255, 255, 0.95), rgba(190, 210, 228, 0.35) 55%, transparent 70%);
  animation: auth-orb-a 16s ease-in-out infinite alternate;
}

.auth-bg::after {
  width: min(58vw, 480px);
  height: min(58vw, 480px);
  bottom: -20%;
  left: -10%;
  background: radial-gradient(circle at 60% 45%, rgba(31, 78, 107, 0.14), rgba(31, 78, 107, 0.04) 50%, transparent 72%);
  animation: auth-orb-b 19s ease-in-out infinite alternate;
}

.auth-grid {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image:
    linear-gradient(rgba(18, 38, 58, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(18, 38, 58, 0.045) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 15%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 75% 65% at 50% 45%, #000 15%, transparent 78%);
}

.auth-beam {
  position: absolute;
  inset: 12% 8% auto;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(31, 78, 107, 0.28), transparent);
  animation: auth-line-breathe 5.5s ease-in-out infinite;
}

.auth-scan {
  display: none;
}

.auth-shell {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  animation: auth-rise 0.75s cubic-bezier(0.22, 1, 0.36, 1) both;
}

body.premium-admin-login .auth-card,
body.premium-user-login .auth-card {
  width: 100% !important;
  max-width: none !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  position: relative;
}

body.premium-admin-login .auth-card::before,
body.premium-user-login .auth-card::before,
body.premium-admin-login .auth-card::after,
body.premium-user-login .auth-card::after {
  display: none !important;
  content: none !important;
}

body.premium-admin-login .auth-brand,
body.premium-user-login .auth-brand {
  text-align: center !important;
  margin-bottom: 28px !important;
  position: relative;
  z-index: 1;
}

body.premium-admin-login .auth-logo,
body.premium-user-login .auth-logo,
body.premium-admin-login .auth-mark,
body.premium-user-login .auth-mark,
body.premium-admin-login .auth-meta,
body.premium-user-login .auth-meta {
  display: none !important;
}

.auth-mark {
  display: none;
  width: 36px;
  height: 36px;
  margin: 0 0 22px;
  position: relative;
}

.auth-mark span {
  position: absolute;
  display: block;
  background: var(--auth-accent);
}

.auth-mark span:nth-child(1) {
  left: 0;
  top: 0;
  width: 36px;
  height: 3px;
  animation: auth-mark-draw 1.1s ease both;
}

.auth-mark span:nth-child(2) {
  left: 0;
  top: 0;
  width: 3px;
  height: 36px;
  animation: auth-mark-draw 1.1s 0.08s ease both;
}

.auth-mark span:nth-child(3) {
  right: 0;
  bottom: 0;
  width: 16px;
  height: 16px;
  background: linear-gradient(135deg, #2a6a8d, var(--auth-accent));
  animation: auth-mark-fade 1s 0.2s ease both;
}

body.premium-admin-login .auth-brand h1,
body.premium-user-login .auth-brand h1 {
  margin: 0 0 10px !important;
  font-family: var(--auth-display) !important;
  font-size: clamp(34px, 7vw, 44px) !important;
  font-weight: 700 !important;
  color: var(--auth-ink) !important;
  letter-spacing: -0.035em !important;
  line-height: 1.08 !important;
}

body.premium-admin-login .auth-brand p,
body.premium-user-login .auth-brand p {
  margin: 0 !important;
  font-size: 15px !important;
  font-weight: 500 !important;
  color: var(--auth-ink-soft) !important;
  letter-spacing: 0.02em !important;
  text-transform: none !important;
  font-family: var(--auth-body) !important;
  line-height: 1.5 !important;
}

body.premium-admin-login .auth-form,
body.premium-user-login .auth-form {
  position: relative;
  z-index: 1;
}

body.premium-admin-login .auth-field,
body.premium-user-login .auth-field {
  margin-bottom: 16px !important;
}

body.premium-admin-login .auth-field label,
body.premium-user-login .auth-field label {
  display: block;
  margin: 0 0 7px;
  font-size: 12px;
  font-weight: 600;
  color: var(--auth-muted);
  letter-spacing: 0.04em;
}

body.premium-admin-login .auth-field .form-control,
body.premium-user-login .auth-field .form-control,
body.premium-admin-login .form-control,
body.premium-user-login .form-control {
  height: 48px !important;
  border-radius: 10px !important;
  border: 1px solid var(--auth-line) !important;
  background: var(--auth-field) !important;
  color: var(--auth-ink) !important;
  font-size: 15px !important;
  font-family: var(--auth-body) !important;
  box-shadow: none !important;
  padding: 12px 14px !important;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

body.premium-admin-login .auth-field .form-control::placeholder,
body.premium-user-login .auth-field .form-control::placeholder {
  color: #93a1b1 !important;
}

body.premium-admin-login .auth-field .form-control:focus,
body.premium-user-login .auth-field .form-control:focus,
body.premium-admin-login .form-control:focus,
body.premium-user-login .form-control:focus {
  border-color: var(--auth-accent) !important;
  background: #fff !important;
  box-shadow: 0 0 0 3px rgba(31, 78, 107, 0.12) !important;
  outline: none !important;
}

body.premium-admin-login .auth-captcha-row,
body.premium-user-login .auth-captcha-row {
  display: flex !important;
  gap: 10px !important;
  align-items: stretch !important;
}

body.premium-admin-login .auth-captcha-row .form-control,
body.premium-user-login .auth-captcha-row .form-control {
  flex: 1;
  min-width: 0;
}

body.premium-admin-login .auth-captcha-row img,
body.premium-user-login .auth-captcha-row img {
  height: 48px !important;
  width: 118px !important;
  border-radius: 10px !important;
  border: 1px solid var(--auth-line) !important;
  cursor: pointer;
  background: #fff;
  object-fit: cover;
}

body.premium-admin-login .auth-captcha-box,
body.premium-user-login .auth-captcha-box {
  margin-bottom: 16px !important;
}

body.premium-user-login .auth-captcha-box #captcha,
body.premium-user-login .auth-captcha-box #captcha_text {
  min-height: 42px;
  color: var(--auth-muted) !important;
}

body.premium-admin-login .auth-submit,
body.premium-user-login .auth-submit,
body.premium-admin-login .btn-primary.auth-submit,
body.premium-user-login .btn-primary.auth-submit {
  margin-top: 10px !important;
  height: 50px !important;
  min-height: 50px !important;
  border: none !important;
  border-radius: 10px !important;
  background: var(--auth-accent) !important;
  border-color: transparent !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0.08em !important;
  box-shadow: none !important;
  position: relative;
  overflow: hidden;
  transition: background 0.2s ease, transform 0.15s ease;
}

body.premium-admin-login .auth-submit::after,
body.premium-user-login .auth-submit::after {
  content: none !important;
  display: none !important;
}

body.premium-admin-login .auth-submit:hover,
body.premium-user-login .auth-submit:hover,
body.premium-admin-login .auth-submit:focus,
body.premium-user-login .auth-submit:focus {
  filter: none;
  color: #fff !important;
  background: var(--auth-accent-hover) !important;
  transform: translateY(-1px);
  box-shadow: none !important;
}

body.premium-admin-login .auth-meta,
body.premium-user-login .auth-meta {
  margin-top: 22px;
  text-align: left;
  font-size: 12px;
  color: var(--auth-muted);
  letter-spacing: 0.02em;
  font-family: var(--auth-body);
  line-height: 1.5;
}

body.premium-admin-login .auth-tip,
body.premium-user-login .auth-tip {
  margin: 0 0 18px !important;
  font-size: 13px !important;
  color: var(--auth-ink-soft) !important;
  text-align: left !important;
}

body.premium-admin-login .auth-code-row,
body.premium-user-login .auth-code-row {
  display: flex !important;
  gap: 10px !important;
  align-items: stretch !important;
}

body.premium-admin-login .auth-code-row .form-control,
body.premium-user-login .auth-code-row .form-control {
  flex: 1;
  min-width: 0;
}

body.premium-admin-login .auth-code-row .btn,
body.premium-user-login .auth-code-row .btn {
  flex-shrink: 0;
  min-width: 110px;
  height: 48px !important;
  border-radius: 10px !important;
  border: 1px solid var(--auth-line) !important;
  background: rgba(255, 255, 255, 0.72) !important;
  color: var(--auth-ink) !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

body.premium-admin-login .auth-agree,
body.premium-user-login .auth-agree {
  margin: 4px 0 14px;
  font-size: 13px;
  color: var(--auth-muted);
}

body.premium-admin-login .auth-agree a,
body.premium-user-login .auth-agree a {
  color: var(--auth-accent);
}

body.premium-admin-login .auth-extra,
body.premium-user-login .auth-extra {
  margin-top: 12px;
}

body.premium-admin-login .auth-extra .btn-default,
body.premium-user-login .auth-extra .btn-default {
  height: 46px !important;
  border-radius: 10px !important;
  border: 1px solid var(--auth-line) !important;
  background: transparent !important;
  color: var(--auth-ink-soft) !important;
  font-weight: 500 !important;
  box-shadow: none !important;
}

body.premium-admin-login .auth-extra .btn-default:hover,
body.premium-user-login .auth-extra .btn-default:hover {
  border-color: var(--auth-accent) !important;
  color: var(--auth-accent) !important;
  background: rgba(255, 255, 255, 0.55) !important;
}

@keyframes auth-orb-a {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(-18px, 22px, 0) scale(1.04); }
}

@keyframes auth-orb-b {
  from { transform: translate3d(0, 0, 0) scale(1); }
  to { transform: translate3d(24px, -16px, 0) scale(1.06); }
}

@keyframes auth-line-breathe {
  0%, 100% { opacity: 0.25; transform: scaleX(0.86); }
  50% { opacity: 0.7; transform: scaleX(1); }
}

@keyframes auth-rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes auth-mark-draw {
  from { opacity: 0; transform: scaleY(0.2); transform-origin: top left; }
  to { opacity: 1; transform: scaleY(1); }
}

@keyframes auth-mark-fade {
  from { opacity: 0; transform: translate(6px, 6px); }
  to { opacity: 1; transform: translate(0, 0); }
}

@media (max-width: 480px) {
  body.premium-admin-login .auth-brand,
  body.premium-user-login .auth-brand {
    margin-bottom: 28px !important;
  }
  body.premium-admin-login .auth-brand h1,
  body.premium-user-login .auth-brand h1 {
    font-size: 32px !important;
  }
}

@media (prefers-reduced-motion: reduce) {
  .auth-bg::before,
  .auth-bg::after,
  .auth-beam,
  .auth-shell,
  .auth-mark span {
    animation: none !important;
  }
}
