/* ─── 기본 리셋 ─────────────────────────── */
* { 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가 체크박스를 숨기므로 복원) ── */
.login-page input[type="checkbox"] {
	position: static !important;
	opacity: 1 !important;
	appearance: auto !important;
	-webkit-appearance: checkbox !important;
}

/* ─── 전체 레이아웃 ─────────────────────── */
.login-page {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	background: linear-gradient(135deg, #f8fafc 0%, #eef2ff 50%, #f8fafc 100%);
	padding: 20px;
}

/* ─── 카드 컨테이너 ───────────────────── */
.login-card {
	width: 100%;
	max-width: 420px;
	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;
}

/* ─── 로고 헤더 ──────────────────────── */
.login-header {
	padding: 36px 32px 24px;
	text-align: center;
}

.login-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: 16px;
}

.login-logo i {
	color: #fff;
	font-size: 22px;
}

.login-header h1 {
	margin: 0 0 6px;
	font-size: 22px;
	font-weight: 700;
	color: #111827;
	letter-spacing: -0.3px;
}

.login-header p {
	margin: 0;
	font-size: 13.5px;
	color: #9ca3af;
	font-weight: 400;
}

/* ─── 폼 영역 ───────────────────────── */
.login-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-wrapper {
	position: relative;
}

.input-wrapper input {
	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 {
	border-color: #2563eb;
	background: #fff;
	box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.08);
}

.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;
}

/* 에러 메시지 */
.error-msg {
	margin: -8px 0 12px;
	padding: 10px 14px;
	background: rgba(239, 68, 68, 0.06);
	border: 1px solid rgba(239, 68, 68, 0.15);
	border-radius: 8px;
	font-size: 13px;
	color: #dc2626;
	display: flex;
	align-items: center;
	gap: 8px;
}

.error-msg i {
	font-size: 13px;
	flex-shrink: 0;
}

/* 체크박스 + 링크 행 */
.login-options {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 20px;
}

.login-options .remember-group {
	display: flex;
	align-items: center;
	gap: 6px;
}

.login-options .remember-group input[type="checkbox"] {
	width: 16px;
	height: 16px;
	accent-color: #2563eb;
	cursor: pointer;
	margin: 0;
}

.login-options .remember-group label {
	font-size: 13px;
	color: #6b7280;
	cursor: pointer;
	user-select: none;
}

.login-options .find-link {
	font-size: 13px;
	color: #6b7280;
	transition: color 0.2s;
}

.login-options .find-link:hover {
	color: #2563eb;
}

/* 로그인 버튼 */
.btn-login {
	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;
}

.btn-login:hover {
	background: linear-gradient(135deg, #1d4ed8, #4338ca);
	box-shadow: 0 4px 14px rgba(37, 99, 235, 0.3);
	transform: translateY(-1px);
}

.btn-login:active {
	transform: translateY(0);
	box-shadow: none;
}

/* ─── 하단 회원가입 ───────────────────── */
.login-footer {
	padding: 18px 32px;
	border-top: 1px solid #f1f5f9;
	text-align: center;
	background: #fafbfc;
}

.login-footer span {
	font-size: 13px;
	color: #9ca3af;
}

.login-footer a {
	font-size: 13px;
	font-weight: 600;
	color: #2563eb;
	margin-left: 6px;
	transition: color 0.2s;
}

.login-footer a:hover {
	color: #1d4ed8;
}

/* ─── 배경 장식 ─────────────────────── */
.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;
}
