﻿/* ========================================
   Customer Portal Modern Design
   ======================================== */

/* ========================================
   Login Page
   ======================================== */
.login-page-body {
	margin: 0;
	padding: 0;
	min-height: 100vh;
	background: #0f0f1a;
	display: flex;
	align-items: center;
	justify-content: center;
	font-family: 'Noto Sans KR', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
	overflow: hidden;
	position: relative;
}

/* Animated background shapes */
.login-bg-shapes {
	position: fixed;
	inset: 0;
	pointer-events: none;
	z-index: 0;
}

.shape {
	position: absolute;
	border-radius: 50%;
	filter: blur(80px);
	opacity: 0.35;
	animation: floatShape 12s ease-in-out infinite;
}

.shape-1 {
	width: 500px;
	height: 500px;
	background: radial-gradient(circle, #4f46e5, transparent 70%);
	top: -150px;
	left: -150px;
	animation-delay: 0s;
}

.shape-2 {
	width: 400px;
	height: 400px;
	background: radial-gradient(circle, #7c3aed, transparent 70%);
	bottom: -100px;
	right: -100px;
	animation-delay: -4s;
}

.shape-3 {
	width: 300px;
	height: 300px;
	background: radial-gradient(circle, #2563eb, transparent 70%);
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	animation-delay: -8s;
}

@keyframes floatShape {
	0%, 100% { transform: translate(0, 0) scale(1); }
	33%       { transform: translate(30px, -30px) scale(1.05); }
	66%       { transform: translate(-20px, 20px) scale(0.97); }
}

/* Wrapper */
.login-wrapper {
	position: relative;
	z-index: 1;
	display: flex;
	flex-direction: column;
	align-items: center;
	width: 100%;
	max-width: 480px;
	padding: 1.5rem;
}

/* Panel card */
.login-panel {
	width: 100%;
	background: rgba(255, 255, 255, 0.05);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 24px;
	padding: 3rem 2.5rem 2.5rem;
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	box-shadow: 0 32px 64px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1);
	animation: panelIn 0.6s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes panelIn {
	from {
		opacity: 0;
		transform: translateY(24px) scale(0.97);
	}
	to {
		opacity: 1;
		transform: translateY(0) scale(1);
	}
}

/* Brand */
.login-brand {
	text-align: center;
	margin-bottom: 2.5rem;
}

.brand-icon-wrap {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 72px;
	height: 72px;
	border-radius: 20px;
	background: linear-gradient(135deg, #4f46e5, #7c3aed);
	box-shadow: 0 12px 32px rgba(79, 70, 229, 0.45);
	font-size: 2rem;
	color: #fff;
	margin-bottom: 1.25rem;
	animation: iconPulse 3s ease-in-out infinite;
}

@keyframes iconPulse {
	0%, 100% { box-shadow: 0 12px 32px rgba(79, 70, 229, 0.45); }
	50%       { box-shadow: 0 12px 48px rgba(79, 70, 229, 0.7); }
}

.brand-title {
	font-size: 2rem;
	font-weight: 800;
	color: #fff;
	letter-spacing: -0.5px;
	margin: 0 0 0.5rem;
}

.brand-subtitle {
	font-size: 0.9rem;
	color: rgba(255, 255, 255, 0.5);
	margin: 0;
}

/* SSO buttons */
.login-actions {
	display: flex;
	flex-direction: column;
	gap: 0.875rem;
}

.btn-sso {
	display: flex;
	align-items: center;
	gap: 1rem;
	width: 100%;
	padding: 1rem 1.25rem;
	border: none;
	border-radius: 14px;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
	text-align: left;
	position: relative;
	overflow: hidden;
}

.btn-sso::before {
	content: '';
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0);
	transition: background 0.2s ease;
}

.btn-sso:hover::before {
	background: rgba(255, 255, 255, 0.06);
}

.btn-sso:hover {
	transform: translateY(-2px);
}

.btn-sso:active {
	transform: translateY(0);
}

/* HMG button */
.btn-sso-hmg {
	background: linear-gradient(135deg, #1d4ed8 0%, #4f46e5 100%);
	box-shadow: 0 8px 24px rgba(29, 78, 216, 0.4);
}

.btn-sso-hmg:hover {
	box-shadow: 0 12px 32px rgba(29, 78, 216, 0.55);
}

/* Partners button */
.btn-sso-partners {
	background: linear-gradient(135deg, #059669 0%, #0d9488 100%);
	box-shadow: 0 8px 24px rgba(5, 150, 105, 0.4);
}

.btn-sso-partners:hover {
	box-shadow: 0 12px 32px rgba(5, 150, 105, 0.55);
}

/* Button inner elements */
.btn-sso-icon {
	flex-shrink: 0;
	width: 42px;
	height: 42px;
	background: rgba(255, 255, 255, 0.18);
	border-radius: 10px;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 1.15rem;
	color: #fff;
}

.btn-sso-content {
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.15rem;
}

.btn-sso-label {
	font-size: 1rem;
	font-weight: 700;
	color: #fff;
	line-height: 1;
}

.btn-sso-desc {
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.7);
	line-height: 1;
}

.btn-sso-arrow {
	flex-shrink: 0;
	color: rgba(255, 255, 255, 0.5);
	font-size: 0.8rem;
	transition: transform 0.2s ease, color 0.2s ease;
}

.btn-sso:hover .btn-sso-arrow {
	transform: translateX(3px);
	color: rgba(255, 255, 255, 0.9);
}

/* Divider */
.login-divider {
	display: flex;
	align-items: center;
	gap: 0.75rem;
	margin: 1.75rem 0 1.25rem;
}

.login-divider::before,
.login-divider::after {
	content: '';
	flex: 1;
	height: 1px;
	background: rgba(255, 255, 255, 0.12);
}

.login-divider span {
	font-size: 0.8rem;
	color: rgba(255, 255, 255, 0.35);
	white-space: nowrap;
}

/* Guest link button */
.btn-guest-link {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.5rem;
	width: 100%;
	padding: 0.875rem;
	background: transparent;
	border: 1px solid rgba(255, 255, 255, 0.15);
	border-radius: 14px;
	font-size: 0.9rem;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.55);
	cursor: pointer;
	transition: all 0.2s ease;
}

.btn-guest-link i {
	font-size: 0.85rem;
}

.btn-guest-link:hover {
	background: rgba(255, 255, 255, 0.06);
	border-color: rgba(255, 255, 255, 0.3);
	color: rgba(255, 255, 255, 0.85);
	transform: translateY(-1px);
}

/* Footer text */
.login-footer-text {
	margin-top: 1.5rem;
	font-size: 0.78rem;
	color: rgba(255, 255, 255, 0.2);
	text-align: center;
}

/* Responsive */
@media (max-width: 480px) {
	.login-panel {
		padding: 2.25rem 1.75rem 2rem;
		border-radius: 20px;
	}

	.brand-title {
		font-size: 1.75rem;
	}
}



/* ========================================
   Notice Board Styles
   ======================================== */
.notice-container {
	max-width: 1200px;
	margin: 0 auto;
	padding: 0 1rem;
}

.page-header {
	background: rgba(255, 255, 255, 0.95);
	border-radius: 20px;
	padding: 2.5rem;
	margin-bottom: 2rem;
	box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
	text-align: center;
	backdrop-filter: blur(10px);
}

.page-header-icon {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	width: 70px;
	height: 70px;
	border-radius: 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 2rem;
	margin-bottom: 1rem;
	box-shadow: 0 10px 30px rgba(102, 126, 234, 0.3);
}

.page-header h1 {
	font-size: 2.5rem;
	font-weight: 700;
	margin: 1rem 0 0.5rem;
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	-webkit-background-clip: text;
	-webkit-text-fill-color: transparent;
	background-clip: text;
}

.page-header p {
	color: #666;
	font-size: 1.1rem;
	margin: 0;
}

.search-card {
	background: rgba(255, 255, 255, 0.95);
	border-radius: 15px;
	padding: 1.5rem;
	margin-bottom: 2rem;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
	backdrop-filter: blur(10px);
}

.search-form {
	display: flex;
	gap: 1rem;
	flex-wrap: wrap;
}

.search-input-wrapper {
	flex: 1;
	min-width: 250px;
	position: relative;
}

	.search-input-wrapper i {
		position: absolute;
		left: 1rem;
		top: 50%;
		transform: translateY(-50%);
		color: #999;
		z-index: 1;
	}

	.search-input-wrapper .form-control {
		padding-left: 2.5rem;
		border-radius: 10px;
		border: 2px solid #e0e0e0;
		transition: all 0.3s ease;
	}

		.search-input-wrapper .form-control:focus {
			border-color: #667eea;
			box-shadow: 0 0 0 0.2rem rgba(102, 126, 234, 0.25);
		}

.btn-search,
.btn-reset {
	padding: 0.6rem 2rem;
	border-radius: 10px;
	font-weight: 600;
	transition: all 0.3s ease;
	white-space: nowrap;
}

.btn-search {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border: none;
}

	.btn-search:hover {
		transform: translateY(-2px);
		box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
	}

.btn-reset {
	background: white;
	border: 2px solid #e0e0e0;
	color: #666;
}

	.btn-reset:hover {
		border-color: #999;
		background: #f5f5f5;
	}

/* Notice Cards */
.notice-card {
	background: rgba(255, 255, 255, 0.95);
	border-radius: 15px;
	padding: 1.5rem;
	margin-bottom: 1rem;
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
	transition: all 0.3s ease;
	cursor: pointer;
	backdrop-filter: blur(10px);
	border: 2px solid transparent;
}

	.notice-card:hover {
		transform: translateY(-5px);
		box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
		border-color: #667eea;
	}

.notice-card-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 0.8rem;
	flex-wrap: wrap;
	gap: 0.5rem;
}

.notice-card-title {
	font-size: 1.25rem;
	font-weight: 600;
	color: #333;
	margin: 0;
	flex: 1;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

	.notice-card-title i {
		color: #667eea;
	}

.badge-important {
	background: linear-gradient(135deg, #ff6b6b 0%, #ee5a6f 100%);
	color: white;
	font-size: 0.75rem;
	font-weight: 600;
	padding: 0.3rem 0.8rem;
	border-radius: 20px;
	animation: pulse 2s infinite;
}

@keyframes pulse {
	0%, 100% {
		transform: scale(1);
	}

	50% {
		transform: scale(1.05);
	}
}

.notice-card-meta {
	display: flex;
	align-items: center;
	gap: 1.5rem;
	color: #999;
	font-size: 0.9rem;
	flex-wrap: wrap;
}

	.notice-card-meta i {
		margin-right: 0.3rem;
	}

.file-count {
	background: rgba(102, 126, 234, 0.1);
	color: #667eea;
	padding: 0.2rem 0.6rem;
	border-radius: 15px;
	font-weight: 600;
}

/* Empty State */
.empty-state {
	text-align: center;
	padding: 4rem 2rem;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 15px;
	backdrop-filter: blur(10px);
}

.empty-state-icon {
	font-size: 4rem;
	color: #ddd;
	margin-bottom: 1rem;
}

.empty-state h3 {
	color: #666;
	font-size: 1.5rem;
	margin-bottom: 0.5rem;
}

.empty-state p {
	color: #999;
}

/* Pagination */
.pagination {
	background: rgba(255, 255, 255, 0.95);
	padding: 1rem;
	border-radius: 15px;
	backdrop-filter: blur(10px);
	box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
}

	.pagination .page-link {
		border: none;
		color: #667eea;
		font-weight: 600;
		margin: 0 0.2rem;
		border-radius: 8px;
		transition: all 0.3s ease;
	}

		.pagination .page-link:hover {
			background: rgba(102, 126, 234, 0.1);
			transform: translateY(-2px);
		}

	.pagination .page-item.active .page-link {
		background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
		border: none;
	}

/* Modal Styles */
.modal-content {
	border-radius: 20px;
	border: none;
	overflow: hidden;
}

.modal-header {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border: none;
	padding: 1.5rem 2rem;
}

	.modal-header .modal-title {
		font-weight: 700;
		font-size: 1.5rem;
		display: flex;
		align-items: center;
		gap: 0.5rem;
	}

	.modal-header .btn-close {
		filter: brightness(0) invert(1);
	}

.modal-body {
	padding: 2rem;
}

.detail-info {
	background: #f8f9fa;
	padding: 1rem;
	border-radius: 10px;
	margin-bottom: 1.5rem;
	display: flex;
	gap: 2rem;
	flex-wrap: wrap;
}

.detail-info-item {
	display: flex;
	align-items: center;
	gap: 0.5rem;
	color: #666;
	font-size: 0.95rem;
}

	.detail-info-item i {
		color: #667eea;
	}

.detail-content {
	background: white;
	padding: 1.5rem;
	border-radius: 10px;
	border: 1px solid #e0e0e0;
	min-height: 200px;
	line-height: 1.8;
	color: #333;
	margin-bottom: 1.5rem;
}

.file-list-title {
	font-weight: 600;
	color: #333;
	margin-bottom: 1rem;
	display: flex;
	align-items: center;
	gap: 0.5rem;
}

	.file-list-title i {
		color: #667eea;
	}

.file-item {
	background: #f8f9fa;
	padding: 1rem;
	border-radius: 10px;
	margin-bottom: 0.5rem;
	display: flex;
	align-items: center;
	justify-content: space-between;
	transition: all 0.3s ease;
}

	.file-item:hover {
		background: rgba(102, 126, 234, 0.1);
		transform: translateX(5px);
	}

.file-info {
	display: flex;
	align-items: center;
	gap: 1rem;
	flex: 1;
}

.file-icon {
	background: white;
	width: 40px;
	height: 40px;
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #667eea;
	font-size: 1.2rem;
}

.file-details {
	flex: 1;
}

.file-name {
	font-weight: 600;
	color: #333;
	margin-bottom: 0.2rem;
}

.file-size {
	font-size: 0.85rem;
	color: #999;
}

.btn-download {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	color: white;
	border: none;
	padding: 0.5rem 1.5rem;
	border-radius: 8px;
	font-weight: 600;
	transition: all 0.3s ease;
}

	.btn-download:hover {
		transform: translateY(-2px);
		box-shadow: 0 5px 15px rgba(102, 126, 234, 0.4);
	}

/* Responsive Design */
@media (max-width: 768px) {
	.page-header h1 {
		font-size: 2rem;
	}

	.search-form {
		flex-direction: column;
	}

	.search-input-wrapper {
		min-width: 100%;
	}

	.btn-search,
	.btn-reset {
		width: 100%;
	}

	.notice-card-header {
		flex-direction: column;
		align-items: flex-start;
	}

	.notice-card-meta {
		gap: 1rem;
	}

	.file-info {
		flex-direction: column;
		align-items: flex-start;
	}
}

/* ========================================
   Partners Login Form
   ======================================== */

/* Partners 브랜드 아이콘 색상 변형 */
.brand-icon-wrap.partners {
	background: linear-gradient(135deg, #059669, #0d9488);
	box-shadow: 0 12px 32px rgba(5, 150, 105, 0.45);
}

@keyframes iconPulsePartners {
	0%, 100% { box-shadow: 0 12px 32px rgba(5, 150, 105, 0.45); }
	50%       { box-shadow: 0 12px 48px rgba(5, 150, 105, 0.7); }
}

.brand-icon-wrap.partners {
	animation: iconPulsePartners 3s ease-in-out infinite;
}

/* Form */
.partners-form {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

/* 플로팅 레이블 필드 */
.partners-field {
	position: relative;
}

.partners-input {
	width: 100%;
	padding: 1.375rem 1rem 0.5rem;
	background: rgba(255, 255, 255, 0.07);
	border: 1px solid rgba(255, 255, 255, 0.12);
	border-radius: 12px;
	font-size: 0.95rem;
	color: #fff;
	outline: none;
	transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
	box-sizing: border-box;
}

.partners-input::placeholder {
	color: transparent;
}

.partners-input:focus {
	border-color: rgba(13, 148, 136, 0.7);
	background: rgba(255, 255, 255, 0.1);
	box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.18);
}

/* 플로팅 레이블 */
.partners-label {
	position: absolute;
	left: 1rem;
	top: 50%;
	transform: translateY(-50%);
	font-size: 0.95rem;
	font-weight: 400;
	color: rgba(255, 255, 255, 0.4);
	display: flex;
	align-items: center;
	gap: 0.4rem;
	pointer-events: none;
	transition: top 0.2s ease, font-size 0.2s ease, color 0.2s ease, font-weight 0.2s ease;
}

.partners-label i {
	font-size: 0.85rem;
	transition: font-size 0.2s ease;
}

/* 입력 중이거나 값이 있을 때 레이블 플로팅 */
.partners-input:focus ~ .partners-label,
.partners-input:not(:placeholder-shown) ~ .partners-label,
.partners-input-wrap .partners-input:focus ~ .partners-label,
.partners-input-wrap .partners-input:not(:placeholder-shown) ~ .partners-label {
	top: 0.625rem;
	transform: translateY(0);
	font-size: 0.72rem;
	font-weight: 600;
	color: rgba(13, 148, 136, 0.9);
	letter-spacing: 0.03em;
}

.partners-input:focus ~ .partners-label i,
.partners-input:not(:placeholder-shown) ~ .partners-label i,
.partners-input-wrap .partners-input:focus ~ .partners-label i,
.partners-input-wrap .partners-input:not(:placeholder-shown) ~ .partners-label i {
	font-size: 0.68rem;
}

/* 비밀번호 필드 래퍼 */
.partners-input-wrap {
	position: relative;
}

.partners-input-wrap .partners-input {
	padding-right: 3rem;
}

/* 비밀번호 토글 버튼 */
.btn-toggle-pw {
	position: absolute;
	right: 0.875rem;
	top: 50%;
	transform: translateY(-50%);
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.35);
	cursor: pointer;
	padding: 0;
	line-height: 1;
	font-size: 0.9rem;
	transition: color 0.2s ease;
}

.btn-toggle-pw:hover {
	color: rgba(255, 255, 255, 0.7);
}

/* 로그인 버튼 */
.btn-partners-login {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	padding: 1rem;
	margin-top: 0.5rem;
	background: linear-gradient(135deg, #059669 0%, #0d9488 100%);
	border: none;
	border-radius: 14px;
	font-size: 1rem;
	font-weight: 700;
	color: #fff;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	box-shadow: 0 8px 24px rgba(5, 150, 105, 0.4);
	letter-spacing: 0.02em;
}

.btn-partners-login:hover:not(:disabled) {
	transform: translateY(-2px);
	box-shadow: 0 12px 32px rgba(5, 150, 105, 0.55);
}

.btn-partners-login:active:not(:disabled) {
	transform: translateY(0);
}

.btn-partners-login:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

/* ───────────────────────────────────────────
   MFA Step
─────────────────────────────────────────── */

/* 스텝 전환 슬라이드 애니메이션 */
@keyframes stepSlideOut {
	from { opacity: 1; transform: translateX(0); }
	to   { opacity: 0; transform: translateX(-32px); }
}

@keyframes stepSlideIn {
	from { opacity: 0; transform: translateX(32px); }
	to   { opacity: 1; transform: translateX(0); }
}

.partners-step-out {
	animation: stepSlideOut 0.28s ease forwards;
}

.partners-step-in {
	animation: stepSlideIn 0.32s ease forwards;
}

/* MFA 안내 박스 */
.mfa-info {
	display: flex;
	align-items: flex-start;
	gap: 0.75rem;
	padding: 0.875rem 1rem;
	background: rgba(13, 148, 136, 0.1);
	border: 1px solid rgba(13, 148, 136, 0.25);
	border-radius: 12px;
}

.mfa-info-icon {
	font-size: 1.1rem;
	color: rgba(13, 148, 136, 0.85);
	margin-top: 0.1rem;
	flex-shrink: 0;
}

.mfa-info-text {
	font-size: 0.85rem;
	color: rgba(255, 255, 255, 0.65);
	line-height: 1.5;
	margin: 0;
}

/* OTP 입력 필드 — 숫자 중앙 정렬 + 넓은 자간 */
.mfa-otp-input {
	text-align: center;
	letter-spacing: 0.35em;
	font-size: 1.25rem;
	font-weight: 600;
}

.mfa-otp-input:focus ~ .partners-label,
.mfa-otp-input:not(:placeholder-shown) ~ .partners-label {
	letter-spacing: 0.03em;
	font-size: 0.72rem;
}

/* MFA 뒤로가기 버튼 */
.btn-mfa-back {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
	width: 100%;
	padding: 0.5rem;
	background: none;
	border: none;
	color: rgba(255, 255, 255, 0.4);
	font-size: 0.82rem;
	cursor: pointer;
	transition: color 0.2s ease;
}

.btn-mfa-back:hover {
	color: rgba(255, 255, 255, 0.75);
}

.btn-mfa-back i {
	font-size: 0.75rem;
}
