:root {
  color: #40584d;
  background: #fff9f3;
  font-family: "Noto Sans KR", sans-serif;
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  --paper: #fff9f3;
  --forest: #40584d;
  --forest-deep: #344a40;
  --coral: #c9785f;
  --ink-soft: #5f7068;      /* 보조 글자(아이보리 대비 5:1, 2026-11-15 읽기 쉬움 보정) */
  --coral-text: #a65c45;    /* 산호색 글씨(대비 4.7:1). 선·배경 장식은 --coral 그대로 */
  --line: rgba(64, 88, 77, .18);
  --field: #fffdfa;
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--paper); }
body { min-width: 320px; min-height: 100vh; margin: 0; display: flex; flex-direction: column; background: var(--paper); }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; }
button { color: inherit; }
::selection { color: var(--paper); background: var(--coral); }

.auth-skip { position: fixed; z-index: 10; top: 8px; left: 8px; padding: 11px 14px; color: #fff; background: var(--forest); transform: translateY(-150%); }
.auth-skip:focus { transform: translateY(0); }
.auth-header { width: 100%; height: 84px; margin: 0; padding: 0 7.2%; display: flex; align-items: center; justify-content: space-between; }
.auth-brand { display: inline-flex; align-items: center; flex: 0 0 auto; }
.auth-brand img { display: block; width: 186px; height: auto; mix-blend-mode: multiply; }
.auth-return { display: inline-flex; align-items: center; gap: 9px; color: var(--ink-soft); font-size: 13px; transition: color 160ms ease; }
.auth-return:hover, .text-action:hover, .auth-switch a:hover { color: var(--coral-text); }
.auth-return span { color: var(--coral-text); font-size: 15px; }

.auth-main { width: 100%; flex: 1 0 auto; display: grid; place-items: start center; padding: 36px 20px 64px; }
.auth-panel { width: min(100%, 460px); padding: 35px 38px 30px; border: 1px solid rgba(88, 105, 89, .14); border-radius: 4px; background: rgba(255,253,249,.9); box-shadow: 0 12px 38px rgba(74,83,68,.055); }
.auth-eyebrow { margin: 0 0 12px; color: var(--coral-text); font-family: "DM Sans", sans-serif; font-size: 12px; font-weight: 600; letter-spacing: .12em; text-align: center; }
.auth-panel h1 { margin: 0; color: var(--forest); font-family: "SUIT", "Noto Sans KR", sans-serif; font-size: 30px; font-weight: 600; line-height: 1.42; text-align: center; word-break: keep-all; }
.auth-description { margin: 10px 0 27px; color: var(--ink-soft); font-size: 13px; line-height: 1.8; text-align: center; word-break: keep-all; }
.auth-form { display: grid; gap: 16px; }
.auth-form[hidden] { display: none; }
.auth-field { display: grid; gap: 7px; color: var(--forest); font-size: 12px; font-weight: 500; }
.auth-field input { width: 100%; height: 47px; padding: 0 13px; border: 1px solid rgba(64,88,77,.2); border-radius: 3px; outline: none; color: var(--forest-deep); background: var(--field); font-size: 13px; font-weight: 400; transition: border-color 150ms ease, box-shadow 150ms ease; }
.auth-field input::placeholder { color: #9aa49a; }
.auth-field input:focus { border-color: #718675; box-shadow: 0 0 0 3px rgba(113,134,117,.13); }
.password-input { position: relative; display: block; }
.password-input input { padding-right: 58px; }
.password-toggle { position: absolute; top: 50%; right: 11px; padding: 5px; border: 0; color: var(--ink-soft); background: transparent; font-size: 12px; cursor: pointer; transform: translateY(-50%); }
.password-toggle:hover { color: var(--forest); }
.form-options { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: -2px; }
.check-label { display: inline-flex; min-width: 0; align-items: flex-start; gap: 8px; color: var(--ink-soft); font-size: 12px; line-height: 1.65; cursor: pointer; }
.check-label input { width: 15px; height: 15px; flex: 0 0 auto; margin: 2px 0 0; accent-color: var(--forest); }
.form-options-end { justify-content: flex-end; }
.text-action { padding: 0; border: 0; color: var(--ink-soft); background: transparent; font-size: 12px; cursor: pointer; }
.text-action:hover { text-decoration: underline; text-underline-offset: 3px; }
.auth-submit { width: 100%; min-height: 48px; padding: 12px 18px; border: 0; border-radius: 3px; color: var(--paper); background: var(--forest); font-size: 13px; font-weight: 500; cursor: pointer; transition: background-color 160ms ease, transform 160ms ease; }
.auth-submit:hover { background: var(--forest-deep); }
.auth-submit:active { transform: translateY(1px); }
.auth-status { margin: -4px 0 0; padding: 11px 12px; border: 1px solid rgba(201,120,95,.25); border-radius: 3px; color: var(--forest); background: #fbf0e9; font-size: 12px; line-height: 1.7; word-break: keep-all; }
.auth-status[hidden] { display: none; }
.auth-switch { margin: 22px 0 0; padding-top: 19px; border-top: 1px solid rgba(64,88,77,.11); color: var(--ink-soft); font-size: 12px; text-align: center; }
.auth-switch a { margin-left: 7px; color: var(--forest); font-weight: 600; text-underline-offset: 3px; }
.auth-footer { padding: 16px 20px 22px; color: var(--ink-soft); font-family: "DM Sans", sans-serif; font-size: 12px; letter-spacing: .04em; text-align: center; }

.signup-main { padding-top: 25px; padding-bottom: 48px; }
.signup-panel { width: min(100%, 540px); padding-top: 29px; }
.signup-panel .auth-description { margin-bottom: 21px; }
.signup-form { gap: 12px; }
.password-hint { margin: 0; color: var(--ink-soft); font-size: 12px; font-weight: 400; line-height: 1.6; word-break: keep-all; }
.password-meter { margin: -3px 0 0; color: var(--ink-soft); font-size: 12px; font-weight: 400; line-height: 1.6; word-break: keep-all; }
.password-meter:empty { display: none; }
.password-meter[data-state="ok"] { color: var(--forest); font-weight: 500; }
.password-meter[data-state="ok"]::before { content: "✓ "; }
.password-meter[data-state="short"], .password-meter[data-state="mismatch"] { color: #a85a43; font-weight: 500; }
.email-check-row { display: flex; gap: 8px; }
.email-check-row input { min-width: 0; flex: 1 1 auto; }
.email-check-button { flex: 0 0 auto; height: 47px; padding: 0 15px; border: 1px solid var(--forest); border-radius: 3px; color: var(--forest); background: var(--field); font-size: 12px; font-weight: 500; white-space: nowrap; cursor: pointer; transition: color 150ms ease, background-color 150ms ease, opacity 150ms ease; }
.email-check-button:hover:not(:disabled) { color: var(--paper); background: var(--forest); }
.email-check-button:focus-visible { outline: 2px solid var(--forest); outline-offset: 2px; }
.email-check-button:disabled { border-color: rgba(64,88,77,.25); color: var(--ink-soft); cursor: not-allowed; }
.email-check-status { margin: 0; color: var(--ink-soft); font-size: 12px; font-weight: 400; line-height: 1.6; word-break: keep-all; }
.email-check-status:empty { display: none; }
.email-check-status[data-state="available"], .email-check-status[data-state="own"] { color: var(--forest); font-weight: 500; }
.email-check-status[data-state="available"]::before, .email-check-status[data-state="own"]::before { content: "✓ "; }
.email-check-status[data-state="taken"], .email-check-status[data-state="required"] { color: #a85a43; font-weight: 500; }
.email-check-status[data-state="verified"] { color: var(--forest); font-weight: 600; }
.email-check-status[data-state="verified"]::before { content: "✓ "; }
.email-check-status[data-state="sent"] { color: var(--forest-deep); }
.email-check-status[data-state="mismatch"], .email-check-status[data-state="expired"], .email-check-status[data-state="locked"], .email-check-status[data-state="send-failed"], .email-check-status[data-state="unavailable"], .email-check-status[data-state="limited"], .email-check-status[data-state="cooldown"], .email-check-status[data-state="error"], .email-check-status[data-state="code-format"] { color: #a85a43; font-weight: 500; }
.email-verify { display: grid; gap: 7px; margin-top: 2px; padding: 13px 14px 12px; border: 1px solid rgba(64,88,77,.16); border-radius: 3px; background: rgba(255,253,249,.7); }
.email-verify[hidden] { display: none; }
.email-verify input:not(:placeholder-shown) { letter-spacing: .18em; }
.email-verify input:disabled, .email-row input:disabled { color: var(--ink-soft); background: rgba(64,88,77,.05); }
.email-code-timer { margin: 0; color: var(--ink-soft); font-size: 12px; font-weight: 400; }
.email-code-timer:empty { display: none; }
.auth-alert { margin: 0 0 22px; padding: 20px 22px 20px 20px; border: 1px solid rgba(201,120,95,.32); border-left: 4px solid var(--coral); border-radius: 3px; color: var(--forest); background: #fbf0e9; scroll-margin: 24px; }
.auth-alert[hidden] { display: none; }
.auth-alert:focus { outline: 2px solid var(--forest); outline-offset: 3px; }
.auth-alert h2 { margin: 0 0 7px; font-family: "SUIT", "Noto Sans KR", sans-serif; font-size: 18px; font-weight: 600; line-height: 1.45; word-break: keep-all; }
.auth-alert p { margin: 0 0 16px; color: var(--forest-deep); font-size: 14px; line-height: 1.75; word-break: keep-all; }
.auth-alert p:last-child { margin-bottom: 0; }
.auth-alert .auth-alert-note { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding-top: 12px; border-top: 1px solid rgba(201,120,95,.22); color: var(--ink-soft); font-size: 12px; line-height: 1.65; }
.auth-alert-link { color: var(--forest); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.auth-alert-link:hover { color: var(--coral-text); }
.auth-alert--info { border-color: rgba(64,88,77,.2); border-left-color: var(--forest); background: var(--field); }
.auth-alert--info .auth-alert-note { border-top-color: rgba(64,88,77,.14); }
.text-action[href] { display: inline-block; }
.auth-alert-action { display: flex; align-items: center; justify-content: center; min-height: 44px; text-align: center; }
.auth-alert-action[hidden] { display: none; }
.auth-alert p:has(+ .auth-alert-action[hidden]) { margin-bottom: 0; }
.auth-alert-action:focus-visible { outline: 2px solid var(--forest); outline-offset: 3px; }
.consent-group { min-width: 0; margin: 8px 0 0; padding: 12px 0 0; border: 0; border-top: 1px solid rgba(64,88,77,.14); }
.consent-all { margin-bottom: 9px; color: var(--forest); font-weight: 600; }
.consent-list { display: grid; gap: 7px; }
.consent-row { display: flex; min-width: 0; align-items: flex-start; justify-content: space-between; gap: 10px; }
.consent-row .check-label { flex: 1 1 auto; }
.consent-row .text-action { flex: 0 0 auto; margin-top: 2px; }
.consent-row b { color: var(--coral-text); font-weight: 500; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; clip-path: inset(50%); }

.auth-dialog { width: min(calc(100% - 32px), 390px); padding: 27px 26px 24px; border: 1px solid rgba(64,88,77,.18); border-radius: 4px; color: var(--forest); background: var(--paper); box-shadow: 0 18px 60px rgba(39,48,41,.18); }
.auth-dialog::backdrop { background: rgba(37,47,40,.34); }
.auth-dialog .auth-eyebrow { text-align: left; }
.auth-dialog h2 { margin: 0 0 10px; font-family: "SUIT", "Noto Sans KR", sans-serif; font-size: 22px; font-weight: 600; }
.auth-dialog p:not(.auth-eyebrow) { margin: 0 0 22px; color: var(--ink-soft); font-size: 13px; line-height: 1.8; word-break: keep-all; }
.dialog-close { min-height: 43px; }

@media (max-width: 600px) {
  .auth-header { width: 100%; height: 68px; padding-right: 6%; padding-left: 6%; }
  .auth-brand img { width: 158px; }
  .auth-return { font-size: 13px; }
  .auth-main { padding: 22px 16px 40px; }
  .auth-panel { padding: 27px 22px 24px; }
  .auth-panel h1 { font-size: 26px; }
  .auth-description { margin-bottom: 22px; font-size: 13.5px; }
  .signup-main { padding-top: 14px; }
  .signup-panel { padding: 23px 20px 22px; }
  .signup-form { gap: 10px; }
  .email-check-button { height: 45px; padding: 0 12px; }
  /* 모바일: 이메일 입력란을 한 줄로, 두 버튼은 아래 줄에 나란히 */
  .email-row { flex-wrap: wrap; }
  .email-row input { flex: 1 1 100%; }
  .email-row .email-check-button { flex: 1 1 0; }
  .email-verify { padding: 12px 11px 11px; }
  .auth-alert { margin-bottom: 18px; padding: 17px 16px 17px 15px; }
  .auth-alert h2 { font-size: 17px; }
  .auth-alert p { font-size: 13px; }
  .auth-field input { height: 45px; }
  .auth-switch { margin-top: 18px; padding-top: 17px; }
}

/* 좁은 휴대폰: 회원 화면 머리글에서는 로고가 메인으로 가는 링크를 대신하므로 "메인으로 돌아가기" 글자 링크를 숨겨
   로고 글씨가 충분히 크게 보이고 나머지 메뉴가 줄바꿈되지 않게 합니다. */
@media (max-width: 420px) {
  .auth-header nav .auth-return[href="index.html"] { display: none; }
  .auth-header nav a, .auth-header nav button { white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* 손가락으로 누르기 쉬운 최소 크기(WCAG 2.2 최소 24px 이상). 글자 크기·색·위치는 그대로 두고 누르는 영역만 넓힙니다. */
.auth-return, .text-action, .reservation-mypage-link, .history-mypage-link, .account-mypage-link, .mypage-logout, .withdraw-cancel { display: inline-flex; align-items: center; min-height: 40px; }
.consent-row .text-action { min-height: 24px; margin-top: 0; }
.password-toggle { display: inline-flex; align-items: center; justify-content: center; min-width: 36px; min-height: 32px; }

/* 2026-11-17 휴대폰 읽기·누르기 편의: 디자인 비율은 그대로 두고 폭 600px 이하에서만, 읽어야 하는 한국어 문장(입력칸 이름·도움말·동의·안내)을 키우고 작은 단추의 누르는 영역을 넓힙니다. 영문 장식 글자는 그대로. */
@media (max-width: 600px) {
  .auth-field, .check-label, .text-action, .auth-status, .auth-switch, .password-hint, .password-meter, .email-check-status, .email-code-timer, .auth-alert .auth-alert-note, .email-check-button { font-size: 13.5px; }
  .password-toggle { min-width: 44px; min-height: 44px; }
  .consent-row .text-action { min-height: 40px; min-width: 44px; justify-content: center; padding: 0 4px; }
}
