@import url("https://fonts.googleapis.com/css2?family=Nanum+Square+Neo:wght@400;600;800&family=Gowun+Dodum&display=swap");

/* 회원가입 페이지 테마 변수 */
:root {
  --bg-1: #f8f6f1;
  --bg-2: #efe9df;
  --ink: #1c1b18;
  --muted: #6a6358;
  --accent: #2f6f6a;
  --accent-2: #c07a3a;
  --card: #ffffff;
}

/* 박스 사이징 일괄 적용 */
* {
  box-sizing: border-box;
}

/* 배경과 기본 폰트 설정 */
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Nanum Square Neo", "Gowun Dodum", sans-serif;
  color: var(--ink);
  background: radial-gradient(1200px 600px at 10% 10%, #ffffff 0%, var(--bg-1) 55%, var(--bg-2) 100%);
  display: grid;
  place-items: center;
  padding: 24px;
}

/* 좌우 레이아웃(소개 + 폼) */
.frame {
  width: min(980px, 100%);
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 32px;
  align-items: stretch;
}

/* 소개 영역 카드 */
.brand {
  padding: 40px 36px;
  border: 1px solid #e2d9cc;
  border-radius: 28px;
  background: linear-gradient(135deg, #fff 0%, #f7f1e8 100%);
  box-shadow: 0 20px 45px rgba(60, 50, 35, 0.08);
  position: relative;
  overflow: hidden;
}

/* 배경 장식용 그라데이션 */
.brand::after {
  content: "";
  position: absolute;
  inset: auto -20% -40% auto;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(47, 111, 106, 0.2), rgba(47, 111, 106, 0));
  transform: rotate(-15deg);
}

.brand h1 {
  margin: 0 0 16px;
  font-size: 32px;
  letter-spacing: -0.5px;
  font-weight: 800;
}

.brand p {
  margin: 0;
  font-size: 16px;
  line-height: 1.7;
  color: var(--muted);
}

/* 회원가입 폼 카드 */
.register-card {
  padding: 34px;
  border-radius: 24px;
  background: var(--card);
  box-shadow: 0 16px 40px rgba(28, 27, 24, 0.12);
  display: grid;
  gap: 16px;
}

.register-card h2 {
  margin: 0 0 4px;
  font-size: 22px;
  font-weight: 800;
}

.register-card label {
  font-size: 14px;
  color: var(--muted);
  margin-top: 8px;
}

/* 입력/선택 필드 기본 스타일 */
.register-card input,
.register-card select {
  width: 100%;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid #ddd5c8;
  font-size: 15px;
  font-family: inherit;
  background: #fffdf9;
}

/* 입력/선택 포커스 강조 */
.register-card input:focus,
.register-card select:focus {
  outline: 2px solid rgba(47, 111, 106, 0.3);
  border-color: var(--accent);
}

/* 제출 버튼 스타일 */
.register-card button {
  margin-top: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--accent), #1d4f4b);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* 버튼 비활성 상태 */
.register-card button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
  transform: none;
  box-shadow: none;
}

.register-card button:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 20px rgba(47, 111, 106, 0.25);
}

/* 처리 상태 메시지 */
.register-message {
  margin: 6px 0 0;
  min-height: 18px;
  font-size: 13px;
  color: var(--muted);
}

/* 오류 메시지 강조 */
.register-message.is-error {
  color: #b42318;
}

/* 성공 메시지 강조 */
.register-message.is-success {
  color: #107a3d;
}

/* 하단 보조 링크 정렬 */
.register-meta {
  display: flex;
  justify-content: flex-end;
}

/* 로그인으로 돌아가기 버튼 */
.link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 12px;
  border-radius: 999px;
  border: 1px solid #e2d6c7;
  background: #ffffff;
  color: var(--accent);
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.link-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 16px rgba(47, 111, 106, 0.18);
}

/* 소개 영역 상단 배지 */
.badge {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 13px;
  color: var(--accent-2);
  font-weight: 700;
  letter-spacing: 0.3px;
  margin-bottom: 12px;
}

.badge span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--accent-2);
}

/* 태블릿: 1열 스택 */
@media (max-width: 1024px) {
  body {
    padding: 20px;
  }

  .frame {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .brand,
  .register-card {
    border-radius: 22px;
  }
}

/* 모바일: 패딩/폰트 축소 */
@media (max-width: 640px) {
  body {
    padding: 16px;
  }

  .brand {
    padding: 28px 22px;
  }

  .brand h1 {
    font-size: 26px;
  }

  .brand p {
    font-size: 15px;
  }

  .register-card {
    padding: 22px 20px;
  }

  .register-card h2 {
    font-size: 20px;
  }

  .register-card button {
    font-size: 15px;
  }
}
