/* =========================================
   로그인 페이지 전용 스타일
   파일명: login.css
   ========================================= */

.login-container {
	min-height: calc(100vh - 160px); /* 헤더/푸터 제외, 대략 가운데 정렬 느낌 */
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 16px 60px;
	box-sizing: border-box;
}

.login-card {
	width: 100%;
	max-width: 420px;
	background-color: #fff;
	border-radius: 18px;
	box-shadow: 0 14px 30px rgba(0, 0, 0, 0.06);
	border: 1px solid #e3eaf0;
	padding: 28px 28px 24px;
	box-sizing: border-box;
}

/* 로고 영역 */
.login-brand {
	text-align: center;
	margin-bottom: 18px;
}

.login-brand img {
	max-width: 180px;
	height: auto;
}

/* 타이틀 영역 */
.login-head {
	text-align: center;
	margin-bottom: 22px;
}

.login-title {
	margin: 0 0 6px;
	font-size: 22px;
	font-weight: 600;
	color: #222;
}

.login-desc {
	margin: 0;
	font-size: 13px;
	line-height: 1.6;
	color: #777;
}

/* 폼 레이아웃 */
.login-row {
	margin-bottom: 14px;
}

.login-label {
	display: block;
	font-size: 13px;
	font-weight: 500;
	color: #333;
	margin-bottom: 6px;
}

.login-field {
	width: 100%;
}

.login-input {
	width: 100%;
	box-sizing: border-box;
	border-radius: 10px;
	border: 1px solid #d8e2e7;
	padding: 10px 12px;
	font-size: 14px;
	line-height: 1.4;
	color: #333;
	background-color: #fff;
	outline: none;
	transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.login-input:focus {
	border-color: var(--brand-color);
	box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.02);
}

/* 부가 옵션 (아이디 기억하기) */
.login-meta {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-top: 4px;
	margin-bottom: 18px;
}

.login-remember {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 13px;
	color: #666;
	cursor: pointer;
}

.login-remember input[type="checkbox"] {
	width: 14px;
	height: 14px;
	margin: 0;
}

/* 로그인 버튼 */
.login-actions {
	margin-bottom: 16px;
}

.btn-login-primary {
	width: 100%;
	height: 44px;
	border-radius: 999px;
	border: 1px solid var(--brand-color);
	background-color: var(--brand-color);
	color: #fff;
	font-size: 15px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color .15s ease, box-shadow .15s ease, transform .1s ease;
	box-shadow: 0 10px 18px rgba(0, 0, 0, 0.08);
}

.btn-login-primary:hover {
	box-shadow: 0 12px 22px rgba(0, 0, 0, 0.12);
	transform: translateY(-1px);
}

/* 하단 링크 */
.login-links {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	font-size: 13px;
	color: #888;
}

.login-links .sep {
	color: #ccc;
}

.login-link,
.login-link-strong {
	text-decoration: none;
	color: #777;
}

.login-link-strong {
	font-weight: 500;
	color: var(--brand-color);
}

.login-link:hover,
.login-link-strong:hover {
	text-decoration: underline;
}

/* ---------------------------------
   반응형 (<= 768px)
---------------------------------- */
@media (max-width: 768px) {

	.login-container {
		min-height: calc(100vh - 120px);
		padding: 32px 16px 40px;
	}

	.login-card {
		padding: 24px 20px 20px;
		border-radius: 14px;
	}

	.login-title {
		font-size: 20px;
	}

	.login-desc {
		font-size: 12px;
	}

	.btn-login-primary {
		height: 42px;
		font-size: 14px;
	}
}


/* ============================================
   프로필 안내 모달
============================================ */
.profile-modal {
	position: fixed;
	inset: 0;
	z-index: 1200;
	display: none;
}

.profile-modal.open {
	display: block;
}

.pm-dim {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.45);
}

.pm-dialog {
	position: relative;
	z-index: 1;
	width: 380px;
	margin: 120px auto 0;
	background: #fff;
	border-radius: 18px;
	padding: 22px 24px 24px;
	box-shadow: 0 20px 40px rgba(0, 0, 0, 0.18);
	box-sizing: border-box;
	animation: pmFadeIn .25s ease-out;
}

@keyframes pmFadeIn {
	from {opacity:0; transform: translateY(20px);}
	to   {opacity:1; transform: translateY(0);}
}

.pm-header {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 14px;
}

.pm-title {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	color: #111;
}

.pm-close {
	border: none;
	background: transparent;
	font-size: 24px;
	cursor: pointer;
	color: #999;
	padding: 2px 6px;
}

.pm-close:hover { color:#555; }

.pm-body { text-align:center; padding: 10px 0 6px; }

.pm-text {
	font-size: 15px;
	color: #444;
	line-height: 1.7;
	margin: 0;
}

.pm-point {
	color: var(--brand-color);
	font-weight: 700;
	font-size: 18px;
}

.pm-footer {
	margin-top: 16px;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.pm-btn {
	width: 100%;
	height: 44px;
	font-size: 15px;
	border-radius: 12px;
}

/* 반응형 */
@media (max-width: 480px) {

	.pm-dialog {
		width: calc(100% - 40px);
		margin: 90px auto 0;
		padding: 20px 18px 22px;
		border-radius: 14px;
	}

	.pm-title { font-size: 18px; }
	.pm-text  { font-size: 14px; }
	.pm-point { font-size: 16px; }
}