/* Ozon助手 · 登录页（与参考图差异化：居中卡片 + 环境渐变，非左右分栏插图） */
:root {
  --primary: #2563eb;
  --primary-mid: #1d4ed8;
  --primary-deep: #1e40af;
  --primary-soft: rgba(37, 99, 235, 0.12);
  --primary-ring: rgba(37, 99, 235, 0.25);
  --text: #0f172a;
  --text-muted: #64748b;
  --border: #e2e8f0;
  --surface: #ffffff;
  --input-bg: #f1f5f9;
  --danger: #dc2626;
}

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

html {
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
}

body.auth-body {
  margin: 0;
  min-height: 100vh;
  font-family: "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text);
  position: relative;
  overflow-x: hidden;
}

/* 背景：斜向色带 + 柔光，非左右整块色 */
.auth-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(115deg, #e8f2fc 0%, #f0f7ff 38%, #f8fafc 55%, #eef6ff 100%);
  pointer-events: none;
}

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

.auth-bg::before {
  width: min(72vw, 520px);
  height: min(72vw, 520px);
  background: #93c5fd;
  top: -12%;
  right: -8%;
}

.auth-bg::after {
  width: min(60vw, 420px);
  height: min(60vw, 420px);
  background: #bfdbfe;
  bottom: -15%;
  left: -10%;
}

/* 登录 / 注册：同一套背景（色带 + 柔光 + 细点） */
.auth-bg--login,
.auth-bg--register {
  background-color: #172554;
  background-image:
    radial-gradient(ellipse 100% 80% at 50% 120%, rgba(15, 23, 42, 0.55) 0%, transparent 55%),
    linear-gradient(
      152deg,
      #f8fafc 0%,
      #f0f9ff 14%,
      #e0f2fe 30%,
      #bae6fd 46%,
      #7dd3fc 58%,
      #38bdf8 68%,
      #0ea5e9 78%,
      #2563eb 88%,
      #1e3a8a 100%
    );
}

.auth-bg--login::before,
.auth-bg--register::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 85% 55% at 92% 8%, rgba(56, 189, 248, 0.45) 0%, transparent 52%),
    radial-gradient(ellipse 70% 50% at 8% 92%, rgba(129, 140, 248, 0.32) 0%, transparent 50%),
    radial-gradient(ellipse 55% 45% at 48% 38%, rgba(255, 255, 255, 0.55) 0%, transparent 58%);
  pointer-events: none;
}

.auth-bg--login::after,
.auth-bg--register::after {
  content: "";
  position: absolute;
  inset: 0;
  opacity: 0.5;
  background-image: radial-gradient(circle at center, rgba(255, 255, 255, 0.14) 1px, transparent 1px);
  background-size: 20px 20px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55) 0%, rgba(0, 0, 0, 0.12) 55%, rgba(0, 0, 0, 0.35) 100%);
  pointer-events: none;
}

.auth-page--login,
.auth-page--register,
.auth-page--forgot {
  padding-bottom: 0;
}

.auth-login-footer {
  flex-shrink: 0;
  position: relative;
  z-index: 1;
  padding: 1.35rem 1rem 1.85rem;
  text-align: center;
}

.auth-login-page .auth-login-footer .auth-footnote,
.auth-register-page .auth-login-footer .auth-footnote,
.auth-forgot-page .auth-login-footer .auth-footnote {
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.8rem;
  letter-spacing: 0.02em;
  text-shadow: 0 1px 2px rgba(15, 23, 42, 0.15);
}

.auth-top--login,
.auth-top--register,
.auth-top--forgot {
  max-width: 440px;
}

.auth-tag--login,
.auth-tag--register,
.auth-tag--forgot {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(8px);
  border-color: rgba(255, 255, 255, 0.65);
  color: var(--primary-deep);
}

/* 登录 / 注册卡片 */
.auth-card--login,
.auth-card--register,
.auth-card--forgot {
  max-width: 400px;
  padding: 2rem 1.85rem 1.65rem;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.75);
  box-shadow:
    0 0 0 1px rgba(15, 23, 42, 0.04),
    0 2px 4px rgba(15, 23, 42, 0.04),
    0 12px 28px rgba(30, 64, 175, 0.12),
    0 28px 56px -16px rgba(30, 58, 138, 0.22);
  background: linear-gradient(180deg, #ffffff 0%, #fafbfc 100%);
}

