@charset "UTF-8";

:root {
	--bg-start: #040816;
	--bg-end: #0b1224;
	--panel: rgba(14, 22, 40, 0.62);
	--panel-border: rgba(255, 235, 214, 0.18);
	--text-main: #f1e3d5;
	--text-sub: rgba(241, 227, 213, 0.72);
	--text-muted: rgba(241, 227, 213, 0.52);
	--shadow: 0 24px 80px rgba(0, 0, 0, 0.45);
	--font-display: "MaruBuri", "Chosunilbo_myungjo", "Nanum Myeongjo", "Noto Serif KR", "Batang", serif;
}

* {
	box-sizing: border-box;
}

html,
body {
	min-height: 100%;
	margin: 0;
}

body {
	background:
		radial-gradient(circle at 25% 20%, rgba(40, 58, 95, 0.34), transparent 28%),
		radial-gradient(circle at 70% 78%, rgba(219, 157, 106, 0.14), transparent 18%),
		linear-gradient(180deg, var(--bg-start) 0%, var(--bg-end) 100%);
	color: var(--text-main);
	font-family: "Pretendard Variable", "Pretendard", "SUIT Variable", "Noto Sans KR", "Malgun Gothic", sans-serif;
	overflow-x: hidden;
	overflow-y: auto;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	background-image:
		radial-gradient(circle at 12% 14%, rgba(255, 255, 255, 0.95) 0 1px, transparent 2px),
		radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.55) 0 1px, transparent 2px),
		radial-gradient(circle at 88% 38%, rgba(255, 255, 255, 0.75) 0 1px, transparent 2px),
		radial-gradient(circle at 18% 72%, rgba(255, 255, 255, 0.5) 0 1px, transparent 2px),
		radial-gradient(circle at 82% 84%, rgba(255, 255, 255, 0.55) 0 1px, transparent 2px);
	pointer-events: none;
}

.page-shell {
	position: relative;
	min-height: 100vh;
	min-height: 100svh;
	overflow: hidden;
	padding: 24px 22px 34px;
}

.page-shell::before,
.page-shell::after {
	content: "";
	position: absolute;
	inset: 0;
	pointer-events: none;
}

.page-shell::before {
	z-index: 1;
	background:
		radial-gradient(circle at 18% 22%, rgba(255, 248, 238, 0.95) 0 1px, transparent 2px),
		radial-gradient(circle at 26% 34%, rgba(255, 248, 238, 0.5) 0 1px, transparent 2px),
		radial-gradient(circle at 34% 18%, rgba(255, 248, 238, 0.45) 0 1px, transparent 2px),
		radial-gradient(circle at 43% 29%, rgba(255, 248, 238, 0.68) 0 1px, transparent 2px),
		radial-gradient(circle at 58% 12%, rgba(255, 248, 238, 0.42) 0 1px, transparent 2px),
		radial-gradient(circle at 72% 26%, rgba(255, 248, 238, 0.54) 0 1px, transparent 2px),
		radial-gradient(circle at 78% 48%, rgba(255, 248, 238, 0.38) 0 1px, transparent 2px),
		radial-gradient(circle at 86% 18%, rgba(255, 248, 238, 0.82) 0 1px, transparent 2px),
		radial-gradient(circle at 82% 66%, rgba(255, 248, 238, 0.55) 0 1px, transparent 2px);
	opacity: 0.9;
}

.page-shell::after {
	z-index: 1;
	background:
		radial-gradient(circle at 18% 18%, rgba(72, 92, 138, 0.18), transparent 24%),
		radial-gradient(circle at 74% 34%, rgba(246, 197, 146, 0.12), transparent 18%),
		radial-gradient(circle at 62% 72%, rgba(97, 92, 142, 0.12), transparent 16%);
	filter: blur(10px);
}

.top-bar {
	position: relative;
	z-index: 4;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	font-size: 1rem;
	letter-spacing: 0;
}

.auth-nav {
	display: flex;
	align-items: center;
	justify-content: flex-end;
}

.join-link {
	color: var(--text-main);
	text-decoration: none;
	font-size: 0.98rem;
}

.hero {
	position: relative;
	z-index: 3;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: calc(100vh - 80px);
	padding-top: 34px;
}

.hero-copy {
	position: relative;
	z-index: 8;
	max-width: 388px;
	padding-right: 24px;
}

.hero-copy::before {
	content: "";
	position: absolute;
	inset: -28px -56px -36px -24px;
	background: linear-gradient(90deg, rgba(4, 8, 22, 0.96) 0%, rgba(4, 8, 22, 0.88) 68%, rgba(4, 8, 22, 0) 100%);
	filter: blur(12px);
	pointer-events: none;
	z-index: -1;
}

