@font-face {
  font-family: DasolHand;
  src: url('/fonts/hand/dasol-hand.woff2?v=maeumgalpi') format('woff2');
  font-display: swap;
}
:root {
  --paper: #fbf7f1;
  --paper-deep: #f4ede4;
  --card: #fffdfa;
  --milktea: #e9dccb;
  --line: #e8dfd3;
  --rose: #d9a5a0;
  --rose-soft: #f3e1dc;
  --rose-ink: #a85f5a;
  --cocoa: #4a3b36;
  --cocoa-soft: #7a6a63;
  --font-ui:
    'Pretendard Variable', Pretendard, -apple-system, BlinkMacSystemFont, system-ui, 'Apple SD Gothic Neo',
    'Noto Sans KR', sans-serif;
  --font-hand: DasolHand, var(--font-ui);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  color: var(--cocoa);
  background: var(--paper) url('/auth-assets/paper.webp') 0 0/512px;
  font-family: var(--font-ui);
  line-height: 1.6;
  word-break: keep-all;
  -webkit-font-smoothing: antialiased;
}
button,
input {
  font: inherit;
}
button,
a,
input {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button:disabled {
  cursor: wait;
}
a {
  color: inherit;
  text-decoration: none;
}
.hand {
  font-family: var(--font-hand);
}
.login-header {
  max-width: 1216px;
  margin: auto;
  height: 104px;
  padding: 0 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 750;
  font-size: 22px;
  letter-spacing: -0.6px;
}
.brand img {
  object-fit: contain;
}
.header-note {
  font-size: 12px;
  letter-spacing: 1px;
  color: var(--cocoa-soft);
}
.login-layout {
  max-width: 1120px;
  min-height: calc(100svh - 195px);
  margin: auto;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  gap: 72px;
  align-items: center;
  padding: 26px 40px 40px;
}
.story-copy {
  padding-left: 24px;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 2px;
  font-weight: 600;
  color: var(--rose-ink);
  margin: 0 0 18px;
}
h1 {
  font-family: var(--font-hand);
  font-size: 51px;
  line-height: 1.32;
  letter-spacing: -1.2px;
  font-weight: 400;
  margin: 0 0 16px;
}
.story-description {
  font-size: 13px;
  line-height: 1.95;
  color: var(--cocoa-soft);
  margin: 0;
}
.diary-scene {
  height: 385px;
  position: relative;
  perspective: 1500px;
  isolation: isolate;
  margin: 0 12px 0 -10px;
}
.book {
  position: absolute;
  width: 245px;
  height: 307px;
  left: 50%;
  top: 28px;
  transform: translateX(-42%) rotate(-9deg) rotateX(7deg) rotateY(-10deg);
  transform-style: preserve-3d;
  transition: transform 1.05s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.book-back,
.book-pages,
.book-cover {
  position: absolute;
  inset: 0;
  border-radius: 5px 15px 15px 5px;
  transform-style: preserve-3d;
}
.book-back {
  background: #b7897e;
  transform: translateZ(-9px);
  box-shadow:
    0 2px 0 #a67b6e,
    0 9px 11px #4a3b3617;
}
.book-pages {
  inset: 4px 4px 5px 9px;
  background: repeating-linear-gradient(to bottom, #efe7d8 0, #efe7d8 1px, #fffaf0 1px, #fffaf0 3px);
  border-right: 2px solid #dfd2bd;
  box-shadow:
    5px 4px 0 #e8dbc7,
    6px 6px 0 #bd9384;
  overflow: hidden;
}
.inside-page {
  position: absolute;
  inset: 2px 5px 8px 5px;
  background: #fffaf0 url('/auth-assets/paper.webp') 0 0/450px;
  padding: 30px 18px;
  text-align: center;
}
.page-date {
  font-size: 8px;
  letter-spacing: 1px;
  color: #a38b7a;
}
.inside-flower {
  display: block;
  font-size: 29px;
  color: var(--rose);
  margin-top: 25px;
}
.inside-page p {
  font-size: 25px;
  line-height: 1.5;
  margin: 10px 0;
}
.page-line {
  display: block;
  width: 45px;
  border-top: 1px solid #d9b9a7;
  margin: 18px auto;
}
.page-number {
  position: absolute;
  bottom: 12px;
  left: 50%;
  font: 10px Georgia;
  color: #a38b7a;
}
.book-cover {
  transform-origin: 0 50%;
  transform: translateZ(5px);
  transition: transform 1.1s cubic-bezier(0.35, 0.02, 0.2, 1);
  z-index: 3;
}
.cover-front,
.cover-inside {
  position: absolute;
  inset: 0;
  border-radius: 5px 15px 15px 5px;
  backface-visibility: hidden;
}
.cover-front {
  background-color: #d5aaa0;
  background-image:
    repeating-linear-gradient(0deg, #ffffff10 0, #ffffff10 1px, transparent 1px, transparent 3px),
    repeating-linear-gradient(90deg, #744e4510 0, #744e4510 1px, transparent 1px, transparent 3px);
  box-shadow:
    inset 9px 0 8px #875d4938,
    inset -2px -2px 3px #80584c30,
    0 2px 0 #b17e70;
  border: 1px solid #b98f80;
}
.cover-stitch {
  position: absolute;
  inset: 11px 10px 11px 17px;
  border: 1px dashed #f5ded095;
  border-radius: 2px 9px 9px 2px;
  pointer-events: none;
}
.cover-edition {
  position: absolute;
  left: 26px;
  top: 33px;
  right: 19px;
  font-size: 6.5px;
  letter-spacing: 1.9px;
  text-align: center;
  color: #79584e;
}
.cover-label {
  position: absolute;
  left: 33px;
  right: 25px;
  top: 76px;
  padding: 15px 10px 13px;
  text-align: center;
  background: #fbf4e8 url('/auth-assets/paper.webp') 0 0/300px;
  border: 1px solid #c8ab92;
  box-shadow: 0 2px 4px #694c4120;
  transform: rotate(1deg);
}
.cover-name {
  display: block;
  font-size: 37px;
  color: #694c42;
  letter-spacing: -1px;
  line-height: 1.3;
}
.label-rule {
  display: block;
  width: 30px;
  border-top: 1px solid #d8c1ab;
  margin: 9px auto;
}
.cover-subtitle {
  display: block;
  font-size: 15px;
  color: #876c5d;
}
.cover-sprig {
  position: absolute;
  width: 73px;
  height: 51px;
  left: 87px;
  bottom: 35px;
  opacity: 0.9;
}
.cover-bottom {
  position: absolute;
  bottom: 19px;
  left: 33px;
  font: italic 8px Georgia;
  color: #886659;
}
.cover-strap {
  position: absolute;
  right: -8px;
  top: 185px;
  width: 53px;
  height: 38px;
  border-radius: 9px 3px 3px 9px;
  background: #bf8e81;
  border: 1px solid #a97b6c;
  box-shadow:
    inset 0 0 0 3px #cda293,
    0 2px 3px #744e4530;
  transition:
    transform 0.6s ease,
    opacity 0.45s ease;
}
.padlock {
  position: absolute;
  right: 5px;
  top: 181px;
  width: 55px;
  height: 67px;
  transform-origin: 50% 5%;
  filter: drop-shadow(1px 4px 3px #593c452a);
  transition:
    opacity 0.3s 0.4s,
    transform 0.6s;
}
.padlock svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}
.lock-shackle {
  transform-origin: 61px 46px;
  transition: transform 0.38s ease;
}
.cover-inside {
  background: #edddd0;
  border: 1px solid #b98f80;
  transform: rotateY(180deg);
  box-shadow: inset -6px 0 10px #92715620;
  padding: 90px 22px;
  color: #997665;
  text-align: center;
  font-size: 21px;
}
.ribbon-bookmark {
  position: absolute;
  left: 69px;
  bottom: -29px;
  height: 39px;
  width: 17px;
  background: #ab716b;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 80%, 0 100%);
  transform: translateZ(-2px);
}
.book-shadow {
  position: absolute;
  left: 50%;
  top: 285px;
  width: 260px;
  height: 45px;
  border-radius: 50%;
  background: #745b4130;
  filter: blur(18px);
  transform: translateX(-42%) rotate(-9deg);
  transition: opacity 0.8s;
}
.memo-card {
  position: absolute;
  left: 5%;
  top: 123px;
  transform: rotate(-18deg);
  width: 139px;
  height: 155px;
  background: #fffdf6;
  padding: 13px 13px 8px;
  box-shadow: 0 6px 15px #80664d19;
  border: 1px solid #e8dfd3;
}
.memo-card svg {
  width: 100%;
  height: 105px;
}
.memo-card span.hand {
  display: block;
  text-align: center;
  color: #9d7668;
  font-size: 15px;
}
.tape {
  position: absolute;
  top: -13px;
  left: 37px;
  width: 62px;
  height: 25px;
  background: repeating-linear-gradient(45deg, #d7c6ab80 0, #d7c6ab80 3px, #ead9bd90 3px, #ead9bd90 6px);
  transform: rotate(7deg);
  clip-path: polygon(3% 0, 98% 3%, 100% 96%, 1% 100%);
}
.scene-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  color: #9b8174;
  font-size: 17px;
}
.caption-line {
  width: 30px;
  border-top: 1px solid #d8c7b6;
}
.login-panel {
  position: relative;
  width: 100%;
  max-width: 388px;
  margin-top: 6px;
  padding: 40px 31px 28px;
  background: #fffdfa;
  border: 1px solid var(--line);
  border-radius: 20px;
  box-shadow:
    0 3px 4px #4a3b3603,
    0 18px 48px #8f71550a;
}
.small-ribbon {
  position: absolute;
  width: 42px;
  height: 25px;
  top: -12px;
  left: calc(50% - 21px);
  background: repeating-linear-gradient(90deg, #d9a5a07a 0, #d9a5a07a 2px, #eac5bc9c 2px, #eac5bc9c 4px);
  transform: rotate(-4deg);
  clip-path: polygon(2% 0, 100% 3%, 97% 100%, 0 95%);
}
.panel-heading .eyebrow {
  margin: 0 0 6px;
  font-size: 10px;
  letter-spacing: 1.4px;
}
.panel-heading h2 {
  font-weight: 400;
  line-height: 1.4;
  font-size: 32px;
  letter-spacing: -0.8px;
  margin: 0 0 8px;
}
.panel-heading > p:last-child {
  font-size: 12px;
  color: var(--cocoa-soft);
  margin: 0 0 27px;
}
.field-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  margin: 0 0 8px;
}
.password-label {
  margin-top: 18px;
}
.input-wrap {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid #e0d6c9;
  border-radius: 10px;
  background: #fffcf8;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.input-wrap:focus-within {
  border-color: #bd8880;
  box-shadow: 0 0 0 3px #d9a5a01f;
}
.input-wrap > svg {
  width: 17px;
  height: 17px;
  stroke: #a38b7a;
  fill: none;
  stroke-width: 1.4;
  flex-shrink: 0;
}
.input-wrap input {
  width: 100%;
  min-width: 0;
  height: 49px;
  background: none;
  border: 0;
  outline: none;
  color: var(--cocoa);
  font-size: 14px;
}
.input-wrap input::placeholder {
  color: #b3a395;
  font-size: 12px;
}
.input-wrap:has([aria-invalid='true']) {
  border-color: var(--rose-ink);
}
.password-toggle {
  background: none;
  border: 0;
  margin-right: -9px;
  min-width: 40px;
  min-height: 44px;
  padding: 9px;
  color: #9e8a7a;
}
.password-toggle svg {
  display: block;
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.4;
}
.password-toggle[aria-pressed='true'] {
  color: var(--rose-ink);
}
.login-status {
  min-height: 22px;
  margin: 10px 0 4px;
  font-size: 11px;
  line-height: 1.6;
  color: var(--rose-ink);
}
.login-status[data-tone='success'] {
  color: #7f8163;
}
.turnstile {
  max-width: 100%;
  margin-bottom: 7px;
}
.enter-button {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 17px;
  width: 100%;
  height: 50px;
  background: var(--rose-ink);
  border: 1px solid #995650;
  border-radius: 11px;
  color: #fffdfa;
  font-weight: 600;
  font-size: 13px;
  box-shadow: 0 2px 1px #72453c12;
  transition:
    background 0.2s,
    transform 0.2s;
}
.enter-button:hover {
  background: #96534e;
}
.enter-button:active {
  transform: translateY(1px);
}
.enter-button:disabled {
  opacity: 0.7;
}
.enter-button > svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.panel-foot {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 24px;
  padding-top: 21px;
  border-top: 1px solid #eee6dc;
}
.panel-foot > svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: #ac9480;
  stroke-width: 1.3;
  flex-shrink: 0;
  margin-top: 2px;
}
.panel-foot p {
  font-size: 11px;
  line-height: 1.9;
  color: #887464;
  margin: 0;
}
.panel-foot p span {
  font-size: 10px;
  color: #a28e7e;
}
.storage-note {
  text-align: center;
  margin: 19px -12px 0;
  font-size: 10px;
  color: #a39080;
}
.login-footer {
  max-width: 1136px;
  margin: 12px auto 0;
  padding: 20px 40px 26px;
  display: flex;
  justify-content: space-between;
  color: #b09c8b;
  font-size: 10px;
  letter-spacing: 0.2px;
}
.login-footer span:last-child {
  font-family: var(--font-hand);
  font-size: 16px;
}
.page-turn {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--paper) url('/auth-assets/paper.webp') 0 0/512px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: perspective(1200px) rotateY(-6deg) scale(1.1);
  transform-origin: right center;
  transition:
    opacity 0.5s ease,
    transform 0.7s ease,
    visibility 0.5s;
}
.page-turn span {
  font-size: 32px;
  color: #a27b6b;
  opacity: 0;
  transition: opacity 0.4s 0.1s;
}
.page-turn.active {
  opacity: 1;
  visibility: visible;
  transform: none;
}
.page-turn.active span {
  opacity: 1;
}
.rattle .padlock {
  animation: lock-rattle 0.52s ease both;
}
.unlocking .lock-shackle,
.opening .lock-shackle {
  transform: translateY(-12px) rotate(-23deg);
}
.unlocking .padlock,
.opening .padlock {
  transform: rotate(15deg) translate(7px, 3px);
}
.opening .padlock {
  opacity: 0;
}
.opening .cover-strap {
  transform: translateX(20px);
  opacity: 0;
}
.opening .book {
  transform: translateX(-3%) rotate(-4deg) rotateX(4deg) rotateY(5deg);
}
.opening .book-cover {
  transform: translateZ(5px) rotateY(-160deg);
}
.opening .book-shadow {
  opacity: 0.3;
}
.opening .scene-caption {
  opacity: 0;
  transition: opacity 0.3s;
}
.opening .memo-card {
  transition: opacity 0.6s;
  opacity: 0.4;
}
.noscript {
  text-align: center;
  padding: 20px;
}
button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--rose-ink);
  outline-offset: 4px;
}
@keyframes lock-rattle {
  0%,
  100% {
    transform: rotate(0);
  }
  18% {
    transform: rotate(-17deg);
  }
  36% {
    transform: rotate(14deg);
  }
  54% {
    transform: rotate(-11deg);
  }
  72% {
    transform: rotate(7deg);
  }
  88% {
    transform: rotate(-3deg);
  }
}
@media (min-width: 1200px) and (min-height: 850px) {
  .login-layout {
    gap: 100px;
  }
  .diary-scene {
    height: 420px;
    margin-top: 13px;
  }
  .book {
    width: 265px;
    height: 332px;
  }
  .cover-label {
    top: 84px;
  }
  .cover-sprig {
    left: 100px;
  }
  .cover-strap {
    top: 207px;
  }
  .padlock {
    top: 203px;
  }
  .book-shadow {
    top: 310px;
  }
  h1 {
    font-size: 56px;
  }
}
@media (max-width: 800px) {
  .login-header {
    height: 78px;
    padding: 0 23px;
  }
  .brand {
    font-size: 20px;
  }
  .brand img {
    width: 30px;
    height: 30px;
  }
  .header-note {
    font-size: 10px;
    letter-spacing: 0.3px;
  }
  .login-layout {
    grid-template-columns: 1fr;
    gap: 23px;
    max-width: 480px;
    padding: 17px 24px 16px;
  }
  .diary-story {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .story-copy {
    text-align: center;
    padding: 0;
  }
  .eyebrow {
    font-size: 10px;
    margin-bottom: 10px;
  }
  h1 {
    font-size: 35px;
    line-height: 1.3;
    margin-bottom: 9px;
  }
  h1 br {
    display: none;
  }
  .story-description {
    font-size: 11px;
    line-height: 1.85;
  }
  .diary-scene {
    height: 247px;
    width: 100%;
    max-width: 330px;
    margin: 0;
  }
  .book {
    width: 176px;
    height: 220px;
    top: 15px;
    transform: translateX(-37%) rotate(-9deg) rotateX(7deg) rotateY(-10deg);
  }
  .cover-stitch {
    inset: 9px 8px 9px 13px;
  }
  .cover-edition {
    top: 23px;
    left: 18px;
    right: 12px;
    font-size: 5px;
    letter-spacing: 1px;
  }
  .cover-label {
    left: 24px;
    right: 17px;
    top: 51px;
    padding: 11px 5px 10px;
  }
  .cover-name {
    font-size: 27px;
  }
  .label-rule {
    margin: 6px auto;
    width: 23px;
  }
  .cover-subtitle {
    font-size: 12px;
  }
  .cover-sprig {
    width: 54px;
    height: 39px;
    left: 62px;
    bottom: 23px;
  }
  .cover-bottom {
    font-size: 6px;
    left: 23px;
    bottom: 13px;
  }
  .cover-strap {
    top: 137px;
    width: 38px;
    height: 28px;
    right: -5px;
  }
  .padlock {
    width: 42px;
    height: 51px;
    right: 2px;
    top: 132px;
  }
  .memo-card {
    width: 99px;
    height: 113px;
    top: 83px;
    left: 10%;
    padding: 9px;
  }
  .memo-card svg {
    height: 73px;
  }
  .memo-card span.hand {
    font-size: 12px;
  }
  .tape {
    width: 47px;
    height: 19px;
    left: 23px;
    top: -9px;
  }
  .book-shadow {
    width: 195px;
    height: 29px;
    top: 206px;
    filter: blur(13px);
  }
  .ribbon-bookmark {
    width: 13px;
    height: 31px;
    bottom: -21px;
    left: 49px;
  }
  .scene-caption {
    display: none;
  }
  .inside-page {
    padding: 18px 9px;
  }
  .page-date {
    font-size: 6px;
    letter-spacing: 0.3px;
  }
  .inside-flower {
    font-size: 22px;
    margin-top: 13px;
  }
  .inside-page p {
    font-size: 19px;
  }
  .page-line {
    margin: 12px auto;
  }
  .cover-inside {
    padding: 60px 10px;
    font-size: 16px;
  }
  .login-panel {
    max-width: none;
    padding: 29px 25px 24px;
    margin: 0;
    border-radius: 18px;
  }
  .panel-heading h2 {
    font-size: 28px;
  }
  .panel-heading > p:last-child {
    font-size: 11px;
    margin-bottom: 21px;
  }
  .panel-heading .eyebrow {
    font-size: 9px;
  }
  .input-wrap input {
    height: 47px;
    font-size: 16px;
  }
  .password-label {
    margin-top: 16px;
  }
  .panel-foot {
    margin-top: 20px;
    padding-top: 17px;
  }
  .storage-note {
    font-size: 9px;
    margin-top: 14px;
  }
  .login-footer {
    max-width: 480px;
    margin: 0 auto;
    padding: 18px 25px 24px;
    font-size: 9px;
  }
  .login-footer span:last-child {
    font-size: 14px;
  }
  .page-turn span {
    font-size: 26px;
  }
}
@media (max-width: 360px) {
  .login-layout {
    padding-left: 17px;
    padding-right: 17px;
  }
  h1 {
    font-size: 30px;
  }
  .login-panel {
    padding: 27px 21px 22px;
  }
  .header-note {
    display: none;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .page-turn.active span {
    opacity: 1;
  }
}

.inside-flower {
  width: 30px;
  height: 30px;
  margin-left: auto;
  margin-right: auto;
}
@media (max-width: 800px) {
  .inside-flower {
    width: 24px;
    height: 24px;
  }
}
