/* ========== 초기화 및 기본 설정 ========== */
.container_login {
	max-width: min(100vw, 500px);
	margin: 0 auto;
	background: white;
	height: 100vh;
	display: flex;
	flex-direction: column;
}

/* ========== 헤더 영역 ========== */
.header_login {
	background: rgba(255, 255, 255, 0.98);
	backdrop-filter: blur(20px);
	padding: 10px 5%;
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid rgba(0,0,0,0.05);
}

.logo_login {
	display: flex;
	align-items: center;
	gap: 10px;
}

.logo_login img { height: 30px; }

.close-btn {
	width: 30px;
	height: 30px;
	border: none;
	background: rgba(0,0,0,0.05);
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	font-size: 14px;
	transition: transform 0.2s ease;
}

.close-btn:hover {
	transform: scale(1.05);
}

/* ========== 상단 버튼 영역 (로그인/회원가입/입학안내) ========== */
.auth-section {
	padding: 12px 20px;
	background: linear-gradient(135deg, rgba(255,149,0,0.05) 0%, rgba(255,107,53,0.05) 100%);
}

.auth-buttons {
	display: flex;
	gap: 6px;
}

.auth-btn {
	padding: 10px 0;
	border: none;
	border-radius: 12px;
	font-size: 15px;
	font-weight: 600;
	letter-spacing: -0.3px;
	cursor: pointer;
	text-decoration: none;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	position: relative;
	overflow: hidden;
}

.auth-btn::before {
	content: '';
	position: absolute;
	top: 50%;
	left: 50%;
	width: 0;
	height: 0;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.1);
	transform: translate(-50%, -50%);
	transition: width 0.6s ease, height 0.6s ease;
}

.auth-btn:hover::before {
	width: 300px;
	height: 300px;
}

/* 로그인 버튼 */
.btn-login {
	flex: 1.2;
	background: linear-gradient(135deg, #FFD700 0%, #FFA500 100%);
	color: #000;
	box-shadow: 0 4px 12px rgba(255, 215, 0, 0.25);
}

.btn-login:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(255, 215, 0, 0.35);
}

/* 회원가입 버튼 */
.btn-register {
	flex: 1.2;
	background: linear-gradient(135deg, #4facfe 0%, #00f2fe 100%);
	color: white;
	box-shadow: 0 4px 12px rgba(79, 172, 254, 0.25);
}

.btn-register:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 16px rgba(79, 172, 254, 0.35);
}

/* 입학안내 버튼 */
.btn-admission {
	flex: 0.8;
	background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
	color: #fff;
	font-size: 13px;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.25);
	display: flex;
	align-items: center;
	justify-content: center;
}

