@charset "utf-8";
/* -----------------------------------------------
	* 로그인 화면 — 流星年代記 (2026-11-19 홍보지 톤)
--------------------------------------------------
	바탕은 인트로(css/enter.css)와 같은 하늘: 모눈 + 종이 결(노이즈) + 위쪽 가운데의 은은한 빛.
	카드는 평평한 종이 한 장 + 기울어진 포스트잇 제목(홈의 쪽지와 같은 모양). 버튼은 먹, 선은 카키.
	다크·라이트 모두. 노란색 · 둥근 모서리 · 굵은 테두리는 쓰지 않는다.
--------------------------------------------------*/

html {
  --l-bg: #1c1c1c;
  --l-grid: rgba(236, 230, 214, .045);
  --l-glow: rgba(232, 210, 158, .24);
  --l-grain: url("../img/chronicle/grain-dark.png?v=2");
  --l-paper: #f2ede0;
  --l-ink: #232323;
  --l-sub: #5c5547;
  --l-line: #cdbf9f;
  --l-edge: transparent;
  --l-tag: #ad9b74;
  --l-btn: #232323;
  --l-btn-ink: #f2ede0;
  --l-float: #ad9b74;
}
html[data-theme="light"] {
  --l-bg: #f6f3ea;
  --l-grid: rgba(122, 102, 64, .08);
  --l-glow: rgba(214, 176, 92, .28);
  --l-grain: url("../img/chronicle/grain-light.png?v=2");
  --l-paper: #fffdf8;
  --l-line: #ddd2ba;
  --l-edge: #b09c6e;
  --l-tag: #cbb88e;
  --l-float: #cbb88e;
}

html,
body {
  height: 100%;
}
body {
  background-color: var(--l-bg) !important;
  background-image:
    var(--l-grain),
    linear-gradient(var(--l-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--l-grid) 1px, transparent 1px) !important;
  background-size: 128px 128px, 24px 24px, 24px 24px !important;
}
/* 위쪽 가운데의 은은한 빛 */
body::before {
  content: "";
  position: fixed;
  left: 50%;
  top: 0;
  z-index: 0;
  width: min(1400px, 130vw);
  height: 70vh;
  transform: translate(-50%, -38%);
  background: radial-gradient(closest-side, var(--l-glow), transparent);
  pointer-events: none;
}

.loginWrap {
  position: relative;
  z-index: 1;
  display: flex;
  width: 100%;
  min-height: 100dvh;
  align-items: center;
  justify-content: center;
  padding: 48px 16px 32px;
}

/* 종이 한 장 */
.rc-login-card {
  position: relative;
  width: min(380px, 100%);
  padding: 46px 30px 26px;
  border: 0;
  border-radius: 0;
  text-align: left;
  background: var(--l-paper);
  color: var(--l-ink);
  box-shadow: inset 0 0 0 1px var(--l-edge);
  animation: rc-login-in .45s ease both;
}
@keyframes rc-login-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: none; }
}
/* 포스트잇 제목 + 테이프 */
.rc-login-tag {
  position: absolute;
  top: -18px;
  left: 18px;
  margin: 0;
  padding: 9px 16px 8px;
  background: var(--l-tag);
  color: #1d1c1b;
  font-family: var(--rc-font-story);
  font-weight: 700;
  font-size: 16px;
  line-height: 1.3;
  transform: rotate(-2.2deg);
}
.rc-login-tag::before {
  content: "";
  position: absolute;
  top: -7px;
  left: 50%;
  width: 42px;
  height: 14px;
  background: rgba(242, 239, 230, .6);
  transform: translateX(-50%) rotate(-4deg);
}
html[data-theme="light"] .rc-login-tag { outline: 1px solid var(--l-edge); }
html[data-theme="light"] .rc-login-tag::before {
  background: rgba(255, 253, 247, .8);
  outline: 1px solid rgba(176, 156, 110, .45);
}

/* 폼 */
.login-form-box form {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.rc-login-card input[type="text"],
.rc-login-card input[type="password"] {
  width: 100%;
  height: 46px;
  padding: 0 4px;
  border: 0 !important;
  border-bottom: 1px solid var(--l-line) !important;
  border-radius: 0;
  background: transparent !important;
  color: var(--l-ink) !important;
  font-size: 15px;
}
.rc-login-card input::placeholder { color: var(--l-sub); opacity: .75; }
.rc-login-card input[type="text"]:focus,
.rc-login-card input[type="password"]:focus {
  outline: none;
  box-shadow: none !important;
  border-bottom-color: var(--l-ink) !important;
}
.rc-login-card .rc-auto-login { margin-top: 6px; color: var(--l-sub); }
.rc-login-card .rc-auto-login:hover span { color: var(--l-ink); }
.rc-login-card .rc-auto-login input[type="checkbox"] {
  border: 1px solid var(--l-sub);
  border-radius: 0;
  background: transparent;
}
.rc-login-card .rc-auto-login input:checked {
  background: var(--l-ink);
  border-color: var(--l-ink) !important;
}
.rc-login-card .rc-auto-login input:checked::after { border-color: var(--l-paper); }
.rc-login-card .ui-btn.point {
  height: 48px;
  margin-top: 8px;
  border: 0 !important;
  border-radius: 0;
  background: var(--l-btn) !important;
  color: var(--l-btn-ink) !important;
  font-family: var(--rc-font-story);
  font-size: 16px;
  font-weight: 700;
  letter-spacing: .3em;
  text-indent: .3em;
  box-shadow: none !important;
  transition: background-color .15s ease, color .15s ease;
}
.rc-login-card .ui-btn.point:hover,
.rc-login-card .ui-btn.point:focus-visible {
  background: var(--l-tag) !important;
  color: #1d1c1b !important;
}

.login-join {
  margin-top: 10px;
}
.login-join .ui-btn {
  display: block;
  width: 100%;
  height: 42px;
  line-height: 40px;
  border-radius: 0;
  border: 1px solid var(--l-line) !important;
  background: transparent !important;
  color: var(--l-ink) !important;
  text-align: center;
  box-shadow: none !important;
}
.login-join .ui-btn:hover {
  border-color: var(--l-ink) !important;
}

/* 다크 · 라이트 전환 단추: 카키 동그라미, 테두리 없이 */
.rc-login .rc-theme-float {
  background: var(--l-float);
  color: #1d1c1b !important;
  border: 0;
}
.rc-login .rc-theme-float:hover { background: var(--l-paper); }

@media all and (max-width: 480px) {
  .rc-login-card {
    padding: 42px 22px 22px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .rc-login-card {
    animation: none;
  }
}

/* 사이트 공통 * { color } 가 글자를 크림으로 칠해 종이 위에서 안 보인다 — 카드 안 글자는 먹 */
.rc-login-card .rc-auto-login span { color: var(--l-sub) !important; }
.rc-login-card .rc-auto-login:hover span { color: var(--l-ink) !important; }
