/* ログインページ用CSS */
html,
body {
	height: 100%;
	margin: 0;
	padding: 0;
}

body {
	display: flex;
	align-items: center;
	justify-content: center;
	padding-top: 40px;
	padding-bottom: 40px;
	background-color: #f5f5f5;
	background-image: url('https://backyard.tantantan.love/include/img/main-01.webp');
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	background-attachment: fixed;
	position: relative;
}

body::before {
	content: '';
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background-color: rgba(0, 0, 0, 0.3);
	z-index: 0;
}

body.background-loaded {
	background-image: url('https://backyard.tantantan.love/include/img/main-01.webp');
}

.form-signin {
	width: 100%;
	max-width: 400px;
	padding: 30px;
	margin: auto;
	background: rgba(255, 255, 255, 0.95);
	border-radius: 10px;
	position: relative;
	z-index: 1;
}

.form-signin .checkbox {
	font-weight: 400;
}

.form-signin .form-control {
	position: relative;
	box-sizing: border-box;
	height: auto;
	padding: 12px;
	font-size: 16px;
	border-radius: 6px;
}

.form-signin .form-control:focus {
	z-index: 2;
	border-color: #007bff;
	box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.form-signin input[type="text"] {
	margin-bottom: 0;
	border-bottom-right-radius: 6px;
	border-bottom-left-radius: 6px;
}

.form-signin input[type="password"] {
	margin-bottom: 0;
	border-bottom-right-radius: 0;
	border-bottom-left-radius: 0;
}

.form-signin h1 {
	font-size: 24px;
	font-weight: 600;
	color: #333;
	margin-bottom: 20px;
}

.form-signin .btn {
	background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
	border: none;
	color: white;
	padding: 12px;
	font-size: 16px;
	font-weight: 600;
	border-radius: 6px;
	transition: all 0.3s ease;
}

.form-signin .btn:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

.form-signin .btn:active {
	transform: translateY(0);
}

.logo-placeholder {
	width: 180px;
	height: 60px;
	margin: 0 auto 20px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: transparent;
	position: relative;
	overflow: hidden;
}

.logo-placeholder img {
	max-width: 100%;
	height: auto;
	opacity: 0;
	transition: opacity 0.5s ease-in;
}

.logo-placeholder.logo-loaded img {
	opacity: 1;
}

#loadingImage {
	display: none;
	position: fixed;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	width: 80px;
	height: 80px;
	background: url('data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMTAwIiBoZWlnaHQ9IjEwMCIgdmlld0JveD0iMCAwIDEwMCAxMDAiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+PGNpcmNsZSBjeD0iNTAiIGN5PSI1MCIgcj0iNDAiIHN0cm9rZT0iIzY2N2VlYSIgc3Ryb2tlLXdpZHRoPSI4IiBmaWxsPSJub25lIiBzdHJva2UtZGFzaGFycmF5PSI2MCwzMCIgc3Ryb2tlLWxpbmVjYXA9InJvdW5kIj48YW5pbWF0ZVRyYW5zZm9ybSBhdHRyaWJ1dGVOYW1lPSJ0cmFuc2Zvcm0iIHR5cGU9InJvdGF0ZSIgZnJvbT0iMCA1MCA1MCIgdG89IjM2MCA1MCA1MCIgZHVyPSIxcyIgcmVwZWF0Q291bnQ9ImluZGVmaW5pdGUiLz48L2NpcmNsZT48L3N2Zz4=') center center no-repeat;
	background-size: contain;
	z-index: 9999;
}

.input-group-text {
	background: white;
	border-left: none;
	border-radius: 0 6px 6px 0;
}

.input-group .form-control {
	border-right: none;
	border-radius: 6px 0 0 6px;
}

.checkbox label {
	display: flex;
	align-items: center;
	font-size: 14px;
	color: #666;
}

.checkbox input[type="checkbox"] {
	margin-right: 8px;
}

.text-muted {
	font-size: 14px;
	color: #999 !important;
}

/* レスポンシブ対応 */
@media (max-width: 576px) {
	.form-signin {
		max-width: 90%;
		padding: 20px;
	}

	body {
		padding-top: 20px;
		padding-bottom: 20px;
	}

	.form-signin h1 {
		font-size: 20px;
	}
}