.btn-admission:hover {
	background: linear-gradient(135deg, #3d3d3d 0%, #2a2a2a 100%);
	transform: translateY(-1px);
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
}

/* ========== 메뉴 영역 ========== */
.menu-area {
	flex: 1;
	padding: 20px 20px 24px;
	overflow-y: auto;
	overflow-x: hidden;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
}

.menu-section {
	margin-bottom: 28px;
	animation: slideUp 0.5s ease forwards;
	opacity: 0;
}

.menu-section:last-child {
	margin-bottom: 0;
}

.menu-section:nth-child(1) { animation-delay: 0.1s; }
.menu-section:nth-child(2) { animation-delay: 0.2s; }
.menu-section:nth-child(3) { animation-delay: 0.3s; }
.menu-section:nth-child(4) { animation-delay: 0.4s; }
.menu-section:nth-child(5) { animation-delay: 0.5s; }

/* 섹션 제목 */
.section-title {
	font-size: 15px;
	font-weight: 700;
	color: #1a1a1a;
	margin-bottom: 12px;
	display: flex;
	align-items: center;
	gap: 10px;
}

.section-icon {
	width: 22px;
	height: 22px;
	border-radius: 6px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 11px;
}

.icon-myclass { background: linear-gradient(45deg, #ffecd2, #fcb69f); }
.icon-academy { background: linear-gradient(45deg, #43e97b, #38f9d7); }
.icon-story { background: linear-gradient(45deg, #4facfe, #00f2fe); }
.icon-curriculum { background: linear-gradient(45deg, #fa709a, #fee140); }

/* ========== 그리드 레이아웃 ========== */

/* 3개 박스 그리드 */
.grid-horizontal {
	display: flex;
	gap: 6px;
}

.horizontal-card {
	flex: 1;
	background: white;
	border: 1px solid rgba(0,0,0,0.06);
	border-radius: 12px;
	padding: 10px 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	text-decoration: none;
	color: #333;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0,0,0,0.04);
	min-height: 60px;
}

.horizontal-card:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 16px rgba(0,0,0,0.12);
	border-color: #ff9500;
}

.horizontal-card-icon {
	font-size: 16px;
	margin-bottom: 3px;
}

.horizontal-card-text {
	font-size: 11px;
	font-weight: 500;
	line-height: 1.3;
	word-break: keep-all;
	overflow-wrap: break-word;
}

/* 4개 박스 그리드 */
.grid-horizontal-4 {
	display: flex;
	gap: 4px;
}

.story-card-horizontal {
	flex: 1;
	background: white;
	border: 1px solid rgba(0,0,0,0.06);
	border-radius: 12px;
	padding: 10px 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	text-decoration: none;
	color: #333;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0,0,0,0.04);
	position: relative;
	overflow: hidden;
	min-height: 60px;
}

.story-card-horizontal::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
	transform: translateX(-100%);
	transition: transform 0.3s ease;
}

.story-card-horizontal:hover::before {
	transform: translateX(0);
}

.story-card-horizontal:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 16px rgba(0,0,0,0.12);
	border-color: #4facfe;
}

.story-card-horizontal-icon {
	font-size: 16px;
	margin-bottom: 3px;
}

.story-card-horizontal-text {
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
	word-break: keep-all;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	padding: 0;
}

/* 5개 박스 그리드 */
.grid-horizontal-5 {
	display: flex;
	gap: 3px;
}

.story-card-horizontal-5 {
	flex: 1;
	background: white;
	border: 1px solid rgba(0,0,0,0.06);
	border-radius: 12px;
	padding: 10px 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	text-decoration: none;
	color: #333;
	transition: all 0.3s ease;
	box-shadow: 0 2px 8px rgba(0,0,0,0.04);
	position: relative;
	overflow: hidden;
	min-height: 60px;
}

.story-card-horizontal-5::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	height: 2px;
	background: linear-gradient(90deg, #4facfe 0%, #00f2fe 100%);
	transform: translateX(-100%);
	transition: transform 0.3s ease;
}

.story-card-horizontal-5:hover::before {
	transform: translateX(0);
}

.story-card-horizontal-5:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 16px rgba(0,0,0,0.12);
	border-color: #4facfe;
}

.story-card-horizontal-5 .story-card-horizontal-icon {
	font-size: 16px;
	margin-bottom: 3px;
}

.story-card-horizontal-5 .story-card-horizontal-text {
	font-size: 11px;
	font-weight: 600;
	line-height: 1.2;
	word-break: keep-all;
	padding: 0;
}

/* ========== 특별 스타일 ========== */

/* 강의실 입장 강조 */
.highlight-card {
	background: linear-gradient(135deg, #fff 0%, #fffaf0 100%);
	border: 1.5px solid #ffdb99;
	box-shadow: 0 3px 12px rgba(255, 200, 0, 0.25);
	position: relative;
}

.highlight-card::after {
	content: '';
	position: absolute;
	inset: -2px;
	border-radius: 12px;
	background: linear-gradient(135deg, rgba(255, 215, 0, 0.3), rgba(255, 165, 0, 0.3));
	z-index: -1;
	opacity: 0.5;
	filter: blur(8px);
}

.highlight-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 6px 20px rgba(255, 200, 0, 0.4);
	border-color: #ffb347;
}

/* 평촌본원 외부링크 스타일 */
.external-link {
	background: linear-gradient(135deg, #f4f0ff 0%, #ede8ff 100%);
	border-color: rgba(118, 75, 162, 0.25);
}

.external-link:hover {
	background: linear-gradient(135deg, #ede8ff 0%, #e0d9ff 100%);
	border-color: rgba(118, 75, 162, 0.4);
}

.external-link::after {
	content: '';
	position: absolute;
	top: 3px;
	right: 3px;
	width: 4px;
	height: 4px;
	background: #764ba2;
	border-radius: 50%;
	opacity: 0.6;
	animation: pulse 2s infinite;
}

/* ========== 애니메이션 ========== */
@keyframes slideUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes pulse {
	0%, 100% { opacity: 0.6; transform: scale(1); }
	50% { opacity: 1; transform: scale(1.2); }
}

/* ========== 스크롤바 ========== */
.menu-area::-webkit-scrollbar {
	width: 4px;
}

.menu-area::-webkit-scrollbar-track {
	background: rgba(0,0,0,0.05);
}

.menu-area::-webkit-scrollbar-thumb {
	background: rgba(0,0,0,0.2);
	border-radius: 2px;
}

/* ========== 반응형 ========== */
@media (max-width: 320px) {
	.auth-buttons {
		flex-direction: column;
		gap: 8px;
	}

	.horizontal-card-text,
	.story-card-horizontal-text,
	.story-card-horizontal-5 .story-card-horizontal-text {
		font-size: 10px;
	}

	.horizontal-card,
	.story-card-horizontal,
	.story-card-horizontal-5 {
		padding: 10px 0;
	}

	.story-card-horizontal-icon,
	.story-card-horizontal-5 .story-card-horizontal-icon {
		font-size: 16px;
	}
}

@media (min-width: 400px) {
	.container_login {
		max-width: 450px;
	}

	.horizontal-card-text {
		font-size: 13px;
	}

	.story-card-horizontal-text {
		font-size: 11px;
	}

	.story-card-horizontal {
		padding: 14px 8px;
	}

	.story-card-horizontal-icon {
		font-size: 22px;
	}
}