:root {
  --bg: #F1F8E9;
  --text: #111827;
  --muted: #6B7280;
  --field-border: #4CAF50;
  --field-bg: #ffffff;
  --cta: #F4B942;
  --cta-pressed: #d89f36;
  --divider: #E5E7EB;
  --link: #374151;
  --google: #ffffff;
  --naver: #03C75A;
  --kakao: #FEE500;
  --space: 8px;
}

* {
  box-sizing: border-box;
}

html,
body {
  height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto,
    "Noto Sans KR", Helvetica, Arial, "Apple SD Gothic Neo", "Malgun Gothic",
    sans-serif;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* 뒤로가기 버튼 */
.back {
  position: absolute;
  left: calc(var(--space) * 2);
  top: calc(var(--space) * 2);
  width: 40px;
  height: 40px;
  border-radius: 9999px;
  background: #fff;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
  display: grid;
  place-items: center;
  cursor: pointer;
  border: 1px solid #ececec;
}

.back svg {
  width: 18px;
  height: 18px;
}

/* 컨텐츠 래퍼 */
.wrap {
  margin-top: 0;
  max-width: 100%;
  margin-left: auto;
  margin-right: auto;
  display: grid;
  gap: 0;
  padding: 0 32px;
}

/* 로고 */
.logo {
  font-weight: 800;
  font-size: 88px;
  letter-spacing: 2px;
  text-align: center;
  margin: calc(var(--space) * 2) 0 calc(var(--space) * 4);
  padding : 10px;
}

/* 입력 필드 */
.field {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.input {
  width: 100%;
  background: var(--field-bg);
  border: 2px solid var(--field-border);
  border-radius: 12px;
  height: 52px;
  padding: 0 14px;
  font-size: 16px;
  outline: none;
  transition: border-color 0.15s ease;
}

.input:focus {
  border-color: #2e7d32;
}

.forgot {
  margin-top: calc(var(--space) * 1);
  font-size: 13px;
  color: var(--muted);
  line-height: 1.2;
}

/* 버튼 */
.cta {
  margin-top: 4px;
}

.btn {
  width: 100%;
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  background: var(--cta);
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  border: none;
  border-radius: 12px;
  height: 56px;
  cursor: pointer;
  box-shadow: 0 2px 0 rgba(0, 0, 0, 0.06) inset;
  transition: transform 0.02s ease, background 0.2s ease;
}

.btn:active {
  transform: translateY(1px);
  background: var(--cta-pressed);
}

/* 링크 영역 */
.links {
  display: grid;
  grid-template-columns: 1fr auto 1fr auto 1fr;
  /* a | bar | a | bar | a */
  align-items: center;
  column-gap: 12px;
  margin: 2px 32px 6px;
}

.links a {
  display: block;
  text-align: center;
  color: var(--link) !important;
  text-decoration: none !important;
  font-size: 14px;
  line-height: 1;
}

.links a:visited,
.links a:hover,
.links a:active,
.links a:focus {
  color: var(--link) !important;
  text-decoration: none !important;
}

.links .bar {
  width: 1px;
  height: 16px;
  background: #d1d5db;
  justify-self: center;
}

/* 소셜 영역 */
.section-title {
  display: flex;
  align-items: center;
  gap: calc(var(--space) * 1.5);
  margin: 14px 0 10px;
  color: var(--muted);
  font-size: 14px;
}

.section-title .line {
  height: 1px;
  background: var(--divider);
  flex: 1;
}

.socials {
  display: flex;
  gap: calc(var(--space) * 2);
  justify-content: center;
}

.sbtn {
  width: 56px;
  height: 56px;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
  cursor: pointer;
}

.sbtn:active {
  transform: translateY(1px);
}

.sbtn svg {
  width: 24px;
  height: 24px;
}

.google {
  background: var(--google);
}

.naver {
  background: var(--naver);
}

.kakao {
  background: var(--kakao);
}

/* 프레임 */
.phone {
  width: 800px;
  /* 핵심: 800px */
  max-width: 95vw;
  /* 작은 화면에서 살짝 줄어듦 */
  height: auto;
  /* 고정 높이 해제 */
  max-height: none;
  padding: 0;
  /* 프레임형으로 보이게 패딩 제거 */
  background: var(--soft, #f9fbe7);
  border: 1px solid var(--divider);
  border-radius: 20px;
  overflow: hidden;
  /* 테두리 안으로 내용 클립 */
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  position: relative;
}

/* 헤더 버튼은 고정이 아니라 상단 바 안 아이콘처럼 */
.back {
  position: static;
  margin: 18px 20px;
  border-color: var(--divider);
}

/* 상단 영역 */
.phone::before {
  content: "";
  display: block;
  height: 1px;
  background: var(--divider);
  opacity: 0.7;
}

.head-lite {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 20px 0 20px;
}

/* 행 너비 */
.row {
  grid-template-columns: minmax(0, 1fr) 112px;
}

/* 버튼/폼 요소 강조 */
.submit {
  box-shadow: 0 4px 16px rgba(244, 185, 66, 0.25);
}

.submit:hover {
  transform: translateY(-1px);
}

.submit:active {
  transform: translateY(0);
}

.logo-img {
  width: 250px;
  height: auto;
  display: block;
  margin: 40px auto 0;
}


.phone {
  min-height: 100vh;
  /* 브라우저 높이 전체 사용 */
  display: flex;
  flex-direction: column;
  justify-content: center;
  /* 세로 가운데 정렬 */
  padding: 0 24px 40px;
  /* 좌우 24px, 하단은 조금 더 */
}


/* 3) 링크 텍스트와 구분 바 사이 여백 */
.links a {
  padding: 0 8px;
}
