/* 登录页专用样式。故意和 site.css 重复几十行而不是引它 ——
 * 理由写在 site/server/index.js 的 PUBLIC_FILES 上面（那段不发给浏览器）。 */

:root {
  --gold: gold;
  --panel: hsl(0 0% 39% / 0.6);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }

body {
  margin: 0;
  padding: 0 12px 24px;
  background: #1b1712 radial-gradient(ellipse at 50% 0%, #3a3128, #14110d 70%) fixed;
  color: #eee;
  font: 15px/1.5 system-ui, "Noto Sans CJK SC", sans-serif;
}

#page { display: flex; min-height: 100vh; align-items: center; justify-content: center; }

.panel {
  background: var(--panel);
  border: 2px solid var(--gold);
  border-radius: 18px;
  box-shadow: -4px 4px 12px #000;
  max-width: 440px;
  padding: 28px 34px;
  text-align: center;
}
.panel h1 { margin: 0 0 4px; color: var(--gold); font-family: Courgette, serif; font-size: 40px; }

/* 三个输入框加按钮排一行，窄屏自动折 */
#login-form { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 16px 0 8px; }

/* 「去注册 / 去登录」是面板里唯一的链接，别用浏览器默认的蓝下划线 */
.panel a { color: var(--gold); text-decoration: none; }
.panel a:hover { text-decoration: underline; }

input {
  background: #241f19; border: 1px solid #6b5b3e; border-radius: 8px;
  color: #eee; font: inherit; padding: 8px 10px; width: 150px;
}

button {
  background: linear-gradient(180deg, #b9922f, #7d6220);
  border: 1px solid #d8b45a; border-radius: 8px;
  color: #fff; cursor: pointer; font: inherit; font-weight: 600; padding: 8px 16px;
}
button:hover:not(:disabled) { filter: brightness(1.15); }

.muted { color: #b6a98a; }
.small { font-size: 13px; }

#toast {
  background: #7a2318; border: 1px solid #e08b6a; border-radius: 10px;
  color: #fff; left: 50%; opacity: 0; padding: 10px 18px;
  pointer-events: none; position: fixed; top: 16px;
  transform: translateX(-50%); transition: opacity .2s; z-index: 100;
}
#toast.show { opacity: 1; }
