:root {
  color-scheme: light;
  font-family: "DM Sans", "Pretendard", sans-serif;
  color: #22231f;
  background: #f4f1ea;
  font-synthesis: none;
}
* { box-sizing: border-box; }
html {
  overflow-y: scroll;
  scrollbar-gutter: stable;
}
[hidden] { display: none !important; }
body {
  min-width: 0;
  min-height: 100vh;
  margin: 0;
  background:
    radial-gradient(circle at 12% 12%, rgba(120, 164, 151, .18), transparent 25rem),
    radial-gradient(circle at 90% 78%, rgba(228, 183, 172, .22), transparent 28rem),
    #f4f1ea;
}
a { color: inherit; }
button, input { font: inherit; }
button { cursor: pointer; }
.skip-link {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 10;
  padding: .75rem 1rem;
  color: #fff;
  background: #22231f;
  transform: translateY(-200%);
}
.skip-link:focus { transform: translateY(0); }
.site-header, main, footer {
  width: min(1080px, calc(100% - 48px));
  margin-inline: auto;
}
.site-header {
  display: flex;
  min-height: 92px;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid rgba(34, 35, 31, .16);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .75rem;
  font-family: "Manrope", sans-serif;
  font-size: .9rem;
  font-weight: 800;
  letter-spacing: .08em;
  text-decoration: none;
}
.brand img { width: 56px; height: 40px; object-fit: contain; }
.home-link {
  padding: .7rem 1rem;
  border: 1px solid rgba(34, 35, 31, .22);
  border-radius: 999px;
  font-size: .82rem;
  font-weight: 700;
  text-decoration: none;
}
main {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(22rem, 1.1fr);
  gap: clamp(3rem, 8vw, 7rem);
  align-items: start;
  min-height: calc(100vh - 180px);
  padding-block: clamp(3rem, 7vw, 6rem);
}
.eyebrow {
  margin: 0;
  font-size: calc(.7rem + 1pt);
  font-weight: 700;
  letter-spacing: .18em;
}
.login-intro {
  padding-top: clamp(11rem, 22vh, 17rem);
}
.login-intro h1 {
  margin: 1rem 0 1.25rem;
  font-family: "Gowun Dodum", "Noto Sans KR", sans-serif;
  font-size: clamp(2.5rem, 5vw, 4.3rem);
  font-weight: 400;
  line-height: 1.18;
  letter-spacing: -.04em;
}
.login-intro > p:not(.eyebrow) {
  max-width: 29rem;
  margin: 0;
  color: #66665f;
  line-height: 1.8;
}
.brand-marks {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-top: 2.5rem;
}
.brand-marks img { width: 44px; height: 44px; }
.brand-marks span { width: 36px; height: 1px; background: rgba(34, 35, 31, .2); }
.login-panel {
  padding: clamp(1.5rem, 4vw, 3rem);
  border: 1px solid rgba(34, 35, 31, .12);
  border-radius: 24px;
  background: rgba(255, 253, 248, .88);
  box-shadow: 0 30px 80px rgba(65, 58, 47, .11);
  backdrop-filter: blur(12px);
}
.panel-heading h2 {
  margin: .7rem 0 .4rem;
  font-family: "Gowun Dodum", "Noto Sans KR", sans-serif;
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 400;
}
.panel-heading > p:last-child { margin: 0; color: #707069; font-size: .9rem; }
.auth-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: .35rem;
  margin-top: 1.5rem;
  padding: .3rem;
  border-radius: 12px;
  background: #ece9e1;
}
.auth-tab {
  min-height: 40px;
  border: 0;
  border-radius: 9px;
  color: #74736c;
  background: transparent;
  font-size: .82rem;
  font-weight: 700;
}
.auth-tab.active { color: #293d38; background: #fff; box-shadow: 0 3px 10px rgba(43, 41, 35, .07); }
.email-form { display: grid; gap: 1rem; margin-top: 1.25rem; }
.verification-signup-note {
  display: grid;
  gap: .3rem;
  padding: .9rem 1rem;
  border: 1px solid #c9d8cf;
  border-radius: 12px;
  color: #3e5148;
  background: #edf4ef;
  line-height: 1.55;
}
.verification-signup-note strong { font-size: .82rem; }
.verification-signup-note span { color: #68766e; font-size: .74rem; }
.account-identity { display: grid; gap: .35rem; overflow-wrap: anywhere; }
#account-name { font-size: 1.25rem; line-height: 1.5; }
#account-login-method, #account-email { color: #66665f; font-size: .86rem; }
.account-profile-form { margin: 1.25rem 0; padding: 1rem; border: 1px solid #d5d2c9; border-radius: 12px; background: #fffdf9; }
.account-profile-form .field small { line-height: 1.65; }
.account-profile-actions { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: .8rem; }
.account-profile-actions button { min-height: 44px; padding: .6rem .85rem; }
.profile-reload { border: 1px solid #d5d2c9; border-radius: 12px; color: #293d38; background: #fff; }
.account-profile-actions button:disabled { opacity: .5; cursor: not-allowed; }
#account-profile-status { margin: .75rem 0 0; font-size: .8rem; line-height: 1.65; overflow-wrap: anywhere; }
#account-profile-status[data-error=true] { color: #964536; }
.account-profile-actions button:focus-visible { outline: 3px solid #587e74; outline-offset: 3px; }
.field label {
  display: block;
  margin-bottom: .5rem;
  font-size: .8rem;
  font-weight: 700;
}
.field input {
  width: 100%;
  min-height: 50px;
  padding: 0 1rem;
  border: 1px solid #d5d2c9;
  border-radius: 12px;
  color: #22231f;
  background: #fff;
  outline: none;
}
.field input:focus { border-color: #587e74; box-shadow: 0 0 0 3px rgba(88, 126, 116, .14); }
.field small { display: block; margin-top: .4rem; color: #85847d; font-size: calc(.68rem + 1pt); }
#account-name-availability { min-height: 1.4em; line-height: 1.5; overflow-wrap: anywhere; }
#account-name-availability[data-state="taken"] { color: #a0443c; }
#account-name-availability[data-state="available"] { color: #365f50; }
.remember-option {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  color: #3f4541;
  cursor: pointer;
  font-size: .78rem;
  line-height: 1.45;
}
.remember-option input {
  width: 1.05rem;
  height: 1.05rem;
  flex: 0 0 auto;
  margin: .08rem 0 0;
  accent-color: #446d63;
}
.remember-option span { display: grid; gap: .1rem; }
.remember-option strong { font-size: .8rem; }
.remember-option small { color: #85847d; font-size: calc(.68rem + 1pt); }
.primary-button {
  min-height: 50px;
  border: 0;
  border-radius: 12px;
  color: #fff;
  background: #293d38;
  font-size: .84rem;
  font-weight: 700;
}
.primary-button:disabled, .logout-button:disabled { cursor: wait; opacity: .65; }
.forgot-button {
  display: block;
  margin: .85rem auto 0;
  padding: .35rem .5rem;
  border: 0;
  color: #526d66;
  background: transparent;
  font-size: .78rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.forgot-button:focus-visible { outline: 3px solid #446d63; outline-offset: 3px; }
.reset-view .panel-heading { margin-bottom: 1.25rem; }
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: #85847d;
  font-size: calc(.72rem + 1pt);
}
.divider::before, .divider::after {
  height: 1px;
  flex: 1;
  background: #e0ddd5;
  content: "";
}
.social-options { display: grid; gap: .65rem; }
.social-button {
  position: relative;
  display: flex;
  width: 100%;
  min-height: 52px;
  align-items: center;
  justify-content: center;
  border: 1px solid transparent;
  font-size: .86rem;
  font-weight: 700;
  transition: transform .18s ease, box-shadow .18s ease;
}
.social-button:hover:not(:disabled) { transform: translateY(-2px); box-shadow: 0 8px 18px rgba(43, 41, 35, .08); }
.social-button:disabled { cursor: not-allowed; filter: grayscale(.55); opacity: .5; }
.social-button:focus-visible, .home-link:focus-visible, .primary-button:focus-visible,
.auth-tab:focus-visible, .logout-button:focus-visible, .account-home:focus-visible,
.remember-option input:focus-visible {
  outline: 3px solid #446d63;
  outline-offset: 3px;
}
.provider-mark {
  position: absolute;
  left: 1rem;
  font-family: Arial, sans-serif;
  font-size: 1rem;
  font-weight: 800;
}
.naver { color: #fff; background: #03c75a; }
.kakao { color: #191919; background: #fee500; }
.google { color: #313131; border-color: #d8d8d8; background: #fff; }
.google-mark { color: #4285f4; }
.recent-login-hint { display:flex; flex-wrap:wrap; align-items:center; gap:6px 10px; margin-top:20px; padding:12px; border:1px solid #c9d8cf; border-radius:12px; background:#edf4ef; font-size:.8rem; line-height:1.55; }
.recent-login-hint > span { flex:1 1 140px; }
.recent-login-hint button { background:none; border:0; padding:6px 0; color:#40594f; font-size:.75rem; text-decoration:underline; }
.recent-login-hint small { width:100%; color:#626963; }
.recent-login-badge { flex:none; display:inline-block; padding:2px 6px; border-radius:6px; color:#24473b; background:#e3eee8; font-size:11px; line-height:1.6; font-weight:600; }
.social-button > .recent-login-badge { position:absolute; right:8px; }
.auth-tab .recent-login-badge { margin-left:5px; }
.account-login-history { border:1px solid #d5d2c9; border-radius:12px; padding:12px; text-align:left; overflow-wrap:anywhere; }
.account-login-history p { margin:4px 0; font-size:.8rem; line-height:1.65; }
.account-login-history small { color:#74736c; font-size:.72rem; line-height:1.6; }
.login-status {
  min-height: 1.5rem;
  margin: 1rem 0 0;
  color: #526d66;
  font-size: .8rem;
  line-height: 1.5;
  text-align: center;
}
.login-status[data-tone="error"] { color: #a0443c; }
.account-panel { text-align: center; }
.account-panel h2 {
  margin: .75rem 0 1rem;
  font-family: "Gowun Dodum", "Noto Sans KR", sans-serif;
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  font-weight: 400;
}
.account-panel > p:not(.eyebrow) { color: #68675f; line-height: 1.7; }
.account-home, .logout-button {
  display: flex;
  width: 100%;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  font-size: .84rem;
  font-weight: 700;
}
.account-home { margin-top: 1.5rem; color: #fff; background: #293d38; text-decoration: none; }
.logout-button { margin-top: .65rem; border: 1px solid #d5d2c9; color: #454640; background: #fff; }
.terms {
  margin: .8rem auto 0;
  color: #8a8982;
  font-size: calc(.7rem + 1pt);
  line-height: 1.6;
  text-align: center;
}
.terms a { color: #526d66; font-weight: 700; text-underline-offset: 2px; }
footer {
  display: flex;
  justify-content: space-between;
  padding: 0 0 2.5rem;
  color: #77766f;
  font-size: calc(.72rem + 1pt);
  letter-spacing: .06em;
}
footer nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1rem; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; text-underline-offset: 3px; }
@media (max-width: 760px) {
  .site-header, main, footer { width: min(100% - 32px, 620px); }
  footer { align-items: flex-start; flex-direction: column; gap: .8rem; }
  footer nav { justify-content: flex-start; }
  .brand span { font-size: .78rem; }
  .home-link { padding: .58rem .8rem; }
  main {
    grid-template-columns: 1fr;
    gap: 1rem;
    min-height: auto;
    padding-block: 1.25rem 2rem;
  }
  .login-intro { padding-top: 0; }
  .login-intro h1 { margin: .45rem 0 0; font-size: clamp(1.7rem, 7vw, 2.1rem); line-height: 1.15; }
  .login-intro > p:not(.eyebrow), .brand-marks { display: none; }
  .login-panel { border-radius: 18px; }
}
@media (max-width: 460px) {
  .site-header { min-height: 76px; }
  .brand img { width: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .social-button { transition: none; }
}