.brand-mark {
	margin-bottom: 62px;
}

.brand-kor {
	font-size: clamp(3.6rem, 9vw, 5rem);
	line-height: 0.95;
	font-weight: 500;
	font-family: var(--font-display);
}

.brand-kor::after {
	content: "\2726";
	display: inline-block;
	margin-left: 8px;
	font-size: 1.25rem;
	vertical-align: top;
	color: #ffe6c9;
}

.brand-eng {
	margin-top: 12px;
	font-size: 1.35rem;
	letter-spacing: 0.34rem;
	font-family: "Cormorant Garamond", "Times New Roman", serif;
}

.hero h1 {
	margin: 0;
	font-size: clamp(2.08rem, 6.3vw, 3.5rem);
	line-height: 1.3;
	font-weight: 500;
	font-family: var(--font-display);
}

.hero p {
	margin: 22px 0 0;
	color: var(--text-sub);
	font-size: clamp(0.94rem, 3.5vw, 1.28rem);
	line-height: 1.72;
	font-family: "Pretendard Variable", "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

.login-panel {
	position: relative;
	z-index: 4;
	padding-top: 56px;
}

.login-panel::before {
	content: "";
	position: absolute;
	right: -32%;
	bottom: -34%;
	width: 115%;
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	background:
		radial-gradient(circle at 36% 28%, rgba(252, 208, 154, 0.9), rgba(251, 201, 140, 0.18) 18%, transparent 34%),
		radial-gradient(circle at 50% 50%, rgba(14, 18, 33, 0.42), rgba(7, 10, 20, 0.94) 60%);
	box-shadow: inset -20px -20px 70px rgba(0, 0, 0, 0.62);
}

.login-form {
	position: relative;
	z-index: 2;
	display: grid;
	gap: 16px;
}

.form-alert {
	position: relative;
	z-index: 2;
	margin: 0 0 14px;
	padding: 12px 14px;
	border: 1px solid rgba(255, 194, 164, 0.26);
	border-radius: 14px;
	background: rgba(74, 28, 28, 0.34);
	color: rgba(255, 231, 220, 0.9);
	font-family: "Pretendard Variable", "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
	font-size: 0.9rem;
}

.success-alert {
	border-color: rgba(184, 226, 201, 0.28);
	background: rgba(24, 62, 48, 0.3);
	color: rgba(225, 248, 234, 0.92);
}

.field {
	display: grid;
	grid-template-columns: 28px 1fr 40px;
	align-items: center;
	gap: 14px;
	min-height: 78px;
	padding: 0 18px;
	background: var(--panel);
	border: 1px solid var(--panel-border);
	border-radius: 18px;
	backdrop-filter: blur(14px);
	box-shadow: var(--shadow);
}

.field input {
	width: 100%;
	border: 0;
	outline: 0;
	background: transparent;
	color: var(--text-main);
	font-size: 1.08rem;
	font-family: "Pretendard Variable", "Pretendard", "SUIT Variable", "Noto Sans KR", "Malgun Gothic", sans-serif;
}

.field input::placeholder {
	color: var(--text-muted);
}

.login-meta {
	display: flex;
	align-items: center;
	justify-content: flex-end;
	gap: 16px;
	color: var(--text-muted);
	font-family: "Pretendard Variable", "Pretendard", "Noto Sans KR", "Malgun Gothic", sans-serif;
	font-size: 0.9rem;
}

.remember-option {
	display: inline-flex;
	align-items: center;
	gap: 8px;
}

.remember-option input {
	width: 16px;
	height: 16px;
	accent-color: #f1e3d5;
}

.login-meta a {
	color: var(--text-sub);
	text-decoration: none;
}

.register-page .hero {
	max-width: 1180px;
	margin: 0 auto;
}

.register-hero {
	display: grid;
	grid-template-columns: minmax(0, 0.9fr) minmax(320px, 0.72fr);
	align-items: center;
	gap: 48px;
	min-height: calc(100vh - 96px);
}

.compact-brand {
	margin-bottom: 46px;
}

.register-panel {
	padding-top: 0;
}

.register-panel::before {
	right: -42%;
	bottom: -42%;
	width: 120%;
	opacity: 0.58;
}

.field-icon,
.field-action,
.arrow-icon {
	display: inline-block;
	position: relative;
	width: 24px;
	height: 24px;
}

.field-action {
	border: 0;
	padding: 0;
	background: transparent;
	cursor: pointer;
	border-radius: 999px;
	transition: background 0.2s ease, border-color 0.2s ease;
}

.password-toggle {
	width: 38px;
	height: 22px;
	justify-self: end;
}

.field-action:hover {
	background: rgba(255, 231, 201, 0.06);
}

.field-action:focus-visible {
	outline: 1px solid rgba(255, 231, 201, 0.9);
	outline-offset: 4px;
	border-radius: 999px;
}

.password-toggle[aria-pressed="true"] {
	background: rgba(241, 194, 141, 0.28);
	border-color: rgba(255, 229, 197, 0.62);
}

.user-icon::before,
.user-icon::after,
.lock-icon::before,
.lock-icon::after,
.eye-icon::before,
.eye-icon::after,
.arrow-icon::before,
.arrow-icon::after {
	content: "";
	position: absolute;
}

.user-icon::before {
	top: 1px;
	left: 6px;
	width: 12px;
	height: 12px;
	border: 2px solid rgba(255, 245, 231, 0.85);
	border-radius: 50%;
}

.user-icon::after {
	left: 2px;
	bottom: 1px;
	width: 20px;
	height: 10px;
	border: 2px solid rgba(255, 245, 231, 0.85);
	border-top-left-radius: 18px;
	border-top-right-radius: 18px;
	border-bottom: 0;
}

.lock-icon::before {
	left: 4px;
	top: 0;
	width: 14px;
	height: 12px;
	border: 2px solid rgba(255, 245, 231, 0.85);
	border-bottom: 0;
	border-top-left-radius: 12px;
	border-top-right-radius: 12px;
}

.lock-icon::after {
	left: 3px;
	bottom: 1px;
	width: 18px;
	height: 14px;
	border: 2px solid rgba(255, 245, 231, 0.85);
	border-radius: 4px;
}

.eye-icon::before {
	inset: 1px;
	border: 1px solid rgba(255, 245, 231, 0.34);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.06);
	transition: background 0.2s ease, border-color 0.2s ease;
}

