@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Noto+Sans+KR:wght@400;500;700;800&display=swap');

* {
	box-sizing: border-box;
}

:root {
	--auth-font: "Inter", "Noto Sans KR", "Pretendard", system-ui, sans-serif;
	--auth-bg-top: #08111d;
	--auth-bg-bottom: #040910;
	--auth-surface: rgba(8, 18, 31, 0.82);
	--auth-surface-strong: rgba(10, 21, 37, 0.94);
	--auth-border: rgba(128, 183, 234, 0.14);
	--auth-border-strong: rgba(132, 193, 248, 0.28);
	--auth-text: #ecf4fc;
	--auth-muted: rgba(216, 228, 243, 0.72);
	--auth-primary: #17a1ff;
	--auth-accent: #46d3e7;
	--auth-shadow: 0 28px 60px rgba(0, 0, 0, 0.34);
}

html,
body {
	min-height: 100%;
}

body.auth-page {
	margin: 0;
	min-height: 100vh;
	font-family: var(--auth-font);
	color: var(--auth-text);
	background:
		radial-gradient(circle at top left, rgba(19, 110, 184, 0.24), transparent 30%),
		radial-gradient(circle at 85% 15%, rgba(36, 198, 215, 0.14), transparent 22%),
		linear-gradient(180deg, var(--auth-bg-top) 0%, #07101c 44%, var(--auth-bg-bottom) 100%);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px 20px;
	position: relative;
	overflow-x: hidden;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

body.auth-page::before {
	content: "";
	position: fixed;
	inset: 0;
	background: radial-gradient(circle at 1px 1px, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
	background-size: 24px 24px;
	pointer-events: none;
	opacity: 0.55;
}

body.auth-page::after {
	content: "";
	position: fixed;
	inset: auto -10% -18% auto;
	width: 420px;
	height: 420px;
	background: radial-gradient(circle, rgba(23, 161, 255, 0.18), transparent 65%);
	filter: blur(14px);
	pointer-events: none;
}

.auth-shell {
	position: relative;
	z-index: 1;
	width: min(1120px, 100%);
	display: grid;
	grid-template-columns: minmax(280px, 0.9fr) minmax(340px, 0.8fr);
	background: linear-gradient(180deg, rgba(6, 14, 24, 0.76), rgba(5, 11, 19, 0.92));
	border: 1px solid var(--auth-border);
	border-radius: 32px;
	overflow: hidden;
	box-shadow: var(--auth-shadow);
	backdrop-filter: blur(18px);
}

.auth-shell.auth-register-shell {
	grid-template-columns: minmax(280px, 0.78fr) minmax(420px, 1fr);
	width: min(1220px, 100%);
}

.auth-brand-panel,
.auth-card {
	position: relative;
	padding: clamp(32px, 4vw, 52px);
}

.auth-brand-panel {
	background:
		linear-gradient(160deg, rgba(7, 18, 31, 0.92), rgba(5, 14, 24, 0.86)),
		url('/images/home-hero@1x.png') center/cover no-repeat;
	border-right: 1px solid rgba(124, 180, 232, 0.12);
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	gap: 28px;
}

.auth-brand-panel::before {
	content: "";
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, rgba(4, 12, 22, 0.48), rgba(4, 10, 18, 0.82));
	pointer-events: none;
}

.auth-brand-panel > * {
	position: relative;
	z-index: 1;
}

.login-brand-panel {
	align-items: stretch;
	justify-content: space-between;
	padding: clamp(28px, 4vw, 48px);
}

.auth-brand-visual {
	display: flex;
	align-items: center;
	justify-content: center;
	width: min(100%, 420px);
	margin: 0 auto;
}

.auth-brand-visual img {
	width: min(100%, 300px);
	height: auto;
	object-fit: contain;
	filter: drop-shadow(0 18px 32px rgba(0, 0, 0, 0.34));
}

.auth-brand-title {
	margin: 0 0 12px;
	font-size: clamp(32px, 3vw, 46px);
	line-height: 1.08;
	letter-spacing: -0.04em;
	font-weight: 800;
}

.auth-brand-copy {
	max-width: 430px;
	color: var(--auth-muted);
	font-size: 15px;
	line-height: 1.8;
}

.auth-feature-list {
	display: grid;
	gap: 12px;
	margin-top: 24px;
}

.auth-feature {
	display: flex;
	align-items: center;
	gap: 12px;
	color: rgba(236, 244, 252, 0.88);
	font-size: 14px;
}

.auth-feature::before {
	content: "";
	width: 10px;
	height: 10px;
	border-radius: 50%;
	background: linear-gradient(135deg, var(--auth-primary), var(--auth-accent));
	box-shadow: 0 0 16px rgba(70, 211, 231, 0.45);
	flex: 0 0 auto;
}

.auth-market-card {
	padding: 18px 20px;
	border-radius: 22px;
	border: 1px solid rgba(130, 193, 249, 0.14);
	background: linear-gradient(180deg, rgba(8, 20, 35, 0.78), rgba(7, 15, 27, 0.52));
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
	max-width: 420px;
}

.auth-market-label {
	font-size: 12px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: rgba(211, 227, 245, 0.62);
}

.auth-market-value {
	margin-top: 8px;
	font-size: 30px;
	font-weight: 800;
	letter-spacing: -0.04em;
}

.auth-market-meta {
	margin-top: 6px;
	color: #76f3bf;
	font-size: 14px;
	font-weight: 600;
}

.auth-card {
	background: linear-gradient(180deg, rgba(8, 18, 31, 0.9), rgba(7, 15, 27, 0.96));
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 22px;
}

.auth-card-header {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 14px;
}

.auth-title {
	margin: 0;
	font-size: clamp(28px, 2.2vw, 38px);
	line-height: 1.1;
	letter-spacing: -0.04em;
	font-weight: 800;
	color: #f4f8fd;
}

.auth-subtitle {
	margin: 0;
	color: var(--auth-muted);
	font-size: 14px;
	line-height: 1.7;
}

.auth-form {
	display: grid;
	gap: 14px;
	width: 100%;
}

.auth-form-grid {
	grid-template-columns: repeat(2, minmax(0, 1fr));
	column-gap: 14px;
	row-gap: 14px;
}

.auth-field,
.auth-select,
.auth-action,
.auth-link-button {
	width: 100%;
	min-width: 0;
}

.auth-field,
.auth-select {
	height: 54px;
	border-radius: 16px;
	border: 1px solid var(--auth-border);
	background: rgba(6, 15, 26, 0.82);
	color: var(--auth-text);
	padding: 0 18px;
	font-size: 15px;
	outline: none;
	transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
}

.auth-field::placeholder {
	color: rgba(197, 213, 230, 0.44);
}

.auth-field:focus,
.auth-select:focus {
	border-color: var(--auth-border-strong);
	box-shadow: 0 0 0 4px rgba(23, 161, 255, 0.12);
	background: rgba(8, 19, 33, 0.94);
}

.auth-select {
	appearance: none;
	-webkit-appearance: none;
	-moz-appearance: none;
	background-image:
		linear-gradient(45deg, transparent 50%, rgba(230, 241, 251, 0.78) 50%),
		linear-gradient(135deg, rgba(230, 241, 251, 0.78) 50%, transparent 50%);
	background-position: calc(100% - 22px) calc(50% - 3px), calc(100% - 16px) calc(50% - 3px);
	background-size: 6px 6px, 6px 6px;
	background-repeat: no-repeat;
	padding-right: 42px;
}

.auth-form-grid .auth-action,
.auth-form-grid .auth-link-row,
.auth-form-grid .auth-status {
	grid-column: 1 / -1;
}

.auth-action,
.auth-link-button {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	height: 56px;
	border-radius: 16px;
	font-weight: 700;
	font-size: 15px;
	text-decoration: none;
	cursor: pointer;
	transition: transform 0.18s ease, box-shadow 0.18s ease, background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.auth-action {
	border: none;
	background: linear-gradient(135deg, var(--auth-primary), var(--auth-accent));
	color: #03111d;
	box-shadow: 0 16px 30px rgba(23, 161, 255, 0.28);
}

.auth-action:hover,
.auth-link-button:hover {
	transform: translateY(-1px);
}

.auth-link-row {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 12px;
	width: 100%;
}

.auth-link-button {
	border: 1px solid rgba(126, 198, 250, 0.16);
	background: rgba(8, 18, 31, 0.62);
	color: #edf5fd;
	box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.auth-link-button.auth-secondary {
	background: rgba(5, 12, 21, 0.9);
	color: rgba(236, 244, 252, 0.72);
	border-color: rgba(255, 255, 255, 0.06);
}

.auth-status {
	min-height: 22px;
	font-size: 14px;
	color: #ff7986;
	text-align: center;
	padding-top: 2px;
}

@media (max-width: 980px) {
	.auth-shell,
	.auth-shell.auth-register-shell {
		grid-template-columns: 1fr;
		width: min(720px, 100%);
	}

	.auth-brand-panel {
		min-height: 320px;
		border-right: 0;
		border-bottom: 1px solid rgba(124, 180, 232, 0.12);
	}

	.auth-brand-visual {
		width: min(100%, 320px);
	}
}

@media (max-width: 680px) {
	body.auth-page {
		padding: 18px 12px;
	}

	.auth-brand-panel,
	.auth-card {
		padding: 28px 20px;
	}

	.auth-form-grid,
	.auth-link-row {
		grid-template-columns: 1fr;
	}

	.auth-title {
		font-size: 28px;
	}

	.auth-brand-title {
		font-size: 30px;
	}

	.auth-brand-visual {
		width: min(100%, 240px);
	}

	.auth-brand-visual img {
		width: min(100%, 180px);
	}

	.auth-field,
	.auth-select,
	.auth-action,
	.auth-link-button {
		height: 52px;
		border-radius: 14px;
	}
}