/* ============================================================
   实名认证聚合平台 - 后台登录页
   ============================================================ */

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --page-from: #eef2ff;
  --page-to: #f8fafc;
  --card-bg: #ffffff;
  --text: #182230;
  --text-dim: #6b778c;
  --input-bg: #f7f8fc;
  --input-border: #e3e7ef;
  --input-focus: #6e5bff;
  --btn-from: #6e5bff;
  --btn-to: #8b7bff;
  --danger: #e5484d;
  --success: #12a150;
}

body {
  min-height: 100vh;
  font-family: "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background:
    radial-gradient(900px 520px at 12% 8%, rgba(110, 91, 255, 0.14), transparent 62%),
    radial-gradient(760px 480px at 88% 90%, rgba(245, 38, 106, 0.12), transparent 64%),
    linear-gradient(150deg, var(--page-from), var(--page-to));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 28px 16px;
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

.login-page {
  width: 100%;
  max-width: 940px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* ---------- 卡片 ---------- */

.login-card {
  width: 100%;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  overflow: hidden;
  border-radius: 22px;
  background: var(--card-bg);
  border: 1px solid #e7eaf2;
  box-shadow: 0 30px 70px rgba(15, 23, 42, 0.12);
}

/* ---------- 左侧品牌区 ---------- */

.login-brand {
  padding: 46px 40px;
  color: #fff;
  background:
    radial-gradient(520px 300px at 20% 10%, rgba(255, 255, 255, 0.16), transparent 60%),
    linear-gradient(145deg, #2f3f9e 0%, #5b48e8 52%, #f5266a 140%);
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.brand-logo {
  width: 62px;
  height: 62px;
  margin-bottom: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 16px;
  overflow: hidden;
}

.brand-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.login-brand h1 {
  font-size: 25px;
  font-weight: 700;
  letter-spacing: 1px;
  line-height: 1.35;
}

.login-subtitle {
  margin-top: 8px;
  font-size: 10.5px;
  letter-spacing: 2.2px;
  color: rgba(255, 255, 255, 0.72);
  text-transform: uppercase;
}

/* ---------- 右侧表单区 ---------- */

.login-panel {
  padding: 42px 38px 32px;
  display: flex;
  flex-direction: column;
}

.panel-title h2 {
  font-size: 20px;
  font-weight: 700;
}

.panel-title p {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--text-dim);
}

.login-form {
  margin-top: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.login-label {
  margin-top: 10px;
  font-size: 12.5px;
  font-weight: 600;
  color: #475569;
}

.login-form input[type="text"],
.login-form select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 10px;
  border: 1px solid var(--input-border);
  background: var(--input-bg);
  color: var(--text);
  font-size: 14.5px;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-form input::placeholder {
  color: #a6adbb;
}

.login-form input:focus,
.login-form select:focus {
  border-color: var(--input-focus);
  box-shadow: 0 0 0 3px rgba(110, 91, 255, 0.13);
  background: #fff;
}

/* ---------- 记住账号 ---------- */

.remember-row {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
  width: fit-content;
  align-self: flex-start;
}

.remember-row input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  pointer-events: none;
}

.remember-box {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  border-radius: 5px;
  border: 1.5px solid var(--input-border);
  background: var(--input-bg);
  position: relative;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.remember-box::after {
  content: "";
  position: absolute;
  left: 4.5px;
  top: 1px;
  width: 4px;
  height: 9px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0.4);
  opacity: 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
}

.remember-row input[type="checkbox"]:checked + .remember-box {
  border-color: var(--input-focus);
  background: var(--input-focus);
}

.remember-row input[type="checkbox"]:checked + .remember-box::after {
  transform: rotate(45deg) scale(1);
  opacity: 1;
}

.remember-row input[type="checkbox"]:focus-visible + .remember-box {
  box-shadow: 0 0 0 3px rgba(110, 91, 255, 0.18);
}

.remember-text {
  font-size: 13px;
  color: #64748b;
  user-select: none;
}

.remember-row:hover .remember-text {
  color: var(--text);
}

/* ---------- 下拉选择 ---------- */

.select-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.select-wrap select {
  appearance: none;
  -webkit-appearance: none;
  padding-left: 46px;
  padding-right: 34px;
  cursor: pointer;
}

.select-dot {
  position: absolute;
  left: 11px;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.22);
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.select-dot[data-brand="dmsh"] {
  box-shadow: 0 0 0 1px rgba(245, 38, 106, 0.3);
}

.select-dot[data-brand="pxqsh"] {
  box-shadow: 0 0 0 1px rgba(110, 91, 255, 0.3);
}

.select-dot[data-brand="my"] {
  box-shadow: 0 0 0 1px rgba(255, 102, 0, 0.3);
}

.select-logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.select-arrow {
  position: absolute;
  right: 14px;
  width: 11px;
  height: 8px;
  color: #94a3b8;
  pointer-events: none;
}

/* ---------- 登录按钮 ---------- */

.login-btn {
  margin-top: 22px;
  width: 100%;
  height: 48px;
  border: none;
  border-radius: 10px;
  background: linear-gradient(100deg, var(--btn-from) 0%, var(--btn-to) 100%);
  color: #fff;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 2px;
  font-family: inherit;
  cursor: pointer;
  outline: none;
  transition: transform 0.18s ease, box-shadow 0.2s ease, opacity 0.2s ease;
  box-shadow: 0 12px 24px rgba(110, 91, 255, 0.26);
}

.login-btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(110, 91, 255, 0.32);
}

.login-btn:active:not(:disabled) {
  transform: translateY(0);
  opacity: 0.92;
}

.login-btn:disabled {
  opacity: 0.6;
  cursor: not-allowed;
}

/* ---------- 提示 ---------- */

.login-message {
  min-height: 18px;
  margin-top: 12px;
  font-size: 12.5px;
  text-align: center;
  color: var(--danger);
}

.login-message.success {
  color: var(--success);
}

/* ---------- 底部分隔与链接 ---------- */

.login-divider {
  height: 1px;
  margin: 24px 0 16px;
  background: linear-gradient(90deg, transparent, #e7eaf2, transparent);
}

.login-links {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}

.link-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 8px 15px;
  border-radius: 9px;
  border: 1px solid var(--input-border);
  background: #fbfcfe;
  color: #64748b;
  font-size: 12.5px;
  text-decoration: none;
  outline: none;
  transition: color 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.link-item:hover {
  color: var(--text);
  border-color: #cfd6e4;
  background: #fff;
}

/* ---------- 底部说明 ---------- */

.login-footnote {
  margin-top: 22px;
  font-size: 11.5px;
  letter-spacing: 0.6px;
  color: #98a2b3;
  text-align: center;
}

/* ---------- 响应式 ---------- */

@media (max-width: 760px) {
  .login-card {
    grid-template-columns: minmax(0, 1fr);
    max-width: 420px;
  }

  .login-brand {
    padding: 30px 26px;
  }

  .login-panel {
    padding: 28px 24px 24px;
  }
}