.eye-icon::after {
	left: 5px;
	top: 50%;
	width: 8px;
	height: 8px;
	background: rgba(255, 245, 231, 0.76);
	border-radius: 50%;
	transform: translateY(-50%);
	transition: transform 0.22s ease, background 0.2s ease;
}

.password-toggle[aria-pressed="true"]::before {
	border-color: rgba(255, 229, 197, 0.62);
	background: rgba(241, 194, 141, 0.28);
}

.password-toggle[aria-pressed="true"]::after {
	background: rgba(255, 239, 216, 0.98);
	transform: translate(18px, -50%);
}

.login-button {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 86px;
	margin-top: 6px;
	padding: 0 24px;
	border: 1px solid rgba(253, 226, 192, 0.78);
	border-radius: 20px;
	background: rgba(14, 20, 34, 0.64);
	color: var(--text-main);
	font-size: 1.65rem;
	font-family: "Pretendard Variable", "Pretendard", "SUIT Variable", "Noto Sans KR", "Malgun Gothic", sans-serif;
	font-weight: 500;
	box-shadow: var(--shadow);
	cursor: pointer;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.login-button .arrow-icon {
	display: none;
}

.login-button:hover {
	transform: translateY(-2px);
	border-color: rgba(255, 231, 201, 0.95);
	box-shadow: 0 28px 88px rgba(0, 0, 0, 0.52);
}

.arrow-icon::before {
	right: 2px;
	top: 10px;
	width: 18px;
	height: 2px;
	background: rgba(255, 245, 231, 0.92);
}

.arrow-icon::after {
	right: 2px;
	top: 6px;
	width: 10px;
	height: 10px;
	border-top: 2px solid rgba(255, 245, 231, 0.92);
	border-right: 2px solid rgba(255, 245, 231, 0.92);
	transform: rotate(45deg);
}

.orbit {
	position: absolute;
	z-index: 1;
	border: 1px solid rgba(247, 213, 177, 0.26);
	border-radius: 50%;
	pointer-events: none;
}

.orbit-large {
	top: 14%;
	right: -31%;
	width: clamp(680px, 72vw, 980px);
	height: clamp(680px, 72vw, 980px);
	border-color: rgba(247, 213, 177, 0.34);
	box-shadow: 0 0 0 1px rgba(255, 233, 210, 0.03);
}

.orbit-small {
	z-index: 6;
	top: clamp(168px, 27vh, 300px);
	right: clamp(86px, 17vw, 240px);
	width: 12px;
	height: 12px;
	background: radial-gradient(circle, #fffdf8 0%, #ffe8cb 35%, rgba(255, 202, 148, 0.28) 100%);
	box-shadow:
		0 0 0 3px rgba(255, 214, 170, 0.1),
		0 0 18px rgba(255, 211, 160, 0.8);
}

.orbit-small::before,
.orbit-small::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	background: rgba(255, 245, 231, 0.92);
	transform: translate(-50%, -50%);
}

.orbit-small::before {
	width: 22px;
	height: 1px;
}

.orbit-small::after {
	width: 1px;
	height: 22px;
}

.planet-horizon {
	position: absolute;
	z-index: 1;
	right: -14%;
	bottom: -42%;
	width: min(68vw, 760px);
	aspect-ratio: 1 / 1;
	border-radius: 50%;
	border: 1px solid rgba(255, 230, 199, 0.18);
	background:
		radial-gradient(circle at 78% 20%, rgba(230, 226, 218, 0.44) 0 2px, rgba(38, 39, 47, 0.28) 3px, transparent 7px),
		radial-gradient(circle at 86% 34%, rgba(236, 231, 222, 0.34) 0 1px, rgba(26, 28, 35, 0.34) 3px, transparent 8px),
		radial-gradient(circle at 74% 52%, rgba(224, 219, 210, 0.32) 0 2px, rgba(25, 26, 33, 0.38) 4px, transparent 10px),
		radial-gradient(circle at 91% 62%, rgba(241, 236, 226, 0.28) 0 2px, rgba(18, 19, 26, 0.34) 4px, transparent 11px),
		radial-gradient(circle at 68% 70%, rgba(215, 209, 198, 0.22) 0 1px, rgba(18, 19, 26, 0.26) 3px, transparent 7px),
		radial-gradient(ellipse at 84% 43%, rgba(231, 226, 215, 0.28), rgba(91, 88, 88, 0.22) 18%, transparent 42%),
		radial-gradient(circle at 24% 72%, rgba(0, 0, 0, 0.7), transparent 38%),
		radial-gradient(circle at 42% 36%, rgba(91, 88, 86, 0.26), rgba(45, 45, 53, 0.36) 20%, transparent 42%),
		linear-gradient(150deg, #4a4a53 0%, #31323d 24%, #1d2233 52%, #050914 100%);
	box-shadow:
		-34px -24px 96px rgba(239, 188, 128, 0.12),
		10px -12px 0 -9px rgba(255, 242, 224, 0.88),
		16px -18px 28px rgba(255, 226, 191, 0.12),
		inset 0 34px 78px rgba(255, 255, 255, 0.045),
		inset 42px -58px 100px rgba(0, 0, 0, 0.5),
		inset -58px -76px 120px rgba(0, 0, 0, 0.78),
		inset 12px 18px 52px rgba(210, 184, 154, 0.06);
	pointer-events: none;
}

.planet-horizon::before {
	content: "";
	position: absolute;
	left: 3%;
	right: 18%;
	top: 13%;
	height: 18%;
	background:
		radial-gradient(ellipse at 36% 14%, rgba(255, 246, 233, 0.95), rgba(255, 218, 178, 0.46) 18%, rgba(255, 218, 178, 0.12) 42%, transparent 70%);
	border-radius: 50%;
	box-shadow:
		0 -8px 28px rgba(255, 229, 202, 0.24),
		0 12px 42px rgba(255, 184, 116, 0.2);
	filter: blur(1.5px);
	opacity: 0.92;
	transform: rotate(-12deg);
}

.planet-horizon::after {
	content: "";
	position: absolute;
	inset: 10% 8% auto 8%;
	height: 64%;
	background:
		linear-gradient(92deg, transparent 0%, transparent 62%, rgba(255, 255, 255, 0.045) 64%, transparent 66%, rgba(0, 0, 0, 0.08) 68%, transparent 71%),
		radial-gradient(circle at 78% 18%, rgba(255, 255, 255, 0.11) 0 1px, transparent 3px),
		radial-gradient(circle at 86% 44%, rgba(255, 255, 255, 0.08) 0 1px, transparent 4px),
		radial-gradient(circle at 72% 62%, rgba(0, 0, 0, 0.2) 0 6px, transparent 17px);
	opacity: 0.72;
	filter: blur(0.2px);
}

.space-glow {
	position: absolute;
	z-index: 1;
	border-radius: 50%;
	filter: blur(16px);
	opacity: 0.72;
	pointer-events: none;
}

.glow-top {
	top: 13%;
	left: 16%;
	width: 16px;
	height: 16px;
	background: #fce1bc;
	box-shadow:
		0 0 0 5px rgba(252, 225, 188, 0.06),
		0 0 22px rgba(252, 225, 188, 0.84);
}

.glow-bottom {
	right: 16%;
	bottom: 24%;
	width: 180px;
	height: 180px;
	background: radial-gradient(circle, rgba(248, 198, 145, 0.38), transparent 72%);
}

.star {
	position: absolute;
	z-index: 1;
	border-radius: 50%;
	background: #fff4e2;
	box-shadow: 0 0 18px rgba(255, 223, 179, 0.86);
}

.star-primary {
	top: 21%;
	right: 18%;
	width: 10px;
	height: 10px;
}

.star-primary::before,
.star-primary::after,
.star-secondary::before,
.star-secondary::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	background: rgba(255, 243, 228, 0.9);
	transform: translate(-50%, -50%);
}

.star-primary::before {
	width: 20px;
	height: 1px;
}

.star-primary::after {
	width: 1px;
	height: 20px;
}

.star-secondary {
	top: 16%;
	left: 64%;
	width: 5px;
	height: 5px;
	opacity: 0.8;
	box-shadow: 0 0 14px rgba(255, 229, 198, 0.65);
}

.star-secondary::before {
	width: 12px;
	height: 1px;
}

.star-secondary::after {
	width: 1px;
	height: 12px;
}

@media (min-width: 900px) {
	.page-shell {
		padding: 24px 48px 42px;
	}

	.hero {
		max-width: 1320px;
		margin: 0 auto;
		padding-top: 46px;
	}

	.hero-copy {
		max-width: 680px;
		padding-right: 78px;
	}

	.hero h1 {
		white-space: nowrap;
	}

	.login-form {
		grid-template-columns: minmax(0, 760px) clamp(136px, 12vw, 164px);
		grid-template-rows: auto auto auto;
		align-items: stretch;
		max-width: 940px;
	}

	.login-panel .form-alert {
		box-sizing: border-box;
		max-width: 940px;
	}

	.login-form .field {
		grid-column: 1;
	}

	.login-form .login-meta {
		grid-column: 1 / -1;
		grid-row: 3;
		max-width: 760px;
	}

	.login-form .login-button {
		grid-column: 2;
		grid-row: 1 / 3;
		align-self: stretch;
		min-height: 0;
		margin-top: 0;
		padding: 0 20px;
		justify-content: center;
		font-size: 1.18rem;
		border-radius: 18px;
	}

	.login-panel::before {
		right: -8%;
		bottom: -50%;
		width: 74%;
	}
}

@media (max-width: 640px) {
	.page-shell {
		padding: 18px 20px 22px;
	}

	.hero {
		min-height: calc(100svh - 58px);
		padding-top: 22px;
		justify-content: flex-start;
		gap: clamp(48px, 8svh, 76px);
	}

	.hero-copy {
		max-width: 330px;
		padding-left: 8px;
		padding-right: 10px;
	}

	.hero-copy::before {
		inset: -20px -18px -28px -14px;
		background: linear-gradient(90deg, rgba(4, 8, 22, 0.98) 0%, rgba(4, 8, 22, 0.9) 82%, rgba(4, 8, 22, 0.22) 100%);
	}

	.brand-mark {
		margin-bottom: 34px;
	}

	.brand-kor {
		font-size: 3.02rem;
	}

	.brand-eng {
		font-size: 0.88rem;
		letter-spacing: 0.2rem;
	}

	.hero h1 {
		font-size: 1.6rem;
		line-height: 1.38;
	}

	.hero p {
		margin-top: 18px;
		font-size: 0.86rem;
		line-height: 1.74;
	}

	.login-panel {
		padding-top: 0;
		transform: translateY(-14px);
	}

	.login-panel::before {
		display: none;
	}

	.login-form {
		gap: 11px;
	}

	.register-hero {
		display: flex;
		flex-direction: column;
		align-items: stretch;
		gap: 32px;
		min-height: calc(100svh - 58px);
	}

	.register-panel {
		padding-top: 0;
	}

	.field {
		grid-template-columns: 22px 1fr 38px;
		gap: 12px;
		min-height: 54px;
		padding: 0 14px;
		border-radius: 15px;
		background: rgba(13, 20, 38, 0.68);
		border-color: rgba(237, 225, 211, 0.2);
		box-shadow: 0 16px 46px rgba(0, 0, 0, 0.28);
	}

	.field input {
		font-size: 0.9rem;
	}

	.login-meta {
		font-size: 0.82rem;
		gap: 12px;
	}

	.remember-option input {
		width: 14px;
		height: 14px;
	}

	.login-button {
		min-height: 54px;
		margin-top: 2px;
		padding: 0 18px;
		border-radius: 16px;
		font-size: 0.98rem;
		background: rgba(14, 20, 34, 0.64);
		color: var(--text-main);
	}

	.arrow-icon::before {
		background: rgba(255, 245, 231, 0.92);
	}

	.arrow-icon::after {
		border-color: rgba(255, 245, 231, 0.92);
	}

	.orbit-large {
		top: 21%;
		right: -86%;
		width: 152%;
		height: 68%;
		border-color: rgba(247, 213, 177, 0.26);
	}

	.orbit-small {
		top: 28%;
		right: 26%;
		width: 8px;
		height: 8px;
		box-shadow: 0 0 14px rgba(255, 211, 160, 0.74);
	}

	.orbit-small::before {
		width: 18px;
	}

	.orbit-small::after {
		height: 18px;
	}

	.planet-horizon {
		right: -45%;
		bottom: 12%;
		width: 86vw;
		aspect-ratio: 1 / 1;
	}

	.star-primary {
		display: none;
	}

	.star-secondary {
		display: none;
	}

	.glow-bottom {
		right: 24%;
		bottom: 26%;
		width: 150px;
		height: 150px;
		opacity: 0.56;
	}
}

/* Astronomical blueprint login redesign */
:root {
	--bg-start: #05070a;
	--bg-end: #070b11;
	--panel: rgba(255, 255, 255, 0.045);
	--panel-border: rgba(255, 255, 255, 0.08);
	--text-main: #e8d5b5;
	--text-sub: rgba(192, 192, 192, 0.74);
	--text-muted: rgba(192, 192, 192, 0.5);
	--slate: #708090;
	--moss: #a7b59b;
	--rose: #c79a91;
	--copper: #c6a17a;
	--shadow: 0 4px 20px rgba(0, 0, 0, 0.48);
	--mono-font: "JetBrains Mono", "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
}

html {
	background: #05070a;
}

body {
	background:
		radial-gradient(ellipse at 20% 14%, rgba(112, 128, 144, 0.2), transparent 32%),
		radial-gradient(ellipse at 78% 34%, rgba(198, 161, 122, 0.1), transparent 30%),
		radial-gradient(ellipse at 64% 82%, rgba(167, 181, 155, 0.11), transparent 30%),
		radial-gradient(ellipse at 28% 92%, rgba(199, 154, 145, 0.08), transparent 26%),
		linear-gradient(180deg, #05070a 0%, #070b11 100%);
	background-size: auto;
	color: var(--text-main);
	letter-spacing: 0;
}

body::before {
	content: "";
	position: fixed;
	inset: 0;
	z-index: 0;
	background-image:
		radial-gradient(circle at 12% 14%, rgba(232, 213, 181, 0.32) 0 0.55px, transparent 1.4px),
		radial-gradient(circle at 20% 31%, rgba(192, 192, 192, 0.12) 0 0.5px, transparent 1.3px),
		radial-gradient(circle at 42% 22%, rgba(163, 177, 198, 0.2) 0 0.5px, transparent 1.3px),
		radial-gradient(circle at 56% 44%, rgba(232, 213, 181, 0.16) 0 0.48px, transparent 1.3px),
		radial-gradient(circle at 78% 18%, rgba(167, 181, 155, 0.18) 0 0.55px, transparent 1.4px),
		radial-gradient(circle at 88% 62%, rgba(199, 154, 145, 0.18) 0 0.5px, transparent 1.3px),
		radial-gradient(circle at 74% 86%, rgba(163, 177, 198, 0.14) 0 0.5px, transparent 1.3px);
	background-size: auto;
	opacity: 0.56;
	pointer-events: none;
}

.page-shell {
	z-index: 1;
	background:
		linear-gradient(155deg, rgba(163, 177, 198, 0.04), transparent 38%),
		radial-gradient(ellipse at 12% 22%, rgba(163, 177, 198, 0.08), transparent 24%),
		radial-gradient(ellipse at 92% 84%, rgba(232, 213, 181, 0.075), transparent 24%);
}

.page-shell::before {
	z-index: 1;
	inset: 16px;
	border: 0;
	background:
		radial-gradient(ellipse at 70% 38%, rgba(232, 213, 181, 0.075), transparent 24%),
		radial-gradient(ellipse at 22% 78%, rgba(112, 128, 144, 0.08), transparent 26%),
		linear-gradient(180deg, transparent 62%, rgba(232, 213, 181, 0.035) 100%);
}

.page-shell::after {
	display: none;
	content: "";
}

.top-bar::before {
	display: none;
	content: "";
}

.hero,
.top-bar,
.login-panel,
.register-hero {
	position: relative;
	z-index: 3;
}

.hero-copy::before {
	display: none;
	content: "";
}

.brand-kor,
.hero h1 {
	color: rgba(232, 213, 181, 0.98);
	text-shadow: none;
}

.brand-kor::after {
	color: rgba(232, 213, 181, 0.86);
	text-shadow: none;
}

.brand-eng {
	color: rgba(232, 213, 181, 0.82);
	font-family: var(--mono-font);
	font-size: 0.92rem;
	letter-spacing: 0.18em;
}

.hero p,
.login-meta,
.form-alert {
	color: var(--text-sub);
}

.login-panel::before,
.planet-horizon {
	border: 1px solid rgba(192, 192, 192, 0.08);
	background:
		radial-gradient(circle at 34% 32%, rgba(232, 213, 181, 0.13), transparent 34%),
		radial-gradient(circle at 62% 70%, rgba(199, 154, 145, 0.07), transparent 28%),
		linear-gradient(145deg, rgba(112, 128, 144, 0.28), rgba(5, 7, 10, 0.96));
	box-shadow: inset -42px -54px 90px rgba(0, 0, 0, 0.72);
	opacity: 0.42;
}

.orbit-large,
.orbit-small {
	border-color: rgba(192, 192, 192, 0.16);
	box-shadow: none;
}

.orbit-small {
	background: #e8d5b5;
	box-shadow: 0 0 10px rgba(232, 213, 181, 0.26);
}

.field,
.login-button,
.register-card,
.form-alert {
	border: 1px solid rgba(255, 255, 255, 0.08);
	background:
		linear-gradient(180deg, rgba(255, 255, 255, 0.046), rgba(255, 255, 255, 0.024)),
		rgba(5, 7, 10, 0.78);
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.42);
	backdrop-filter: blur(10px);
}

.field:nth-of-type(1) {
	border-color: rgba(163, 177, 198, 0.14);
}

.field:nth-of-type(2) {
	border-color: rgba(198, 161, 122, 0.14);
}

.field input {
	color: rgba(232, 213, 181, 0.96);
}

.field input::placeholder {
	color: rgba(192, 192, 192, 0.58);
}

.field:focus-within {
	border-color: rgba(232, 213, 181, 0.28);
	outline: 1px solid rgba(232, 213, 181, 0.16);
}

.login-button {
	color: rgba(232, 213, 181, 0.96);
	background: linear-gradient(135deg, rgba(198, 161, 122, 0.12), rgba(112, 128, 144, 0.08));
}

.login-button:hover {
	border-color: rgba(232, 213, 181, 0.26);
	background: rgba(232, 213, 181, 0.1);
	transform: translateY(-1px);
}

.password-toggle {
	border-color: rgba(255, 255, 255, 0.08);
	background: rgba(255, 255, 255, 0.045);
}

.password-toggle.is-visible,
.password-toggle[aria-pressed="true"] {
	background: rgba(232, 213, 181, 0.14);
}

@media (max-width: 640px) {
	.page-shell::before {
		inset: 10px;
	}

	.page-shell::after {
		display: none;
	}

	.brand-eng {
		letter-spacing: 0.08em;
	}
}

/* Login page text hierarchy */
:root {
	--login-title: #efe4d4;
	--login-body: #b7bbb8;
	--login-muted: #828b93;
	--login-warm: #c6a17a;
	--login-cold: #a3b1c6;
	--login-calm: #a7b59b;
	--login-rose: #c79a91;
}

.brand-kor {
	color: var(--login-title);
}

.brand-kor::after {
	color: var(--login-warm);
}

.brand-eng {
	color: var(--login-warm);
}

.hero h1 {
	color: var(--login-title);
}

.hero p {
	color: var(--login-body);
}

.join-link {
	color: #d9c6a8;
}

.join-link:hover {
	color: var(--login-title);
}

.field input {
	color: #ddd3c5;
}

.field input::placeholder {
	color: var(--login-muted);
}

.field:first-of-type svg,
.field:first-of-type .field-icon {
	color: var(--login-cold);
}

.field:nth-of-type(2) svg,
.field:nth-of-type(2) .field-icon {
	color: var(--login-warm);
}

.login-meta {
	color: var(--login-muted);
}

.login-meta a {
	color: #c0b39f;
}

.form-alert {
	color: #d7aaa3;
}

.login-button {
	color: var(--login-title);
}

.register-panel h1,
.register-panel h2 {
	color: var(--login-title);
}

.register-panel p,
.register-panel label {
	color: var(--login-body);
}

/* Final password toggle repair */
.field .password-toggle {
	position: relative;
	width: 42px;
	height: 24px;
	flex: 0 0 42px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.045);
	color: rgba(232, 213, 181, 0.8);
	overflow: hidden;
}

