/* 登录页: 跟首页小说站 옛글방 新版 (novel-site 的 platform 主题) 一个样子 */
*, *::before, *::after { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0; display: flex; flex-direction: column; min-height: 100vh; background: #fff; color: #141416;
  font-family: "Noto Sans KR", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif; font-size: 15px; line-height: 1.5; letter-spacing: -0.01em;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.head { display: flex; align-items: center; justify-content: space-between; height: 64px; padding: 0 24px; border-bottom: 1px solid #ececf0; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 900; font-size: 21px; letter-spacing: -0.04em; }
.logo i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-style: normal; font-size: 14px; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, #ff8a3d, #ff3d2e); box-shadow: 0 2px 8px rgba(255, 90, 31, .35); }
.home { font-size: 14px; color: #8b8b94; }
.home:hover { color: #141416; }

.wrap { width: 100%; max-width: 400px; margin: 0 auto; padding: 56px 20px 40px; flex: 1; }
h1 { margin: 0; font-size: 28px; font-weight: 900; letter-spacing: -0.04em; text-align: center; }
.sub { margin: 6px 0 32px; text-align: center; color: #8b8b94; font-size: 14px; }

.field { position: relative; display: block; margin-bottom: 10px; }
.field input {
  width: 100%; height: 54px; padding: 0 16px; border: 1px solid #e3e3e8; border-radius: 10px; background: #f7f7f9;
  font: inherit; font-size: 16px; color: inherit; transition: border-color .15s, background .15s;
}
.field input::placeholder { color: #a5a5ad; }
.field input:focus { outline: none; border-color: #141416; background: #fff; }
.field.pw input { padding-right: 52px; }
.eye { position: absolute; right: 8px; top: 9px; width: 36px; height: 36px; border: 0; border-radius: 8px; background: none; color: #a5a5ad; display: grid; place-items: center; }
.eye svg { width: 20px; height: 20px; }
.eye[aria-pressed="true"] { color: #ff5a1f; }
.err { min-height: 20px; margin: 2px 2px 8px; color: #e5341f; font-size: 13.5px; }
.primary {
  width: 100%; height: 54px; border: 0; border-radius: 10px; background: #ff5a1f; color: #fff;
  font-size: 16px; font-weight: 700; box-shadow: 0 4px 14px rgba(255, 90, 31, .28);
}
.primary:hover { filter: brightness(1.05); }
.primary:disabled { opacity: .6; cursor: default; box-shadow: none; }

.links { display: flex; justify-content: center; align-items: center; gap: 14px; margin-top: 20px; font-size: 13.5px; color: #6b6b74; }
.links span { width: 1px; height: 11px; background: #d9d9df; }
.links a:hover { color: #141416; }

.or { display: flex; align-items: center; gap: 12px; margin: 34px 0 18px; color: #a5a5ad; font-size: 13px; }
.or::before, .or::after { content: ""; flex: 1; height: 1px; background: #ececf0; }

.alt { display: grid; gap: 10px; }
.alt button {
  display: flex; align-items: center; justify-content: center; gap: 10px; height: 50px; border: 1px solid #e3e3e8; border-radius: 10px;
  background: #fff; font-size: 15px; font-weight: 500; color: #3b3b42;
}
.alt button:hover { border-color: #b9b9c2; background: #fafafb; }
.alt svg { width: 19px; height: 19px; color: #6b6b74; }

.join { display: block; margin-top: 28px; padding: 14px; border-radius: 10px; background: #fff4ee; text-align: center; font-size: 14px; color: #6b4a3c; }
.join b { color: #ff5a1f; margin-left: 4px; }

.foot { padding: 22px 20px 30px; border-top: 1px solid #ececf0; background: #f7f7f9; text-align: center; font-size: 12.5px; color: #8b8b94; }
.foot a { margin: 0 9px; }
.foot a:hover { color: #141416; }
.foot b { color: #3b3b42; font-weight: 500; }
.foot p { margin: 8px 0 0; }

.toast {
  position: fixed; left: 50%; bottom: 40px; z-index: 50; transform: translate(-50%, 16px); opacity: 0; pointer-events: none;
  max-width: calc(100% - 32px); padding: 12px 20px; border-radius: 999px; background: rgba(20, 20, 22, .92); color: #fff;
  font-size: 14px; white-space: nowrap; transition: opacity .2s, transform .2s;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 480px) {
  .head { height: 56px; padding: 0 16px; }
  .wrap { padding: 36px 16px 32px; }
  h1 { font-size: 24px; }
}
