:root {
  color-scheme: light;
  font-family: "DM Sans", "Pretendard", sans-serif;
  color: #22231f;
  background: #f4f1ea;
  font-synthesis: none;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body {
  min-width: 320px;
  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: center;
  min-height: calc(100vh - 180px);
  padding-block: clamp(3rem, 7vw, 6rem);
}
.eyebrow {
  margin: 0;
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .18em;
}
.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; }
.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: .68rem; }
.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; }
.divider {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
  color: #85847d;
  font-size: .72rem;
}
.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 {
  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; }
.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: .7rem;
  line-height: 1.6;
  text-align: center;
}
footer {
  display: flex;
  justify-content: space-between;
  padding: 0 0 2.5rem;
  color: #77766f;
  font-size: .72rem;
  letter-spacing: .06em;
}
footer a { text-decoration: none; }
@media (max-width: 760px) {
  .site-header, main, footer { width: min(100% - 32px, 620px); }
  .brand span { font-size: .78rem; }
  .home-link { padding: .58rem .8rem; }
  main {
    grid-template-columns: 1fr;
    gap: 2.5rem;
    min-height: auto;
    padding-block: 3.5rem;
  }
  .login-intro h1 { font-size: clamp(2.2rem, 11vw, 3.2rem); }
  .brand-marks { margin-top: 1.75rem; }
  .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; }
}