.field .password-toggle::before,
.field .password-toggle::after {
	content: "";
	position: absolute;
	box-sizing: border-box;
}

.field .password-toggle::before {
	left: 4px;
	top: 4px;
	width: 14px;
	height: 14px;
	border: 0;
	border-radius: 50%;
	background: rgba(184, 190, 196, 0.88);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
	transform: translateX(0);
	transition: transform 0.22s ease, background 0.2s ease, box-shadow 0.2s ease;
	z-index: 2;
}

.field .password-toggle::after {
	left: 11px;
	top: 50%;
	width: 20px;
	height: 10px;
	border: 1.5px solid currentColor;
	border-radius: 999px 999px 999px 999px / 70% 70% 70% 70%;
	background: transparent;
	box-shadow: none;
	opacity: 0.58;
	transform: translateY(-50%);
	transition: color 0.2s ease, opacity 0.2s ease;
	z-index: 1;
}

.field .password-toggle[aria-pressed="true"] {
	border-color: rgba(198, 161, 122, 0.42);
	background: rgba(198, 161, 122, 0.14);
	color: rgba(239, 228, 212, 0.95);
}

.field .password-toggle[aria-pressed="true"]::before {
	background: #c6a17a;
	box-shadow: 0 0 10px rgba(198, 161, 122, 0.24);
	transform: translateX(20px);
}

