body {
	background-color: var(--bg-brand-color);
}

/* =========================================
   회원가입 페이지 전용 스타일
   파일명: join.css
   ========================================= */

.join-container {
	padding-top: 40px;
	padding-bottom: 60px;
}

.join-title-box {
	margin-bottom: 30px;
}

.join-title {
	margin: 0;
	font-size: 28px;
	font-weight: 600;
	color: #222;
}

/* 카드 박스 */
.join-card {
	background-color: #fff;
	border-radius: 16px;
	box-shadow: 0 10px 22px rgba(0, 0, 0, 0.04);
	border: 1px solid #e3eaf0;
	padding: 24px 28px 20px;
	box-sizing: border-box;
}

/* 헤더 영역 */
.join-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 16px;
}

.join-required-label {
	font-size: 12px;
	color: #888;
}

/* 안내 박스 */
.join-notice {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 10px 12px;
	margin-bottom: 18px;
	border-radius: 10px;
	background-color: #f5f7fb;
	color: #555;
	font-size: 13px;
}

.join-notice i {
	color: var(--brand-color);
}

/* 폼 공통 */
.join-row {
	display: flex;
	align-items: flex-start;
	margin-bottom: 14px;
}

.join-row.row-check {
	margin-top: -10px;
}

.join-label {
	flex: 0 0 110px;
	font-size: 14px;
	font-weight: 500;
	color: #333;
	line-height: 130%;
}

.join-label span {
	white-space: nowrap;
}

.join-label .req {
	color: #ff5a5a;
	margin-left: 2px;
}

.join-field {
	flex: 1 1 auto;
}

.join-row .item-checkmsg {
	flex: 0 0 100%;
	font-size: 13px;
	color: #3789ad !important;
}

.join-row .item-checkmsg.bad {
	color: #c50 !important;
}

/* 입력 요소 공통 */
.join-input,
.join-textarea {
	width: 100%;
	box-sizing: border-box;
	border-radius: 10px;
	border: 1px solid #d8e2e7;
	padding: 9px 12px;
	font-size: 14px;
	line-height: 1.4;
	color: #333;
	background-color: #fff;
	outline: none;
	transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.join-input:focus,
.join-textarea:focus {
	border-color: var(--brand-color);
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.02);
}

/* 텍스트에어리어 높이 */
.join-textarea {
	resize: vertical;
	min-height: 70px;
	display: block;
}

/* 그룹 입력 */
.join-field-group {
	display: flex;
	align-items: center;
	gap: 6px;
}

.join-phone-group .join-input {
	max-width: 90px;
	text-align: center;
}

.join-birth-group .join-input {
	max-width: 100px;
	text-align: center;
}

.join-split {
	font-size: 14px;
	color: #777;
}

/* ===============================
   전화번호 문자인증 UI
   =============================== */

.join-field-sms {
	display: flex;
	align-items: center;
	gap: 10px;
}

.btn-sms {
	white-space: nowrap;
	height: 38px;
	padding: 0 14px;
	border-radius: 999px;
	font-size: 13px;
	font-weight: 500;
	border: 1px solid var(--brand-color);
	background-color: #fff;
	color: var(--brand-color);
	cursor: pointer;
	transition: background-color .15s ease, color .15s ease,
	border-color .15s ease, box-shadow .15s ease,
	transform .1s ease;
}

.btn-sms:hover {
	background-color: var(--brand-color);
	color: #fff;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
	transform: translateY(-1px);
}

.btn-sms-confirm {
	background-color: var(--brand-color);
	color: #fff;
}

.join-smscode-group {
	display: flex;
	align-items: center;
	gap: 8px;
	max-width: 420px;
}

.join-smscode-group .join-input {
	max-width: 395px;
	text-align: center;
}

.sms-timer {
	font-size: 13px;
	color: #ff5a5a;
	min-width: 44px;
	text-align: center;
}

.smscode {
	width: 200px;
}

.sms-help {
	width: 200px;
	text-align: center;
	display: none;
	margin-top: 6px;
	font-size: 12px;
	color: #888;
	line-height: 1.5;
}

/* 약관 동의 */

.agree-contents {
	border: 1px solid #d8e2e7;
	border-radius: 10px;
	height: 80px;
	white-space: pre-wrap;
	overflow-y: scroll;
	box-sizing: border-box;
	padding: 10px;
	font-size: 13px;
	color: #888;
}

