/* ─── 기본 리셋 ─────────────────────────── */
* { box-sizing: border-box; }
*:not(.fas):not(.far):not(.fab):not([class*="fa-"]) {
	font-family: 'Pretendard', 'Noto Sans KR', sans-serif !important;
}
body { margin: 0; background: #f8fafc; }
a { text-decoration: none; }

/* ─── 글로벌 CSS 오버라이드 (common.css가 체크박스를 숨기므로 복원) ── */
.register-page input[type="checkbox"] {
	position: static !important;
	opacity: 1 !important;
	appearance: auto !important;
	-webkit-appearance: checkbox !important;
}

/* ─── 전체 레이아웃 ─────────────────────── */
.register-page {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 50%, #f8fafc 100%);
	padding: 40px 20px;
}

/* ─── 카드 컨테이너 ───────────────────── */
.register-card {
	width: 100%;
	max-width: 520px;
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.04);
	border: 1px solid #e5e7eb;
	overflow: hidden;
}

/* ─── 로고 헤더 ──────────────────────── */
.register-header {
	padding: 32px 32px 20px;
	text-align: center;
}

.register-logo {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	background: linear-gradient(135deg, #2563eb, #4f46e5);
	border-radius: 12px;
	margin-bottom: 14px;
}

.register-logo i {
	color: #fff;
	font-size: 22px;
}

.register-header h1 {
	margin: 0 0 6px;
	font-size: 22px;
	font-weight: 700;
	color: #111827;
	letter-spacing: -0.3px;
}

.register-header p {
	margin: 0;
	font-size: 13.5px;
	color: #9ca3af;
	font-weight: 400;
}

/* ─── 스텝 인디케이터 ─────────────────── */
.step-indicator {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0;
	padding: 0 32px 24px;
}

.step-dot {
	width: 30px;
	height: 30px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	font-weight: 700;
	background: #e5e7eb;
	color: #9ca3af;
	transition: all 0.3s;
	flex-shrink: 0;
}

.step-dot.active {
	background: linear-gradient(135deg, #2563eb, #4f46e5);
	color: #fff;
	box-shadow: 0 2px 8px rgba(37, 99, 235, 0.3);
}

.step-dot.done {
	background: #10b981;
	color: #fff;
}

.step-line {
	flex: 1;
	max-width: 60px;
	height: 2px;
	background: #e5e7eb;
	transition: background 0.3s;
}

.step-line.active {
	background: #2563eb;
}

/* ─── 폼 공통 ───────────────────────── */
.register-body {
	padding: 0 32px 28px;
}

.input-group {
	margin-bottom: 16px;
}

.input-group label {
	display: block;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
	margin-bottom: 6px;
}

.input-group label .required {
	color: #ef4444;
	margin-left: 2px;
}

.input-wrapper {
	position: relative;
}

.input-wrapper input,
.input-wrapper select {
	width: 100%;
	height: 44px;
	padding: 0 14px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	font-size: 14px;
	color: #111827;
	background: #f9fafb;
	outline: none;
	transition: all 0.2s;
}

.input-wrapper input::placeholder {
	color: #9ca3af;
}

.input-wrapper input:focus,
.input-wrapper select:focus {
	border-color: #2563eb;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.input-wrapper input.is_valid {
	border-color: #10b981;
}

.input-wrapper input.is_error {
	border-color: #ef4444;
}

.input-feedback {
	font-size: 12px;
	margin-top: 4px;
	min-height: 16px;
	color: #ef4444;
}

.input-wrapper .toggle-pw {
	position: absolute;
	right: 12px;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: #9ca3af;
	cursor: pointer;
	padding: 4px;
	font-size: 14px;
	transition: color 0.2s;
}

.input-wrapper .toggle-pw:hover {
	color: #6b7280;
}

/* 아이디 입력 + 중복확인 버튼 */
.id-check-row {
	display: flex;
	gap: 8px;
}

.id-check-row .input-wrapper {
	flex: 1;
}

.btn-check-id {
	height: 44px;
	padding: 0 16px;
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	font-size: 13px;
	font-weight: 600;
	color: #374151;
	cursor: pointer;
	transition: all 0.2s;
	white-space: nowrap;
	flex-shrink: 0;
}

.btn-check-id:hover {
	background: #e5e7eb;
	border-color: #d1d5db;
}

/* 이메일 입력 행 */
.email-row {
	display: flex;
	align-items: center;
	gap: 6px;
}

.email-row .input-wrapper {
	flex: 1;
}

.email-row .at-sign {
	color: #9ca3af;
	font-size: 14px;
	font-weight: 500;
	flex-shrink: 0;
}

.email-row select {
	width: auto;
	min-width: 120px;
	height: 44px;
	padding: 0 10px;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	font-size: 13px;
	color: #374151;
	background: #f9fafb;
	outline: none;
	cursor: pointer;
	flex-shrink: 0;
	transition: all 0.2s;
}

.email-row select:focus {
	border-color: #2563eb;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

/* ─── 약관 영역 ──────────────────────── */
.terms-section {
	margin-bottom: 16px;
}

.terms-box {
	background: #f9fafb;
	border: 1px solid #e5e7eb;
	border-radius: 12px;
	overflow: hidden;
	margin-bottom: 12px;
}

.terms-header {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 12px 16px;
	cursor: pointer;
	user-select: none;
}

.terms-header input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: #2563eb;
	cursor: pointer;
	margin: 0;
	flex-shrink: 0;
}

.terms-header label {
	font-size: 14px;
	font-weight: 600;
	color: #374151;
	cursor: pointer;
}

.terms-content {
	max-height: 140px;
	overflow-y: auto;
	padding: 0 16px 14px;
	font-size: 12.5px;
	line-height: 1.7;
	color: #6b7280;
}

.terms-content h4 {
	font-size: 13px;
	font-weight: 600;
	color: #374151;
	margin: 10px 0 4px;
}

.terms-content h4:first-child {
	margin-top: 0;
}

/* 스크롤바 스타일 */
.terms-content::-webkit-scrollbar {
	width: 4px;
}

.terms-content::-webkit-scrollbar-track {
	background: transparent;
}

.terms-content::-webkit-scrollbar-thumb {
	background: #d1d5db;
	border-radius: 4px;
}

/* 전체 동의 */
.agree-all {
	display: flex;
	align-items: center;
	gap: 8px;
	padding: 14px 16px;
	background: #eff6ff;
	border: 1px solid #dbeafe;
	border-radius: 10px;
	cursor: pointer;
}

.agree-all input[type="checkbox"] {
	width: 18px;
	height: 18px;
	accent-color: #2563eb;
	cursor: pointer;
	margin: 0;
}

.agree-all label {
	font-size: 14px;
	font-weight: 600;
	color: #2563eb;
	cursor: pointer;
}

/* ─── 버튼 ──────────────────────────── */
.btn-primary {
	width: 100%;
	height: 46px;
	background: linear-gradient(135deg, #2563eb, #4f46e5);
	color: #fff;
	border: none;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: all 0.2s;
	letter-spacing: -0.2px;
	margin-top: 8px;
}

.btn-primary:hover {
	background: linear-gradient(135deg, #1d4ed8, #4338ca);
	box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
	transform: translateY(-1px);
}

.btn-primary:active {
	transform: translateY(0);
	box-shadow: none;
}

/* ─── 하단 ──────────────────────────── */
.register-footer {
	padding: 18px 32px;
	border-top: 1px solid #f1f5f9;
	text-align: center;
	background: #fafbfc;
}

.register-footer span {
	font-size: 13px;
	color: #9ca3af;
}

.register-footer a {
	font-size: 13px;
	font-weight: 600;
	color: #2563eb;
	margin-left: 6px;
	transition: color 0.2s;
}

.register-footer a:hover {
	color: #1d4ed8;
}

/* ─── 완료 화면 ──────────────────────── */
.complete-section {
	text-align: center;
	padding: 40px 32px;
}

.complete-icon {
	width: 64px;
	height: 64px;
	background: linear-gradient(135deg, #10b981, #059669);
	border-radius: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 20px;
}

.complete-icon i {
	color: #fff;
	font-size: 28px;
}

.complete-section h2 {
	font-size: 20px;
	font-weight: 700;
	color: #111827;
	margin: 0 0 8px;
}

.complete-section p {
	font-size: 14px;
	color: #9ca3af;
	margin: 0 0 28px;
}

/* ─── 숨기기 ────────────────────────── */
.hide { display: none; }

/* ─── 배경 장식 ─────────────────────── */
.bg-decoration {
	position: fixed;
	border-radius: 50%;
	opacity: 0.04;
	pointer-events: none;
}

.bg-decoration.d1 {
	width: 500px; height: 500px;
	background: #2563eb;
	top: -150px; right: -100px;
}

.bg-decoration.d2 {
	width: 400px; height: 400px;
	background: #4f46e5;
	bottom: -100px; left: -80px;
}

/* ─── 반응형 ────────────────────────── */
@media (max-width: 560px) {
	.register-card {
		border-radius: 12px;
	}
	.register-header,
	.register-body {
		padding-left: 20px;
		padding-right: 20px;
	}
	.email-row {
		flex-wrap: wrap;
	}
	.email-row select {
		width: 100%;
	}
}