.field .password-toggle[aria-pressed="true"]::after {
	opacity: 0.8;
}

/* Stable login icons */
.field-icon-image {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 24px;
	height: 24px;
	color: rgba(232, 213, 181, 0.86);
}

.field:first-of-type .field-icon-image {
	color: rgba(163, 177, 198, 0.9);
}

.field-icon-image::before,
.field-icon-image::after {
	display: none !important;
	content: none !important;
}

.field-icon-image img {
	display: block;
	width: 24px;
	height: 24px;
	object-fit: contain;
	color: currentColor;
}

.field .password-toggle {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 26px;
	padding: 0;
	border: 0;
	background: transparent;
	overflow: visible;
}

.field .password-toggle::before,
.field .password-toggle::after {
	display: none !important;
	content: none !important;
}

.password-toggle-track {
	position: relative;
	display: block;
	width: 42px;
	height: 24px;
	border: 1px solid rgba(255, 255, 255, 0.11);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.045);
	transition: background 0.2s ease, border-color 0.2s ease;
}

.password-toggle-eye {
	position: absolute;
	left: 12px;
	top: 50%;
	width: 18px;
	height: 10px;
	border: 1.5px solid rgba(232, 213, 181, 0.58);
	border-radius: 999px 999px 999px 999px / 72% 72% 72% 72%;
	transform: translateY(-50%);
	transition: border-color 0.2s ease, opacity 0.2s ease;
	opacity: 0.74;
}

.password-toggle-eye::after {
	content: "";
	position: absolute;
	left: 50%;
	top: 50%;
	width: 4px;
	height: 4px;
	border-radius: 50%;
	background: rgba(232, 213, 181, 0.68);
	transform: translate(-50%, -50%);
	transition: background 0.2s ease;
}

.password-toggle-dot {
	position: absolute;
	left: 4px;
	top: 4px;
	width: 14px;
	height: 14px;
	border-radius: 50%;
	background: rgba(169, 178, 187, 0.92);
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
	transition: transform 0.22s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.field .password-toggle[aria-pressed="true"] .password-toggle-track {
	border-color: rgba(198, 161, 122, 0.42);
	background: rgba(198, 161, 122, 0.14);
}

.field .password-toggle[aria-pressed="true"] .password-toggle-eye {
	border-color: rgba(239, 228, 212, 0.76);
	opacity: 0.86;
}

.field .password-toggle[aria-pressed="true"] .password-toggle-eye::after {
	background: rgba(239, 228, 212, 0.88);
}

.field .password-toggle[aria-pressed="true"] .password-toggle-dot {
	background: #c6a17a;
	box-shadow: 0 0 10px rgba(198, 161, 122, 0.24);
	transform: translateX(20px);
}