.auth-card--register,
.auth-card--forgot {
  max-width: 440px;
}

.auth-login-page .auth-card__title,
.auth-register-page .auth-card__title,
.auth-forgot-page .auth-card__title {
  font-size: 1.5rem;
  text-align: center;
}

.auth-login-page .auth-card__hint,
.auth-register-page .auth-card__hint,
.auth-forgot-page .auth-card__hint {
  text-align: center;
  margin-bottom: 1.5rem;
}

.auth-register-page .auth-card__ribbon,
.auth-forgot-page .auth-card__ribbon {
  display: block;
  text-align: center;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.auth-input--login,
.auth-input--register,
.auth-input--forgot {
  border-radius: 11px;
  border: 1px solid rgba(226, 232, 240, 0.95);
}

.auth-input--login:hover,
.auth-input--register:hover,
.auth-input--forgot:hover {
  border-color: #cbd5e1;
}

.auth-slide--login,
.auth-slide--register,
.auth-slide--forgot {
  background: #f8fafc;
  border-color: #e2e8f0;
}

.auth-slide--login.is-done .auth-slide__text,
.auth-slide--register.is-done .auth-slide__text,
.auth-slide--forgot.is-done .auth-slide__text {
  color: var(--primary-mid);
}

.auth-link--login {
  color: var(--primary-mid);
}

.auth-register-page .auth-card .auth-link,
.auth-forgot-page .auth-card .auth-link {
  color: var(--primary-mid);
}

.auth-btn--login,
.auth-btn--register,
.auth-btn--forgot {
  background: linear-gradient(180deg, #3b82f6 0%, var(--primary-mid) 45%, #1d4ed8 100%);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.auth-btn--login:hover:not(:disabled),
.auth-btn--register:hover:not(:disabled),
.auth-btn--forgot:hover:not(:disabled) {
  background: linear-gradient(180deg, #60a5fa 0%, #2563eb 50%, var(--primary-mid) 100%);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4);
}

.auth-footer--login,
.auth-footer--register,
.auth-footer--forgot {
  border-top-color: #f1f5f9;
  padding-top: 1.15rem;
  margin-top: 1.15rem;
}

.auth-slide--login .auth-slide__track,
.auth-slide--register .auth-slide__track,
.auth-slide--forgot .auth-slide__track {
  background: linear-gradient(90deg, rgba(37, 99, 235, 0.15), rgba(59, 130, 246, 0.12));
}

.auth-slide--login .auth-slide__btn,
.auth-slide--register .auth-slide__btn,
.auth-slide--forgot .auth-slide__btn {
  color: var(--primary-mid);
}

/* 注册 / 找回密码：获取验证码按钮在半透背景上 */
.auth-register-page .auth-btn-send,
.auth-forgot-page .auth-btn-send {
  background: rgba(255, 255, 255, 0.85);
  border-color: rgba(37, 99, 235, 0.45);
  color: var(--primary-mid);
}

.auth-register-page .auth-btn-send:hover:not(:disabled),
.auth-forgot-page .auth-btn-send:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.95);
  border-color: var(--primary-mid);
}

.auth-btn-secondary {
  display: block;
  width: 100%;
  margin-top: 0.65rem;
  height: 48px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-muted);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  text-align: center;
  line-height: 46px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}

.auth-btn-secondary:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--text);
}

.auth-msg--ok {
  margin-bottom: 1rem;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  font-size: 0.85rem;
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

/* 细密点阵，减轻「空」感 */
.auth-bg__dots {
  position: absolute;
  inset: 0;
  opacity: 0.35;
  background-image: radial-gradient(circle, rgba(30, 111, 217, 0.14) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000 0%, transparent 92%);
}

.auth-page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 1.25rem 1rem 2rem;
}

