/* ============================================
   GitHub Exact Signup Page - Split Layout
   Senior Designer Implementation
   ============================================ */

/* CSS Reset */
*,
*::before,
*::after {
	box-sizing: border-box;
	margin: 0;
	padding: 0;
}

html {
	scroll-behavior: smooth;
}

/* Design Tokens - GitHub Exact */
:root {
	/* Colors */
	--gh-bg-default: #ffffff;
	--gh-bg-subtle: #f6f8fa;
	--gh-bg-dark: #0d1117;
	--gh-bg-gradient-start: #0d1117;
	--gh-bg-gradient-end: #161b22;

	/* Text */
	--gh-text-default: #1f2328;
	--gh-text-muted: #59636e;
	--gh-text-subtle: #6e7781;
	--gh-text-on-dark: #ffffff;
	--gh-text-on-dark-muted: rgba(255, 255, 255, 0.7);

	/* Borders */
	--gh-border-default: #d1d9e0;
	--gh-border-muted: #d8dee4;

	/* Interactive */
	--gh-focus-ring: #0969da;
	--gh-link: #0969da;
	--gh-btn-primary-bg: #1f2328;
	--gh-btn-primary-hover: #25292e;
	--gh-btn-secondary-bg: #f6f8fa;
	--gh-btn-secondary-hover: #f3f4f6;

	/* Success */
	--gh-success: #1a7f37;
	--gh-success-emphasis: #238636;

	/* Spacing */
	--space-1: 4px;
	--space-2: 8px;
	--space-3: 12px;
	--space-4: 16px;
	--space-5: 20px;
	--space-6: 24px;
	--space-8: 32px;
	--space-10: 40px;
	--space-12: 48px;
	--space-16: 64px;
	--space-20: 80px;

	/* Typography */
	--font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans", Helvetica, Arial, sans-serif;
	--font-size-xs: 12px;
	--font-size-sm: 14px;
	--font-size-base: 16px;
	--font-size-lg: 20px;
	--font-size-xl: 24px;
	--font-size-2xl: 32px;
	--font-size-3xl: 40px;

	--font-weight-normal: 400;
	--font-weight-medium: 500;
	--font-weight-semibold: 600;
	--font-weight-bold: 700;

	--line-height-tight: 1.25;
	--line-height-normal: 1.5;

	/* Border Radius */
	--radius-sm: 4px;
	--radius-md: 6px;
	--radius-lg: 8px;
	--radius-xl: 12px;
}

/* Body */
body {
	font-family: var(--font-family);
	font-size: var(--font-size-sm);
	line-height: var(--line-height-normal);
	color: var(--gh-text-default);
	background-color: var(--gh-bg-default);
	-webkit-font-smoothing: antialiased;
	-moz-osx-font-smoothing: grayscale;
}

/* ===== Page Layout - Split Design ===== */
.gh-signup-page {
	min-height: 100vh;
	display: flex;
}

/* ===== Left Panel - Marketing ===== */
.gh-signup-marketing {
	width: 50%;
	min-height: 100vh;
	background: linear-gradient(135deg, var(--gh-bg-gradient-start) 0%, var(--gh-bg-gradient-end) 100%);
	padding: var(--space-20) var(--space-20) var(--space-12);
	display: flex;
	flex-direction: column;
	position: relative;
	overflow: hidden;
}

/* Stars Background Effect */
.gh-signup-marketing::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-image:
		radial-gradient(1px 1px at 20px 30px, rgba(255, 255, 255, 0.3), transparent),
		radial-gradient(1px 1px at 40px 70px, rgba(255, 255, 255, 0.2), transparent),
		radial-gradient(1px 1px at 50px 160px, rgba(255, 255, 255, 0.3), transparent),
		radial-gradient(1px 1px at 90px 40px, rgba(255, 255, 255, 0.2), transparent),
		radial-gradient(1px 1px at 130px 80px, rgba(255, 255, 255, 0.3), transparent),
		radial-gradient(1px 1px at 160px 120px, rgba(255, 255, 255, 0.2), transparent),
		radial-gradient(1.5px 1.5px at 200px 200px, rgba(255, 255, 255, 0.4), transparent),
		radial-gradient(1px 1px at 250px 50px, rgba(255, 255, 255, 0.2), transparent),
		radial-gradient(1px 1px at 300px 150px, rgba(255, 255, 255, 0.3), transparent);
	pointer-events: none;
}

.gh-marketing-content {
	position: relative;
	z-index: 1;
	flex: 1;
}

