/* Login keeps a quiet, dedicated layout inside the existing 450px shell. */
@font-face {
  font-family: "Google Sans";
  src: url("../fonts/google-sans-medium.woff2") format("woff2");
  font-style: normal;
  font-weight: 500;
  font-display: swap;
}
body[data-page="login"] {
  background: #eff0f4;
}
body[data-page="login"] .app-shell {
  padding-bottom: 0;
  background: #fff;
}
body[data-page="login"] .site-header {
  position: relative;
  min-height: 70px;
  padding: 14px 25px;
  border: 0;
  box-shadow: none;
}
.login-exit {
  color: #7d7589;
}
.login-exit .icon {
  width: 22px;
  height: 22px;
  stroke-width: 1.5;
}
.login-page {
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: calc(100svh - 70px);
  padding: 24px 32px calc(28px + env(safe-area-inset-bottom));
}
.login-panel {
  width: 100%;
  max-width: 360px;
  text-align: center;
}
.login-eyebrow {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 2.2px;
  color: #a487b5;
}
.login-intro h1 {
  margin: 13px 0 12px;
  font-size: 30px;
  font-weight: 700;
  line-height: 1.42;
  letter-spacing: -1px;
  color: #2b233b;
}
.login-description {
  font-size: 13px;
  line-height: 1.65;
  color: #8b8392;
  letter-spacing: -0.25px;
}
.login-characters {
  width: 100%;
  max-width: 340px;
  height: auto;
  margin: 19px auto 26px;
  object-fit: contain;
}
.login-actions {
  display: grid;
  gap: 11px;
}
.social-login {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  min-height: 52px;
  padding: 0 18px;
  border-radius: 12px;
  line-height: 20px;
  box-shadow: 0px 0px 4px #cccc;
}
.social-login-kakao {
  background: #fee500;
  color: #000;
}
.social-login-kakao img {
  flex: 0 0 auto;
  width: 224px;
  height: 46px;
  max-width: 100%;
  object-fit: contain;
}
.social-login-google {
  background: #fff;
  color: #1f1f1f;
  font-family: "Google Sans", Arial, "Noto Sans KR", sans-serif;
  font-size: 14px;
  font-weight: 500;
  letter-spacing: 0.25px;
}
.social-login-google img {
  flex: 0 0 20px;
  width: 20px;
  height: 20px;
  object-fit: contain;
}
.social-login-google span {
  font-family: inherit;
}
.social-login-google:hover {
  background: #f8faff;
}
.social-login-kakao:hover {
  box-shadow: inset 0 0 0 1px #cdb900;
}
.login-availability {
  margin-top: 14px;
  color: #a49caa;
  font-size: 11px;
  line-height: 1.6;
}
.login-browse {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 7px;
  padding: 14px 10px;
  color: #716379;
  font-size: 12px;
  text-decoration: underline;
  text-underline-offset: 4px;
}
.login-browse .icon {
  width: 15px;
  height: 15px;
}
.login-policy-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  margin-top: 17px;
  color: #aaa2af;
  font-size: 10px;
}
.login-policy-links button {
  min-height: 32px;
  padding: 4px;
  font-size: inherit;
}
.login-policy-links button:hover {
  color: #715e82;
  text-decoration: underline;
}
.login-notice {
  position: fixed;
  inset: 0;
  margin: auto;
  width: min(340px, calc(100vw - 40px));
  max-height: calc(100dvh - 40px);
  padding: 32px 24px 24px;
  overflow: auto;
  border: 0;
  border-radius: 22px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 15px 70px #23133225;
  text-align: center;
}
.login-notice::backdrop {
  background: #17132466;
  backdrop-filter: blur(2px);
}
.login-notice-close {
  position: absolute;
  top: 10px;
  right: 10px;
  color: #958b9f;
}
.login-notice-close .icon {
  width: 20px;
  height: 20px;
}
.login-notice-symbol {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  margin: 6px auto 16px;
  border-radius: 16px;
  background: #f6f0fa;
  color: #9775ac;
}
.login-notice h2 {
  font-size: 19px;
  line-height: 1.5;
  letter-spacing: -0.6px;
}
.login-notice p {
  margin-top: 12px;
  color: #88808f;
  font-size: 13px;
  line-height: 1.85;
  white-space: pre-line;
}
.login-notice-confirm {
  width: 100%;
  min-height: 46px;
  margin-top: 24px;
  border-radius: 11px;
  background: #816195;
  color: #fff;
  font-size: 14px;
  font-weight: 600;
}
@media (max-width: 360px) {
  body[data-page="login"] .site-header {
    padding-inline: 20px;
  }
  .login-page {
    padding-inline: 24px;
  }
  .login-intro h1 {
    font-size: 27px;
  }
  .login-description {
    font-size: 12px;
  }
}
@media (max-height: 740px) {
  .login-page {
    padding-top: 14px;
    padding-bottom: 18px;
  }
  .login-intro h1 {
    margin-block: 9px;
    font-size: 27px;
    line-height: 1.35;
  }
  .login-characters {
    max-width: 270px;
    margin-top: 12px;
    margin-bottom: 18px;
  }
  .login-policy-links {
    margin-top: 5px;
  }
}