.auth-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: 480px;
  margin: 0 auto;
  width: 100%;
  padding: 0.25rem 0 1rem;
}

.auth-logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.15rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  text-decoration: none;
}

.auth-logo__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-soft);
}

.auth-tag {
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--primary-deep);
  background: var(--surface);
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  border: 1px solid rgba(30, 111, 217, 0.2);
}

.auth-main {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 宽屏：左侧介绍区 + 右侧表单，登录/注册共用 */
.auth-main--split {
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: stretch;
}

@media (min-width: 960px) {
  .auth-main--split {
    grid-template-columns: minmax(280px, 1fr) minmax(320px, 420px);
    gap: 2.5rem;
    align-items: center;
  }
}

.auth-aside {
  display: none;
}

@media (min-width: 960px) {
  .auth-aside {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 0.5rem 0;
  }
}

.auth-aside__card {
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 20px 40px -20px rgba(30, 64, 175, 0.15);
}

.auth-aside__lead {
  font-size: 1.35rem;
  font-weight: 800;
  line-height: 1.35;
  margin: 0 0 1rem;
  letter-spacing: -0.03em;
  color: var(--text);
}

.auth-aside__text {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.55;
}

.auth-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
  margin-bottom: 1.25rem;
}

.auth-stat {
  background: linear-gradient(145deg, #f8fafc, #eff6ff);
  border: 1px solid rgba(30, 111, 217, 0.12);
  border-radius: 12px;
  padding: 0.75rem 0.5rem;
  text-align: center;
}

.auth-stat__num {
  display: block;
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--primary-deep);
  line-height: 1.2;
}

.auth-stat__lbl {
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.auth-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.auth-pill {
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.35rem 0.65rem;
  border-radius: 999px;
  background: var(--surface);
  color: var(--primary-deep);
  border: 1px solid rgba(30, 111, 217, 0.2);
}

.auth-aside__svg {
  margin-top: 1.25rem;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid rgba(30, 111, 217, 0.1);
  background: linear-gradient(180deg, #f0f9ff, #e0f2fe);
}

.auth-aside__svg svg {
  display: block;
  width: 100%;
  height: auto;
}

.auth-main__form {
  display: flex;
  justify-content: center;
  width: 100%;
}

.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--surface);
  border-radius: 20px;
  padding: 2rem 1.75rem 1.75rem;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow:
    0 1px 2px rgba(15, 23, 42, 0.04),
    0 24px 48px -12px rgba(30, 64, 175, 0.12);
}

.auth-card__ribbon {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--primary-deep);
  background: linear-gradient(90deg, var(--primary-soft), transparent);
  padding: 0.35rem 0.75rem;
  border-radius: 8px;
  margin-bottom: 1rem;
  border-left: 3px solid var(--primary);
}

.auth-card__title {
  font-size: 1.65rem;
  font-weight: 800;
  margin: 0 0 0.4rem;
  letter-spacing: -0.03em;
}

.auth-card__hint {
  margin: 0 0 1.35rem;
  font-size: 0.9rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.auth-features {
  list-style: none;
  margin: 0 0 1.5rem;
  padding: 0;
  display: grid;
  gap: 0.5rem;
}

.auth-features li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.4;
}

.auth-features li::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-top: 0.35rem;
  border-radius: 50%;
  background: var(--primary);
  flex-shrink: 0;
}

.auth-field {
  margin-bottom: 1rem;
}

.auth-field label {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

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

.auth-input {
  width: 100%;
  height: 48px;
  padding: 0 2.75rem 0 1rem;
  border: 1px solid transparent;
  border-radius: 12px;
  font-size: 0.95rem;
  background: var(--input-bg);
  transition: background 0.15s, box-shadow 0.15s, border-color 0.15s;
}

.auth-input::placeholder {
  color: #94a3b8;
}

.auth-input:hover {
  background: #e8eef5;
}

.auth-input:focus {
  outline: none;
  background: var(--surface);
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-ring);
}

.auth-input-toggle {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  border: none;
  background: none;
  padding: 8px;
  cursor: pointer;
  color: var(--text-muted);
  line-height: 0;
  border-radius: 8px;
}

