/* 로그인 페이지 전용 스타일 (login 페이지에서만 로드) */
.login {
	max-width: 1200px;
	margin: 0 auto;
	padding: 56px 24px;
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 56px;
	align-items: start; /* 우측은 자연 높이 유지(하단 공백 방지), 좌측을 맞춘다 */
}

/* ---- 좌측 소개 ---- */
/* 헤딩은 상단 좌측(투명 영역), 일러스트는 우하단에 배치해 세로로 분리 → 텍스트/모니터 안 겹침 */
.login__hero { position: relative; min-height: 366px; margin-bottom: 12px; }
.login__hero__text {
	position: absolute; top: 4px; left: 2px; z-index: 2;
}
.login__hero__text h1 {
	font-size: 36px;
	line-height: 1.28;
	font-weight: 800;
	letter-spacing: -0.02em;
	margin: 0 0 16px;
	white-space: nowrap;
}
.login__hero__text h1 .accent { color: var(--brand); }
.login__hero__text .desc { color: var(--muted); font-size: 16px; margin: 0; }
.login__hero__img {
	position: absolute; right: 0; bottom: 0; z-index: 1;
	width: 66%; max-width: 460px; height: auto; display: block;
}

.login__features {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px;
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 14px;
	padding: 24px;
}
.feature { display: flex; gap: 14px; }
.feature__icon {
	flex: 0 0 44px; width: 44px; height: 44px;
	display: grid; place-items: center;
	background: var(--brand-050); color: var(--brand);
	border-radius: 10px;
}
.feature__icon svg { width: 22px; height: 22px; }
.feature__title { font-weight: 700; font-size: 15px; margin: 0 0 4px; }
.feature__desc { color: var(--muted); font-size: 13px; margin: 0; line-height: 1.5; }

/* ---- 우측 로그인 카드 ---- */
.login__panel {
	background: #fff;
	border: 1px solid var(--line);
	border-radius: 16px;
	padding: 40px 40px 44px;
	box-shadow: 0 8px 30px rgba(17, 24, 39, .05);
}
.login__panel h2 { text-align: center; font-size: 26px; font-weight: 800; margin: 0 0 8px; }
.login__panel .sub { text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 30px; }

.login__alert {
	/* 기본: 중립 알림(로그아웃 안내 등) */
	background: #eef4fe; border: 1px solid #d6e2fb; color: #1d4ed8;
	border-radius: 10px; padding: 12px 14px; font-size: 14px; font-weight: 600;
	margin-bottom: 22px; text-align: center;
}
.login__alert--error {
	/* 오류: 빨강 */
	background: #fef2f2; border-color: #fecaca; color: #b91c1c;
}
.login__alert.is-hidden { display: none; }

.field { margin-bottom: 18px; }
.field > label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 8px; }
.input-wrap { position: relative; display: flex; align-items: center; }
.input-wrap > svg.lead {
	position: absolute; left: 14px; width: 18px; height: 18px; color: #9ca3af; pointer-events: none;
}
.input-wrap input {
	width: 100%;
	padding: 14px 44px;
	border: 1px solid #d7dbe2;
	border-radius: 10px;
	font-size: 15px;
	background: #fff;
	transition: border-color .15s, box-shadow .15s;
}
.input-wrap input:focus {
	outline: none;
	border-color: var(--brand-600);
	box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.input-wrap .toggle-pw {
	position: absolute; right: 12px; background: none; border: 0; cursor: pointer;
	color: #9ca3af; padding: 4px; display: grid; place-items: center;
}
.input-wrap .toggle-pw svg { width: 20px; height: 20px; }

.login__row {
	display: flex; align-items: center; justify-content: space-between;
	margin: 6px 0 24px; font-size: 14px;
}
.login__row label { display: inline-flex; align-items: center; gap: 8px; color: #374151; cursor: pointer; }
.login__row a { color: var(--muted); font-weight: 600; }
.login__row a:hover { color: var(--brand); }

.btn-primary {
	width: 100%;
	padding: 15px;
	background: var(--brand);
	color: #fff;
	border: 0;
	border-radius: 10px;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: background .15s;
}
.btn-primary:hover { background: #1743b3; }

.login__divider {
	display: flex; align-items: center; gap: 14px;
	color: var(--muted); font-size: 13px; margin: 22px 0;
}
.login__divider::before, .login__divider::after {
	content: ""; flex: 1; height: 1px; background: var(--line);
}

.btn-outline {
	width: 100%;
	display: inline-flex; align-items: center; justify-content: center; gap: 8px;
	padding: 14px;
	background: #fff;
	color: #374151;
	border: 1px solid #d7dbe2;
	border-radius: 10px;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	transition: background .15s, border-color .15s;
}
.btn-outline:hover { background: #f8fafc; border-color: #c3c9d4; }
.btn-outline svg { width: 18px; height: 18px; }

/* 반응형: 좁은 화면에서는 한 컬럼 */
@media (max-width: 900px) {
	.login {
		grid-template-columns: 1fr;
		gap: 28px;
		padding: 28px 18px;
	}
	/* 모바일: 로그인 폼을 위로, 소개는 아래로 순서 역전 */
	.login__panel { order: -1; }
	.login__intro { order: 1; }

	.login__features { grid-template-columns: 1fr; }

	/* 오버레이 해제 → 헤딩 · 부제 · 일러스트를 자연 흐름으로 세로 배치 */
	.login__hero { min-height: 0; margin-bottom: 0; }
	.login__hero__text { position: static; margin-bottom: 14px; }
	.login__hero__text h1 { font-size: 26px; line-height: 1.3; white-space: normal; }
	.login__hero__text .desc { font-size: 15px; }
	.login__hero__img { position: static; width: 100%; max-width: 420px; margin: 6px auto 0; }

	/* 로그인 카드 여백 축소 */
	.login__panel { padding: 30px 22px 32px; }
	.login__panel h2 { font-size: 23px; }
}

@media (max-width: 420px) {
	.login__panel { padding: 26px 18px 28px; }
	.login__hero__text h1 { font-size: 23px; }
	.input-wrap input { padding: 13px 42px; font-size: 14px; }
}
