/* 공통 변수 정의 */
:root {
	color-scheme: dark;
	--primary-bg: #1a1930;
	--panel-bg: #262244;
	--accent: #8dcfff;
	--accent-muted: rgba(141, 207, 255, 0.15);
	--text: #f5f5f7;
	--text-dim: #b3b6c7;
	--error: #ff6b6b;
}

/* 기본 레이아웃 */
body {
	margin: 0;
	font: 16px/1.5 "Pretendard", "Helvetica Neue", Arial, sans-serif;
	background: var(--primary-bg);
	color: var(--text);
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 100vh;
}

/* 카드 컨테이너 */
.card {
	background: var(--panel-bg);
	padding: 56px 48px;
	border-radius: 32px;
	width: 100%;
	text-align: center;
}

/* 로고 */
.logo {
	width: 300px;
	object-fit: contain;
	margin-bottom: 32px;
}

/* 제목 */
h1 {
	font-size: 24px;
	margin: 0 0 16px;
}

/* 단락 */
p {
	margin: 0 0 32px;
	color: var(--text-dim);
}

/* 콘텐츠 영역 */
.content-area {
	text-align: left;
	margin-top: 32px;
	padding-top: 32px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.content-area h2 {
	font-size: 20px;
	margin: 0 0 16px;
	color: var(--accent);
}

.content-area p {
	margin: 0 0 16px;
	line-height: 1.6;
}

/* 폼 그룹 */
.form-group {
	margin-bottom: 24px;
	text-align: left;
}

/* 라벨 */
label {
	display: block;
	margin-bottom: 8px;
	font-size: 14px;
	font-weight: 500;
	color: var(--text);
}

/* 입력 필드 */
input[type="text"],
input[type="email"],
input[type="password"] {
	width: 100%;
	padding: 14px 16px;
	border-radius: 12px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	background: rgba(255, 255, 255, 0.05);
	color: var(--text);
	font-size: 15px;
	font-family: inherit;
	box-sizing: border-box;
	transition: border-color 0.15s ease, background 0.15s ease;
}

input[type="text"]:focus,
input[type="email"]:focus,
input[type="password"]:focus {
	outline: none;
	border-color: var(--accent);
	background: rgba(255, 255, 255, 0.08);
}

input[type="text"]::placeholder,
input[type="email"]::placeholder,
input[type="password"]::placeholder {
	color: var(--text-dim);
}

/* 에러 메시지 */
.error-message {
	background: rgba(255, 107, 107, 0.1);
	border: 1px solid rgba(255, 107, 107, 0.3);
	color: var(--error);
	padding: 12px 16px;
	border-radius: 12px;
	margin-bottom: 24px;
	font-size: 14px;
	text-align: left;
}

/* 버튼 */
button {
	width: 100%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 14px 32px;
	border-radius: 999px;
	border: 1px solid transparent;
	background: var(--accent);
	color: #0b0b1b;
	text-decoration: none;
	font-size: 15px;
	font-weight: 600;
	font-family: inherit;
	cursor: pointer;
	transition: transform 0.15s ease, box-shadow 0.15s ease;
}

button:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(141, 207, 255, 0.3);
}

button:active {
	transform: translateY(0);
}

/* 페이지별 카드 너비 조정 */
.card-narrow {
	max-width: 520px;
}

.card-wide {
	max-width: 800px;
}

/* index 페이지 특화 스타일 */
.content-area p {
	color: var(--text);
}

.content-area p:last-child {
	margin-bottom: 0;
}