.auth-input-toggle:hover {
  color: var(--primary);
  background: var(--primary-soft);
}

/* 滑块：圆角胶囊条，与常见矩形条区分 */
.auth-slide {
  margin-bottom: 1rem;
  height: 48px;
  border-radius: 999px;
  background: var(--input-bg);
  border: 1px solid var(--border);
  position: relative;
  overflow: hidden;
  user-select: none;
}

.auth-slide__track {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 0;
  background: linear-gradient(90deg, rgba(30, 111, 217, 0.18), rgba(56, 189, 248, 0.12));
  border-radius: 999px;
}

.auth-slide__btn {
  position: absolute;
  left: 5px;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 2px 10px rgba(15, 23, 42, 0.08);
  cursor: grab;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  color: var(--primary);
}

.auth-slide__btn:active {
  cursor: grabbing;
}

.auth-slide__text {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-left: 48px;
  font-size: 0.8rem;
  color: var(--text-muted);
  z-index: 1;
  pointer-events: none;
}

.auth-slide.is-done .auth-slide__text {
  color: var(--primary-deep);
  font-weight: 700;
}

.auth-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 1.2rem;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.auth-check {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.84rem;
  color: var(--text-muted);
  cursor: pointer;
}

.auth-check input {
  width: 17px;
  height: 17px;
  accent-color: var(--primary);
}

.auth-link {
  font-size: 0.84rem;
  color: var(--primary-deep);
  text-decoration: none;
  font-weight: 600;
}

.auth-link:hover {
  text-decoration: underline;
}

/* 按钮：全圆角胶囊，非宽扁矩形渐变块 */
.auth-btn {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, transform 0.12s;
}

.auth-btn:hover:not(:disabled) {
  background: var(--primary-deep);
  transform: translateY(-1px);
}

.auth-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}

.auth-footer {
  margin-top: 1.35rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border);
  text-align: center;
  font-size: 0.86rem;
  color: var(--text-muted);
}

.auth-footnote {
  margin-top: 2rem;
  text-align: center;
  font-size: 0.72rem;
  color: #94a3b8;
}

.auth-msg {
  margin-bottom: 1rem;
  padding: 0.65rem 0.9rem;
  border-radius: 12px;
  font-size: 0.85rem;
}

.auth-msg--err {
  background: #fef2f2;
  color: #991b1b;
  border: 1px solid #fecaca;
}

/* 注册：验证码行 + 密码强度 */
.auth-sms-row {
  display: flex;
  gap: 0.65rem;
  align-items: stretch;
}

.auth-sms-row .auth-input {
  flex: 1;
  min-width: 0;
}

.auth-btn-send {
  flex-shrink: 0;
  min-width: 112px;
  height: 48px;
  padding: 0 0.85rem;
  border-radius: 12px;
  border: 1px solid var(--primary);
  background: var(--surface);
  color: var(--primary-deep);
  font-size: 0.82rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.auth-btn-send:hover:not(:disabled) {
  background: var(--primary-soft);
}

.auth-btn-send:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  border-color: var(--border);
  color: var(--text-muted);
}

.auth-strength {
  display: flex;
  gap: 4px;
  margin-top: 0.45rem;
}

.auth-strength__bar {
  flex: 1;
  height: 4px;
  border-radius: 2px;
  background: #e2e8f0;
  transition: background 0.15s;
}

.auth-strength__bar.is-on {
  background: linear-gradient(90deg, var(--primary), #38bdf8);
}

.auth-strength__hint {
  margin: 0.35rem 0 0;
  font-size: 0.72rem;
  color: #94a3b8;
  line-height: 1.35;
}

.auth-check--block {
  align-items: flex-start;
  line-height: 1.45;
}

.auth-check--block input {
  margin-top: 0.2rem;
}

@media (max-width: 480px) {
  .auth-card {
    padding: 1.5rem 1.25rem;
    border-radius: 16px;
  }

  .auth-tag {
    display: none;
  }

  .auth-sms-row {
    flex-direction: column;
  }

  .auth-btn-send {
    width: 100%;
  }
}