.gh-marketing-title {
	font-size: var(--font-size-2xl);
	font-weight: var(--font-weight-semibold);
	color: var(--gh-text-on-dark);
	margin-bottom: var(--space-3);
	line-height: var(--line-height-tight);
}

.gh-marketing-subtitle {
	font-size: var(--font-size-base);
	color: var(--gh-text-on-dark-muted);
	margin-bottom: var(--space-6);
	max-width: 400px;
}

/* Features List */
.gh-marketing-features {
	margin-top: var(--space-8);
}

.gh-marketing-toggle {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	color: var(--gh-text-on-dark);
	font-size: var(--font-size-sm);
	font-weight: var(--font-weight-semibold);
	cursor: pointer;
	background: none;
	border: none;
	padding: 0;
}

.gh-marketing-toggle svg {
	transition: transform 0.2s;
}

.gh-marketing-toggle.open svg {
	transform: rotate(180deg);
}

.gh-features-list {
	list-style: none;
	margin-top: var(--space-4);
	display: none;
}

.gh-features-list.show {
	display: block;
}

.gh-feature-item {
	display: flex;
	gap: var(--space-3);
	margin-bottom: var(--space-4);
}

.gh-feature-icon {
	flex-shrink: 0;
	width: 16px;
	height: 16px;
	color: var(--gh-text-on-dark);
	margin-top: 2px;
}

.gh-feature-text {
	color: var(--gh-text-on-dark);
}

.gh-feature-title {
	font-weight: var(--font-weight-semibold);
	margin-bottom: var(--space-1);
}

.gh-feature-desc {
	color: var(--gh-text-on-dark-muted);
	font-size: var(--font-size-sm);
}

/* Marketing Illustration */
.gh-marketing-illustration {
	position: absolute;
	bottom: 0;
	left: 0;
	right: 0;
	height: 300px;
	display: flex;
	justify-content: center;
	align-items: flex-end;
	padding-bottom: var(--space-8);
}

.gh-illustration-wrapper {
	display: flex;
	gap: var(--space-6);
	align-items: flex-end;
}

