/* 玩家登录页 · 只留标题 + 两个输入框 + 按钮
   视觉对齐运营后台（vben 5 深色主题 + antd 5），取值来自
   server/admin-web/packages/@core/base/design/src/design-tokens/dark.css：
   background-deep 220 13.06% 9% / border 240 3.7% 22% / muted-foreground 240 5% 64.9%
   primary 212 100% 45% / radius 0.5rem。零依赖，无字体/CDN/图片/图标。 */
:root {
  --bg: hsl(220 13.06% 9%);
  --text: hsl(0 0% 95%);
  --text-strong: hsl(0 0% 98%);
  --surface: hsl(222.34 10.43% 12.27%);
  --muted: hsl(240 5% 64.9%);
  --placeholder: hsl(240 5% 52%);
  --border: hsl(0 0% 100% / 0.12);
  --border-hover: hsl(0 0% 100% / 0.22);
  --input-border: hsl(0 0% 100% / 0.18);
  --input-bg: hsl(0 0% 100% / 0.035);
  --primary: hsl(212 100% 45%);
  --primary-hover: hsl(212 100% 39%);
  --primary-ring: hsl(212 100% 45% / 0.2);
  --danger: hsl(359.21 68.47% 62%);
  --radius: 8px;
  --font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial,
    'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', sans-serif;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
}

body {
  margin: 0;
  background:
    linear-gradient(rgb(3 8 18 / 52%), rgb(3 8 18 / 76%)),
    url("./assets/shop-login-beauty-bg-wide-v2.webp") center / cover fixed
      no-repeat,
    var(--bg);
  color: var(--text);
  font: 14px/1.6 var(--font);
  -webkit-font-smoothing: antialiased;
  -webkit-tap-highlight-color: transparent;
}

.hidden {
  display: none !important;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

a {
  color: var(--primary);
  text-decoration: none;
}

/* ---------------- 布局 ---------------- */
.shell {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  min-height: 100dvh;
  padding: 32px 20px calc(32px + env(safe-area-inset-bottom));
}

.panel {
  width: 100%;
  max-width: 340px;
  padding: 26px 22px 22px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: rgb(13 20 33 / 88%);
  box-shadow: 0 18px 46px rgb(0 0 0 / 0.34);
  backdrop-filter: blur(14px);
}

.title {
  margin: 0 0 22px;
  font-size: 15px;
  font-weight: 600;
  letter-spacing: 1px;
  line-height: 1.4;
  text-align: center;
  color: var(--text-strong);
}

/* ---------------- 已登录条 ---------------- */
.session {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  max-width: 320px;
  margin-bottom: 22px;
  font-size: 13px;
  color: var(--muted);
}

.session-text {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.session-text b {
  font-weight: 600;
  color: var(--text-strong);
}

.session .link,
.foot .link {
  padding: 0;
  border: 0;
  background: none;
  font: inherit;
  font-size: 13px;
  color: hsl(212 100% 68%);
  cursor: pointer;
  white-space: nowrap;
}

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

/* ---------------- 表单 ---------------- */
.input {
  width: 100%;
  height: 44px;
  padding: 0 14px;
  border: 1px solid var(--input-border);
  border-radius: var(--radius);
  background: var(--input-bg);
  font: inherit;
  font-size: 15px;
  color: var(--text);
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    background 0.16s ease;
  appearance: none;
}

.input::placeholder {
  color: var(--placeholder);
}

.input:hover {
  border-color: var(--border-hover);
}

.input:focus {
  border-color: var(--primary);
  background: hsl(0 0% 100% / 0.06);
  box-shadow: 0 0 0 3px var(--primary-ring);
  outline: none;
}

.control {
  position: relative;
  margin-top: 12px;
}

.control .input {
  padding-right: 44px;
}

.eye {
  position: absolute;
  top: 50%;
  right: 5px;
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  transform: translateY(-50%);
  border: 0;
  border-radius: 6px;
  background: none;
  color: var(--muted);
  cursor: pointer;
  transition: color 0.15s ease;
}

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

.eye.on {
  color: hsl(212 100% 68%);
}

.form-error {
  margin: 10px 0 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--danger);
}

.form-error:empty {
  display: none;
}

/* ---------------- 按钮 ---------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 44px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--primary);
  font: inherit;
  font-size: 15px;
  font-weight: 500;
  color: #fff;
  cursor: pointer;
  transition:
    background 0.16s ease,
    border-color 0.16s ease;
}

.btn.primary {
  margin-top: 20px;
}

.btn.primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn:disabled {
  opacity: 0.6;
  cursor: default;
}

.btn:focus-visible,
.eye:focus-visible,
.link:focus-visible {
  outline: 2px solid hsl(212 100% 62%);
  outline-offset: 2px;
}

/* ---------------- 页脚 ---------------- */
.foot {
  margin: 26px 0 0;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
  color: hsl(240 5% 64.9% / 0.72);
}

/* ---------------- 轻提示 ---------------- */
.toast {
  position: fixed;
  top: 20px;
  left: 50%;
  z-index: 20;
  padding: 9px 16px;
  border-radius: var(--radius);
  background: hsl(0 0% 100% / 0.1);
  font-size: 13px;
  color: var(--text-strong);
  transform: translateX(-50%);
}

@media (prefers-reduced-motion: reduce) {
  * {
    transition: none !important;
  }
}

@media (max-width: 640px) {
  body {
    background-image:
      linear-gradient(rgb(3 8 18 / 42%), rgb(3 8 18 / 72%)),
      url("./assets/shop-login-beauty-bg-mobile-v2.webp");
    background-position: center top;
  }
}
