/* login-style.css - Final Version with Enhanced Blending */

/* --- Base Styles for Login Page --- */
body {
	font-family: 'Noto Sans KR', 'Roboto', sans-serif;
	margin: 0;
	padding: 0;
	box-sizing: border-box;
	color: #fff;
	overflow-x: hidden;
	background-color: #000; /* Fallback background */
}

.am-header {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	padding: 15px 40px;
	display: flex;
	align-items: center;
	z-index: 100;
	box-sizing: border-box;
	/* 헤더 그라데이션: 상단은 진하게, 하단은 더 투명하게 하여 배경 오버레이와 자연스럽게 연결 */
	background: linear-gradient(to bottom, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.1) 100%); /* 시작점 0.8, 끝점 0.1로 조정 */
	transition: background 0.3s ease;
	justify-content: flex-start;
}

/* --- Logo Styles (Image-based) --- */
.am-logo-link {
	display: flex;
	align-items: center;
	text-decoration: none;
}

.am-logo-image {
	height: 40px; /* Base height for the logo */
	width: auto;
	display: block;
	filter: drop-shadow(1px 1px 2px rgba(0,0,0,0.5));
}

/* --- Login Page Specific Styles --- */

.am-login-background {
	position: fixed;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	overflow: hidden;
	z-index: -1;
}

.am-login-background img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	/* 배경 이미지를 더 어둡고 덜 선명하게 만들어 전경 요소들이 돋보이게 함 */
	filter: brightness(25%) contrast(1.2) blur(1px); /* 밝기 25%로 더 어둡게, 대비 1.2, 약간의 블러 추가 */
}

.am-overlay-gradient {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	/* 전체 화면을 덮는 강력한 그라데이션으로, 로그인 폼과 헤더의 검은색과 자연스럽게 이어지도록 함 */
	background: linear-gradient(to top, rgba(0,0,0,1) 0%, rgba(0,0,0,0.2) 50%, rgba(0,0,0,1) 100%); /* 하단과 상단을 완전 불투명(1)으로, 중간은 더 투명하게(0.2) */
}

.am-login-container {
	display: flex;
	justify-content: center;
	align-items: center;
	min-height: 100vh;
	padding: 80px 20px 40px;
	box-sizing: border-box;
}

.am-login-form-wrapper {
	/* 로그인 폼 배경색 투명도 미세 조정 (배경과 덜 이질감 나도록) */
	background-color: rgba(0, 0, 0, 0.88); /* 기존 0.85에서 0.88로 약간 더 불투명하게 (실제 넷플릭스는 거의 1) */
	padding: 60px;
	border-radius: 8px;
	width: 100%;
	max-width: 450px;
	box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.am-login-form-wrapper h1 {
	font-size: 2.2em;
	color: #fff;
	margin-bottom: 28px;
	text-align: left;
}

.am-input-group {
	position: relative;
	margin-bottom: 20px;
}

.am-input-group input {
	width: 100%;
	padding: 18px 20px;
	background-color: #333;
	border: none;
	border-radius: 4px;
	color: #fff;
	font-size: 1em;
	outline: none;
	box-sizing: border-box;
	transition: background-color 0.3s ease;
	padding-top: 25px;
	padding-bottom: 11px;
}

.am-input-group input:focus {
	background-color: #444;
}

.am-input-placeholder {
	position: absolute;
	left: 20px;
	top: 50%; 
	transform: translateY(-50%);
	color: #8c8c8c;
	font-size: 1em;
	pointer-events: none;
	transition: all 0.2s ease;
}

.am-input-placeholder.active {
	top: 8px;
	font-size: 0.75em;
	color: #b3b3b3;
	transform: translateY(0);
}

.password-group .am-password-toggle {
	position: absolute;
	right: 20px;
	top: 50%;
	transform: translateY(-50%);
	color: #8c8c8c;
	cursor: pointer;
	font-size: 1.2em;
	transition: color 0.2s ease;
}

.password-group .am-password-toggle:hover {
	color: #fff;
}

.am-login-button {
	background-color: #e50914; /* Netflix Red */
	color: #fff;
	padding: 16px 0;
	border: none;
	border-radius: 4px;
	font-size: 1.1em;
	font-weight: 700;
	cursor: pointer;
	transition: background-color 0.3s ease;
	width: 100%;
	margin-top: 10px;
}

.am-login-button:hover {
	background-color: #f40612;
}

.am-form-options {
	display: flex;
	justify-content: space-between;
	align-items: center;
	font-size: 0.85em;
	color: #b3b3b3;
	margin-top: 10px;
}

.am-remember-me {
	display: flex;
	align-items: center;
}

.am-checkbox {
	width: 16px;
	height: 16px;
	margin-right: 5px;
	accent-color: #8c8c8c;
}

.am-signup-link {
	color: #b3b3b3;
	text-decoration: none;
	transition: color 0.3s ease;
}

.am-signup-link:hover {
	text-decoration: underline;
	color: #fff;
}

.am-signup-section {
	margin-top: 40px;
	color: #8c8c8c;
	font-size: 1em;
	text-align: center;
}

.am-signup-section p {
	margin: 0;
	line-height: 1.5;
}

/* --- Responsive Adjustments --- */

@media (max-width: 768px) {
	.am-header {
		padding: 10px 20px;
	}
	.am-logo-image {
		height: 60px;
	}

	.am-login-container {
		padding: 60px 15px 30px;
	}

	.am-login-form-wrapper {
		padding: 40px 30px;
		margin: 20px;
	}

	.am-login-form-wrapper h1 {
		font-size: 1.8em;
		margin-bottom: 20px;
	}

	.am-input-group input {
		padding: 15px 18px;
		padding-top: 25px;
		padding-bottom: 11px;
	}

	.am-login-button {
		padding: 14px 0;
		font-size: 1em;
	}

	.am-form-options {
		flex-direction: column;
		align-items: flex-start;
		gap: 10px;
	}
	
	.am-remember-me {
		width: 100%;
		justify-content: flex-start;
	}
}

@media (max-width: 480px) {
	.am-header {
		padding: 8px 15px;
	}
	.am-logo-image {
		height: 70px;
	}

	.am-login-form-wrapper {
		padding: 30px 20px;
		border-radius: 0;
		max-width: none;
		margin: 0;
	}

	.am-login-container {
		padding: 60px 0 0;
		align-items: flex-start;
	}
}