.agree-check {
	margin-top: 4px;
	color: #888;
}

/* 푸터 버튼 영역 */
.join-footer {
	margin-top: 20px;
	display: flex;
	justify-content: flex-end;
	gap: 10px;
}

.btn-join {
	min-width: 120px;
	height: 42px;
	padding: 0 18px;
	border-radius: 999px;
	font-size: 14px;
	font-weight: 500;
	border: 1px solid transparent;
	cursor: pointer;
	background-color: #fff;
	color: #555;
	transition: background-color .15s ease, color .15s ease,
	border-color .15s ease, box-shadow .15s ease,
	transform .1s ease;
}

.btn-join-outline {
	border-color: #d0dde4;
}

.btn-join-outline:hover {
	border-color: var(--brand-color);
	color: var(--brand-color);
}

.btn-join-primary {
	background-color: var(--brand-color);
	border-color: var(--brand-color);
	color: #fff;
	box-shadow: 0 8px 15px rgba(0, 0, 0, 0.08);
}

.btn-join-primary:hover {
	box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
	transform: translateY(-1px);
}

/* ---------------------------------
   프로필 안내 모달 (회원가입/로그인 공용)
---------------------------------- */
.profile-modal {
	position: fixed;
	inset: 0;
	z-index: 1200;
	display: none;
}

.profile-modal.open {
	display: block;
}

.pm-dim {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

.pm-dialog {
	position: relative;
	z-index: 1;
	width: 380px;
	margin: 120px auto 0;
	background: #fff;
	border-radius: 18px;
	padding: 22px 24px 24px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
	box-sizing: border-box;
	animation: pmFadeIn .25s ease-out;
}

@keyframes pmFadeIn {
	from { opacity: 0; transform: translateY(20px); }
	to   { opacity: 1; transform: translateY(0); }
}

.pm-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 14px;
}

.pm-title {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	color: #111;
}

.pm-close {
	border: none;
	background: transparent;
	font-size: 24px;
	cursor: pointer;
	color: #999;
	padding: 2px 6px;
}

.pm-close:hover {
	color: #555;
}

.pm-body {
	text-align: center;
	padding: 10px 0 6px;
}

.pm-text {
	font-size: 15px;
	color: #444;
	line-height: 1.7;
	margin: 0;
}

.pm-point {
	color: var(--brand-color);
	font-weight: 700;
	font-size: 18px;
}

.pm-footer {
	margin-top: 16px;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.pm-btn {
	width: 100%;
	height: 42px;
	border-radius: 12px;
	font-size: 14px;
}

/* ---------------------------------
   반응형 (<= 768px)
---------------------------------- */
@media (max-width: 768px) {

	.join-container {
		padding-top: 24px;
		padding-bottom: 40px;
	}

	.join-card {
		padding: 18px 16px 16px;
		border-radius: 12px;
	}

	.join-header {
		flex-direction: column;
		align-items: flex-start;
		gap: 6px;
	}

	.join-title {
		font-size: 18px;
	}

	.join-required-label {
		font-size: 11px;
	}

	.join-row {
		flex-direction: column;
		margin-bottom: 12px;
	}

	.join-label {
		flex: 0 0 auto;
		line-height: 1.4;
		margin-bottom: 6px;
	}

	.join-row.row-check .join-label {
		display: none;
	}

	.join-field-group {
		gap: 4px;
	}

	.join-phone-group .join-input,
	.join-birth-group .join-input {
		max-width: none;
		flex: 1 1 auto;
	}

	.join-field {
		width: 100%;
	}

	.smscode {
		width: 150px;
	}

	.sms-help {
		width: 150px;
		text-align: center;
	}

	.join-textarea {
		width: 100%;
		max-width: unset;
		display: block;
	}

	.join-footer {
		flex-direction: column-reverse;
		margin-top: 18px;
	}

	.join-footer .btn-join {
		width: 100%;
		min-width: 0;
	}

	.pm-dialog {
		width: calc(100% - 40px);
		margin: 90px auto 0;
		padding: 20px 18px 22px;
		border-radius: 14px;
	}

	.pm-title {
		font-size: 18px;
	}

	.pm-text {
		font-size: 14px;
	}

	.pm-point {
		font-size: 16px;
	}
}
