/* ===== 기본 ===== */
* { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --blue: #2e9de5;
  --blue-dark: #1f8ed6;
  --ink: #222;
  --label: #2b2b2b;
  --line: #e2e6ea;
  --input-bg: #f6f8fa;

  /* 사전예약.png 기준 폼 카드 위치(스테이지 대비 %). 필요하면 이 값만 조정 */
  --card-left: 61%;
  --card-center: 48.5%;   /* 누끼 카드 세로 중심(10.6~86.4%)에 맞춤 */
  --card-width: 33%;
}

html, body { height: 100%; }

body {
  font-family: "Pretendard", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  background: #bfe5f7;            /* 카탈로그 외곽과 어울리는 연한 하늘색 */
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: var(--ink);
}

/* ===== 무대: 16:9를 유지한 채 뷰포트에 맞춰 유동적으로 ===== */
.stage {
  position: relative;
  width: min(100vw, calc(100vh * 16 / 9));
  aspect-ratio: 16 / 9;
  container-type: size;          /* 내부 요소를 cqw 단위로 비례 스케일 */
  overflow: hidden;
}

.layer {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  user-select: none;
  pointer-events: none;
}

/* 배경 카탈로그: 무대를 가득 채움 */
.bg { object-fit: cover; }

/* 누끼: 1920x1080 동일 캔버스 → 그대로 채우면 사전예약.png와 동일 위치 */
.nuki { object-fit: fill; }

/* ===== 회원가입 카드 ===== */
.signup-card {
  position: absolute;
  left: var(--card-left);
  top: var(--card-center);
  transform: translateY(-50%);  /* 누끼 카드와 같은 세로 중심에 정렬 → 위아래 여백 확보 */
  width: var(--card-width);
  background: #fff;
  border-radius: 1.4cqw;
  padding: 1.4cqw 1.9cqw 1.3cqw;
  box-shadow: 0 1cqw 2.6cqw rgba(0, 60, 110, 0.18);
  font-size: 0.9cqw;            /* 카드 내부 기준 글자 크기(비례) */
  line-height: 1.28;
}

.brand {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  margin-bottom: 0.5em;
}
.brand-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.9em;
  height: 1.9em;
  border-radius: 0.45em;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 1.15em;
}
.brand-name { font-size: 1.5em; font-weight: 800; color: #1f2a33; }

.title {
  text-align: center;
  font-size: 2.3em;
  font-weight: 900;
  letter-spacing: 0.02em;
  color: #15212b;
}
.subtitle {
  text-align: center;
  color: #6b7884;
  font-size: 1.02em;
  margin: 0.2em 0 0.85em;
}

/* ===== 입력 필드 ===== */
.field { margin-bottom: 0.55em; }
.field label {
  display: block;
  font-weight: 700;
  color: var(--label);
  margin-bottom: 0.25em;
  font-size: 1.05em;
}
.optional { color: #9aa6b1; font-weight: 500; font-size: 0.9em; }
.required { color: #e04848; font-weight: 700; font-size: 0.9em; }

.field input,
.input-wrap input {
  width: 100%;
  border: 1px solid var(--line);
  background: var(--input-bg);
  border-radius: 0.7em;
  padding: 0.62em 0.95em;
  font-size: 1.1em;
  color: var(--ink);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.field input::placeholder { color: #aab4bd; }
.field input:focus,
.input-wrap input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 0.18em rgba(46, 157, 229, 0.18);
}

.input-wrap { position: relative; }
.input-wrap input { padding-right: 3em; }
.toggle-pw {
  position: absolute;
  right: 0.8em;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #9aa6b1;
  cursor: pointer;
  display: flex;
  padding: 0.2em;
}
.toggle-pw:hover { color: var(--blue); }
.toggle-pw svg { width: 1.5em; height: 1.5em; }

/* ===== 동의 체크박스 ===== */
.consent-group {
  display: flex;
  flex-direction: column;
  gap: 0.4em;
  margin: 0.45em 0 0.75em;
}
.consent {
  display: flex;
  align-items: flex-start;
  gap: 0.5em;
  font-size: 0.96em;
  color: #5a6671;
  cursor: pointer;
}
.consent input { width: 1.15em; height: 1.15em; margin-top: 0.1em; accent-color: var(--blue); flex-shrink: 0; }

/* ===== 메시지 ===== */
.form-message {
  font-size: 1em;
  min-height: 1.2em;
  margin-bottom: 0.4em;
  text-align: center;
}
.form-message.error { color: #e04848; }
.form-message.success { color: #1f9d57; }

/* ===== 버튼 ===== */
.submit-btn {
  width: 100%;
  border: none;
  background: var(--blue);
  color: #fff;
  font-weight: 800;
  font-size: 1.2em;
  padding: 0.72em;
  border-radius: 0.7em;
  cursor: pointer;
  transition: background 0.15s, transform 0.05s;
}
.submit-btn:hover { background: var(--blue-dark); }
.submit-btn:active { transform: translateY(1px); }
.submit-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.login-link {
  text-align: center;
  margin-top: 0.7em;
  color: #6b7884;
  font-size: 1em;
}
.login-link a { color: var(--blue); font-weight: 700; text-decoration: none; }
.login-link a:hover { text-decoration: underline; }
