﻿/* Reset and Base Styles */
body, html {
	height: 100%;
	margin: 0;
	font-family: 'Roboto', sans-serif;
	background: #f8f9fb;
}

/* Container Layout */
.login-page-container {
	display: flex;
	height: 100vh;
	width: 100%;
}

/* Left Panel */
.login-left {
	flex-basis: 35%;
	min-width: 320px;
	background: linear-gradient(135deg, #ffffff, #f2f2f2);
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 30px;
	border-top-left-radius: 16px;
	border-bottom-left-radius: 16px;
	box-shadow: 4px 0 25px rgba(0, 0, 0, 0.05);
	animation: slideInLeft 0.6s ease-out;
}

/* Login Form Container */
.login-form {
	background: #ffffff;
	padding: 40px 30px;
	border-radius: 16px;
	box-shadow: 0 12px 24px rgba(0, 0, 0, 0.08);
	border: 1px solid #e0e0e0;
	width: 100%;
	max-width: 400px;
}

/* Header */
.form-top {
	display: flex;
	justify-content: space-between;
	align-items: center;
	border-bottom: 1px solid #eee;
	padding-bottom: 15px;
	margin-bottom: 20px;
}

.form-top-left h3 {
	margin: 0;
	color: #C72646;
	font-weight: 700;
	font-size: 22px;
}

.form-top-left p {
	margin-top: 5px;
	font-size: 14px;
	color: #C72646;
}

.form-top-right i {
	font-size: 26px;
	color: #C72646;
}

/* Input Fields */
.form-group input.form-control {
	width: 100%;
	height: 48px;
	border-radius: 8px;
	border: 1px solid #ccc;
	margin-bottom: 15px;
	padding: 10px 15px;
	font-size: 15px;
	transition: border-color 0.3s ease;
	box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

	.form-group input.form-control:focus {
		border-color: #C72646;
		outline: none;
		box-shadow: 0 0 0 3px rgba(199, 38, 70, 0.1);
	}

/* Submit Button */
.btn {
	width: 100%;
	padding: 12px;
	background-color: #C72646;
	color: #fff;
	font-weight: bold;
	border: none;
	border-radius: 8px;
	transition: background 0.3s ease, transform 0.2s;
	cursor: pointer;
}

	.btn:hover {
		background-color: #a81c3a;
		transform: scale(1.02);
		color: #fff;
	}

/* Error Message */
#errorcnt {
	color: red;
	font-size: 14px;
	margin-top: 10px;
	text-align: center;
}

/* Social Info */
.social-login p {
	font-size: 14px;
	color: #C72646;
	margin-top: 10px;
	text-align: center;
}

/* Facebook Button */
.btn-link-1-facebook {
	background: #3b5998;
	color: #fff;
	margin-top: 10px;
	display: inline-block;
	padding: 10px 14px;
	border-radius: 6px;
	text-decoration: none;
	transition: background 0.3s ease;
	font-size: 14px;
}

	.btn-link-1-facebook:hover {
		background: #2d4373;
		color: #fff;
	}

	.btn-link-1-facebook i {
		font-size: 13px;
		margin-right: 6px;
		vertical-align: middle;
	}

/* Right Panel */
.login-right {
	flex-basis: 65%;
	background: #003366;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	position: relative;
}

	.login-right img {
		width: 100%;
		height: 100%;
		object-fit: cover;
		animation: zoomIn 1s ease;
	}

/* Footer */
footer {
	background: #ffffff;
	padding: 15px 0;
	text-align: center;
	font-size: 14px;
	color: #555;
}

.footer-border {
	border-top: 1px solid #ddd;
	margin: 10px 0;
}

footer a {
	color: #C72646;
	text-decoration: none;
}

	footer a:hover {
		text-decoration: underline;
	}

/* Animations */
@keyframes slideInLeft {
	from {
		transform: translateX(-100px);
		opacity: 0;
	}

	to {
		transform: translateX(0);
		opacity: 1;
	}
}

@keyframes zoomIn {
	from {
		transform: scale(1.05);
		opacity: 0;
	}

	to {
		transform: scale(1);
		opacity: 1;
	}
}

/* Responsive */
@media (max-width: 768px) {
	.login-page-container {
		flex-direction: column;
		height: auto; /* ✅ Allow full height expansion */
	}

	.login-left,
	.login-right {
		flex-basis: auto;
		width: 100%;
		border-radius: 0;
	}

	.login-right {
		height: 200px;
	}

	.login-form {
		margin-bottom: 20px; /* ✅ Prevent overlap with footer */
	}
}

@media (max-width: 768px) {
	footer {
		padding: 20px 10px;
		font-size: 13px;
		line-height: 1.5;
	}

		footer p {
			margin: 0;
			padding: 0 10px;
			word-break: break-word;
		}

	.footer-border {
		margin: 10px 0;
	}

	footer a {
		display: inline-block;
		word-break: break-word;
	}
}