.gh-mascot {
	width: 120px;
	height: 120px;
	border-radius: 50%;
	background: linear-gradient(135deg, #7c3aed 0%, #a855f7 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 48px;
	animation: float 3s ease-in-out infinite;
}

.gh-mascot:nth-child(2) {
	background: linear-gradient(135deg, #f97316 0%, #fbbf24 100%);
	animation-delay: 0.5s;
}

.gh-mascot:nth-child(3) {
	background: linear-gradient(135deg, #06b6d4 0%, #3b82f6 100%);
	animation-delay: 1s;
}

@keyframes float {

	0%,
	100% {
		transform: translateY(0);
	}

	50% {
		transform: translateY(-10px);
	}
}

/* ===== Right Panel - Form ===== */
.gh-signup-form-panel {
	width: 50%;
	min-height: 100vh;
	background-color: var(--gh-bg-default);
	padding: var(--space-6) var(--space-12);
	display: flex;
	flex-direction: column;
}

/* Top Navigation */
.gh-signup-nav {
	display: flex;
	justify-content: flex-end;
	margin-bottom: var(--space-10);
}

.gh-signup-nav-text {
	font-size: var(--font-size-sm);
	color: var(--gh-text-muted);
}

.gh-signup-nav-link {
	color: var(--gh-text-default);
	text-decoration: none;
	font-weight: var(--font-weight-medium);
	margin-left: var(--space-1);
}

.gh-signup-nav-link:hover {
	text-decoration: underline;
}

/* Form Container */
.gh-signup-form-container {
	flex: 1;
	display: flex;
	flex-direction: column;
	max-width: 452px;
}

/* Form Title */
.gh-signup-title {
	font-size: var(--font-size-xl);
	font-weight: var(--font-weight-semibold);
	color: var(--gh-text-default);
	margin-bottom: var(--space-6);
}

/* Social Login Section */
.gh-social-section {
	margin-bottom: var(--space-4);
}

.gh-btn-social {
	width: 100%;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	padding: 0 var(--space-3);
	font-size: var(--font-size-sm);
	font-weight: var(--font-weight-medium);
	color: var(--gh-text-default);
	background-color: var(--gh-bg-subtle);
	border: 1px solid var(--gh-border-default);
	border-radius: var(--radius-md);
	cursor: pointer;
	transition: background-color 0.15s;
	text-decoration: none;
}

.gh-btn-social:hover {
	background-color: var(--gh-btn-secondary-hover);
}

.gh-btn-social:active {
	transform: scale(0.98);
}

.gh-btn-social+.gh-btn-social {
	margin-top: var(--space-2);
}

.gh-btn-social svg {
	flex-shrink: 0;
}

/* Divider */
.gh-divider {
	display: flex;
	align-items: center;
	margin: var(--space-4) 0;
	color: var(--gh-text-muted);
	font-size: var(--font-size-sm);
}

.gh-divider::before,
.gh-divider::after {
	content: "";
	flex: 1;
	height: 1px;
	background-color: var(--gh-border-default);
}

.gh-divider span {
	padding: 0 var(--space-3);
}

/* Form */
.gh-signup-form {
	display: flex;
	flex-direction: column;
}

/* Form Group */
.gh-form-group {
	margin-bottom: var(--space-4);
}

/* Label */
.gh-form-label {
	display: block;
	font-size: var(--font-size-sm);
	font-weight: var(--font-weight-medium);
	color: var(--gh-text-default);
	margin-bottom: var(--space-2);
}

.gh-form-label-required::after {
	content: "*";
	color: var(--gh-text-muted);
	margin-left: 2px;
}

/* Input */
.gh-form-input {
	width: 100%;
	height: 39px;
	padding: var(--space-2) var(--space-3);
	font-size: var(--font-size-sm);
	font-family: var(--font-family);
	line-height: var(--line-height-normal);
	color: var(--gh-text-default);
	background-color: var(--gh-bg-default);
	border: 1px solid var(--gh-border-default);
	border-radius: var(--radius-md);
	outline: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.gh-form-input:focus {
	border-color: var(--gh-focus-ring);
	box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.3);
}

.gh-form-input::placeholder {
	color: var(--gh-text-subtle);
}

/* Input Group (우편번호 + 검색버튼) */
.gh-input-group {
	display: flex;
	gap: var(--space-2);
}

.gh-input-group .gh-form-input {
	flex: 1;
}

.gh-input-group .gh-btn {
	flex-shrink: 0;
	height: 39px;
	padding: 0 var(--space-4);
	font-size: var(--font-size-sm);
	white-space: nowrap;
}

/* Select */
.gh-form-select {
	width: 100%;
	height: 39px;
	padding: var(--space-2) var(--space-3);
	font-size: var(--font-size-sm);
	font-family: var(--font-family);
	color: var(--gh-text-default);
	background-color: var(--gh-bg-default);
	border: 1px solid var(--gh-border-default);
	border-radius: var(--radius-md);
	outline: none;
	cursor: pointer;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath fill='%2357606a' d='M4.427 9.427l3.396 3.396a.25.25 0 00.354 0l3.396-3.396A.25.25 0 0011.396 9H4.604a.25.25 0 00-.177.427zM4.423 6.57l3.396-3.396a.25.25 0 01.354 0l3.396 3.396a.25.25 0 01-.177.427H4.6a.25.25 0 01-.177-.427z'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 12px center;
	padding-right: 36px;
}

.gh-form-select:focus {
	border-color: var(--gh-focus-ring);
	box-shadow: 0 0 0 3px rgba(9, 105, 218, 0.3);
}

/* Help Text */
.gh-form-help {
	font-size: var(--font-size-xs);
	color: var(--gh-text-muted);
	margin-top: var(--space-1);
	line-height: var(--line-height-normal);
}

/* Error */
.gh-form-error {
	font-size: var(--font-size-xs);
	color: #d1242f;
	margin-top: var(--space-1);
}

/* Checkbox */
.gh-checkbox-group {
	margin-bottom: var(--space-4);
}

.gh-checkbox-label {
	display: flex;
	align-items: flex-start;
	gap: var(--space-2);
	font-size: var(--font-size-sm);
	color: var(--gh-text-default);
	cursor: pointer;
}

.gh-checkbox {
	width: 16px;
	height: 16px;
	margin-top: 2px;
	accent-color: var(--gh-success);
	cursor: pointer;
}

.gh-checkbox-text {
	flex: 1;
	line-height: var(--line-height-normal);
}

/* Submit Button */
.gh-btn-submit {
	width: 100%;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: var(--space-2);
	padding: 0 var(--space-4);
	font-size: var(--font-size-sm);
	font-weight: var(--font-weight-medium);
	font-family: var(--font-family);
	color: var(--gh-text-on-dark);
	background-color: var(--gh-btn-primary-bg);
	border: none;
	border-radius: var(--radius-md);
	cursor: pointer;
	transition: background-color 0.15s;
	margin-top: var(--space-4);
}

.gh-btn-submit:hover {
	background-color: var(--gh-btn-primary-hover);
}

.gh-btn-submit:active {
	transform: scale(0.98);
}

.gh-btn-submit svg {
	width: 16px;
	height: 16px;
}

/* Terms Text */
.gh-terms-text {
	font-size: var(--font-size-xs);
	color: var(--gh-text-muted);
	margin-top: var(--space-4);
	line-height: 1.6;
}

.gh-terms-text a {
	color: var(--gh-link);
	text-decoration: none;
}

.gh-terms-text a:hover {
	text-decoration: underline;
}

/* ===== Responsive Design ===== */
@media (max-width: 1024px) {
	.gh-signup-page {
		flex-direction: column;
	}

	.gh-signup-marketing {
		width: 100%;
		min-height: auto;
		padding: var(--space-8) var(--space-6);
	}

	.gh-marketing-illustration {
		display: none;
	}

	.gh-signup-form-panel {
		width: 100%;
		min-height: auto;
		padding: var(--space-6);
	}

	.gh-signup-form-container {
		max-width: 100%;
	}
}

@media (max-width: 640px) {
	.gh-signup-marketing {
		padding: var(--space-6) var(--space-4);
	}

	.gh-marketing-title {
		font-size: var(--font-size-xl);
	}

	.gh-signup-form-panel {
		padding: var(--space-4);
	}

	.gh-signup-title {
		font-size: var(--font-size-lg);
	}
}

/* ===== Accessibility ===== */
@media (prefers-reduced-motion: reduce) {
	html {
		scroll-behavior: auto;
	}

	.gh-mascot {
		animation: none;
	}

	.gh-btn-social,
	.gh-form-input,
	.gh-form-select,
	.gh-btn-submit,
	.gh-marketing-toggle svg {
		transition: none;
	}

	.gh-btn-social:active,
	.gh-btn-submit:active {
		transform: none;
	}
}

/* Focus Visible */
.gh-btn-social:focus-visible,
.gh-btn-submit:focus-visible {
	outline: 2px solid var(--gh-focus-ring);
	outline-offset: 2px;
}

/* ===== Address Search Modal ===== */
.address-modal-overlay {
	position: fixed;
	inset: 0;
	background-color: rgba(0, 0, 0, 0.5);
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 9999;
	padding: var(--space-4);
}

.address-modal-overlay.show {
	display: flex;
}

.address-modal {
	width: 100%;
	max-width: 500px;
	background-color: var(--gh-bg-default);
	border: 1px solid var(--gh-border-default);
	border-radius: var(--radius-lg);
	overflow: hidden;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.address-modal-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: var(--space-4) var(--space-5);
	border-bottom: 1px solid var(--gh-border-default);
	background-color: var(--gh-bg-subtle);
}

.address-modal-title {
	display: flex;
	align-items: center;
	gap: var(--space-2);
	font-size: var(--font-size-base);
	font-weight: var(--font-weight-semibold);
	color: var(--gh-text-default);
	margin: 0;
}

.address-modal-title svg {
	width: 20px;
	height: 20px;
	color: var(--gh-success-emphasis);
}

.address-modal-close {
	width: 32px;
	height: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	background-color: transparent;
	border: none;
	border-radius: var(--radius-md);
	color: var(--gh-text-muted);
	cursor: pointer;
	transition: background-color 0.15s, color 0.15s;
}

.address-modal-close:hover {
	background-color: var(--gh-bg-default);
	color: var(--gh-text-default);
}

.address-modal-close svg {
	width: 18px;
	height: 18px;
}

.address-modal-body {
	height: 450px;
}

/* Responsive */
@media (max-width: 640px) {
	.address-modal {
		max-width: 100%;
		margin: var(--space-4);
	}

	.address-modal-body {
		height: 400px;
	}
}


/* ============================================
   Signup Left Panel - Background Depth Enhancement
   (단색 방지용, UI 구조 변경 없음)
============================================ */

/* 1) 메인 그라데이션 톤 보강 */
.gh-signup-marketing {
	background:
		linear-gradient(180deg,
			#020b2e 0%,
			#0d1117 55%,
			#0d1117 100%);
}

/* 2) 은은한 블루 라디얼 하이라이트 */
.gh-signup-marketing::after {
	content: "";
	position: absolute;
	inset: 0;
	background:
		radial-gradient(ellipse 70% 45% at 50% 0%,
			rgba(56, 139, 253, 0.18) 0%,
			transparent 60%);
	pointer-events: none;
}

/* 3) 아주 약한 그리드 텍스처 (기존 stars 위에 얹힘) */
.gh-signup-marketing::before {
	background-image:
		linear-gradient(rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
		radial-gradient(1px 1px at 20px 30px, rgba(255, 255, 255, 0.25), transparent),
		radial-gradient(1px 1px at 120px 90px, rgba(255, 255, 255, 0.18), transparent);
	background-size:
		60px 60px,
		60px 60px,
		auto,
		auto;
}

/* =========================
   Dark Footer
========================= */
.gh-dark-footer {
	background: #010409;
	border-top: 1px solid rgba(240, 246, 252, 0.1);
	padding: 64px 24px;
}

.gh-dark-footer-inner {
	display: flex;
	justify-content: space-between;
	gap: 80px;
	max-width: 1280px;
	margin: 0 auto;
}

.gh-dark-footer-brand {
	max-width: 280px;
}

.gh-dark-footer-logo {
	display: flex;
	align-items: center;
	gap: 10px;
	color: #ffffff;
	text-decoration: none;
	font-size: 16px;
	font-weight: 600;
	margin-bottom: 16px;
}

.gh-dark-footer-logo svg {
	color: #3fb950;
}

.gh-dark-footer-copyright {
	font-size: 12px;
	color: rgba(240, 246, 252, 0.5);
	line-height: 1.6;
}

.gh-dark-footer-links {
	display: flex;
	gap: 80px;
}

.gh-dark-footer-col h4 {
	font-size: 14px;
	font-weight: 600;
	color: #ffffff;
	margin-bottom: 16px;
}

.gh-dark-footer-col ul {
	list-style: none;
	padding: 0;
	margin: 0;
}

.gh-dark-footer-col li {
	margin-bottom: 12px;
}

.gh-dark-footer-col a {
	color: rgba(240, 246, 252, 0.7);
	text-decoration: none;
	font-size: 14px;
}

.gh-dark-footer-col a:hover {
	color: #ffffff;
}

@media (max-width: 768px) {

	.gh-dark-menu,
	.gh-dark-actions {
		display: none;
	}

	.gh-dark-menu-toggle {
		display: block;
	}

	.gh-dark-footer-inner {
		flex-direction: column;
		gap: 40px;
		text-align: center;
	}

	.gh-dark-footer-links {
		justify-content: center;
		gap: 32px;
	}
}


/* ===== Footer company info ===== */
.gh-dark-footer-company-info {
	margin-top: 16px;
	font-size: 16px;
	line-height: 1.6;
	color: #b5b5b5;

	word-break: keep-all;
	overflow-wrap: break-word;

	text-align: left;
}

.gh-dark-footer-company-info p {
	margin: 0 0 6px;
}

/* 로고 + 회사정보 왼쪽 정렬 고정 */
.gh-dark-footer-brand {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	text-align: left;

	/* 🔥 핵심: PC에서 폭 확보 */
	max-width: 520px;
}

/* ===== Footer menu text size ===== */
.gh-dark-footer-col h4 {
	font-size: 16px;
	font-weight: 600;
}

.gh-dark-footer-col a {
	font-size: 15px;
}

/* ===== PC에서 footer 전체 정렬 안정화 ===== */
@media (min-width: 1024px) {
	.gh-dark-footer-inner {
		align-items: flex-start;
	}

	.gh-dark-footer-company-info p {
		white-space: normal;
		/* PC에서는 자연 줄바꿈 */
	}
}

/* ===== Mobile footer text resize ===== */
@media (max-width: 768px) {
	.gh-dark-footer-company-info {
		font-size: 14px;
		line-height: 1.45;
	}

	.gh-dark-footer-company-info p {
		margin-bottom: 4px;
	}
}

/* ===== Nav ===== */
.gh-dark-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	max-width: 1280px;
	margin: 0 auto;
	padding: 16px 24px;
}

/* ===== Logo (🔥 핵심) ===== */
.gh-dark-logo {
	display: flex;
	align-items: center;
	gap: 10px;

	color: #ffffff;
	/* 🔥 텍스트 + SVG 흰색 */
	text-decoration: none;
	font-size: 18px;
	font-weight: 600;

	transition: opacity 0.2s ease;
}

.gh-dark-logo:hover {
	opacity: 0.9;
	text-decoration: none;
}

/* SVG는 currentColor 그대로 사용 */
.gh-dark-logo svg {
	width: 32px;
	height: 32px;
	stroke: currentColor;
	fill: none;
}