@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@300;400;500;600;700&family=PT+Mono&display=swap");

:root {
	--text-color: #2d3748;
	--border-color: #e2e8f0;
	--bg-color: rgba(255, 255, 255, 0.96);
	--primary-color: #4a6cf7;
	--transition: all 0.25s cubic-bezier(0.645, 0.045, 0.355, 1);
}

/* Base Styles */
body {
	/* font-family: "PT Mono", monospace; */
	font-family: "Gill Sans", "Gill Sans MT", Calibri, "Trebuchet MS", sans-serif;
	font-size: 0.8rem;
	line-height: 1.5;
	color: var(--text-color);
	min-height: 100vh;
	margin: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
}

/* Background overlay with blur and dark effect */
body::before {
	content: "";
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	background: url(../../Img/wai_building.jpg) center/cover no-repeat;
	filter: blur(8px) brightness(0.6);
	z-index: -1;
}
/* Container Styles */
.form-container {
	max-width: 480px; /* Increased from 400px */
	width: 100%;
	margin: 0 20px;
	animation: fadeInUp 0.6s ease-out;
}

.border-form {
	background: rgba(255, 255, 255, 0.88);
	border-radius: 14px;
	padding: 3rem;
	backdrop-filter: blur(12px);
	box-shadow: 0 12px 36px rgba(0, 0, 0, 0.1);
	border: 1px solid rgba(255, 255, 255, 0.3);
	transition: all 0.4s ease;
}

/* Hover effect for the form */
.border-form:hover {
	background: rgba(255, 255, 255, 0.92);
	backdrop-filter: blur(14px);
}

/* Typography */
.text-center h3 {
	font-size: 1.5rem;
	font-weight: 600;
	color: var(--text-color);
	letter-spacing: -0.5px;
}

.text-center p {
	color: #64748b;
	font-size: 0.95rem;
}

/* Form Elements */
.form-group {
	margin-bottom: 1.5rem;
}

.form-control {
	width: 100%;
	padding: 0.85rem 1.25rem;
	border: 1px solid var(--border-color);
	border-radius: 8px;
	font-size: 0.95rem;
	transition: var(--transition);
	background: rgba(255, 255, 255, 0.8);
}

.form-control:focus {
	outline: none;
	border-color: var(--primary-color);
	box-shadow: 0 0 0 3px rgba(74, 108, 247, 0.15);
	transform: translateY(-1px);
}

.is-invalid {
	border-color: #f56565;
}

/* Button Styles */
.btn {
	display: block;
	width: 100%;
	padding: 0.85rem;
	margin-top: 0.5rem;
	background-color: var(--primary-color);
	color: white;
	border: none;
	border-radius: 8px;
	font-size: 0.95rem;
	font-weight: 500;
	cursor: pointer;
	transition: var(--transition);
	will-change: transform;
}

.btn:hover {
	background-color: #3a5bd9;
	transform: translateY(-2px);
	box-shadow: 0 4px 12px rgba(74, 108, 247, 0.2);
}

.btn:active {
	transform: translateY(0);
}

/* Checkbox Styles */
.custom-control {
	position: relative;
	display: flex;
	align-items: center;
	margin-bottom: 1rem;
	cursor: pointer;
}

.custom-control-input {
	position: absolute;
	opacity: 0;
}

.custom-control-label {
	padding-left: 28px;
	color: #64748b;
	font-size: 0.9rem;
}

.custom-control-label::before {
	content: "";
	position: absolute;
	left: 0;
	top: 2px;
	width: 18px;
	height: 18px;
	border: 1px solid var(--border-color);
	border-radius: 4px;
	background: white;
	transition: var(--transition);
}

.custom-control-input:checked ~ .custom-control-label::before {
	background-color: var(--primary-color);
	border-color: var(--primary-color);
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
	background-position: center;
	background-repeat: no-repeat;
}

/* Link Styles */
a {
	color: var(--primary-color);
	text-decoration: none;
	font-size: 0.9rem;
	transition: var(--transition);
	display: inline-block;
}

a:hover {
	color: #3a5bd9;
	transform: translateX(2px);
}

/* Error Messages */
.text-danger {
	color: #f56565;
	font-size: 0.8rem;
	margin-top: 0.25rem;
	display: block;
	animation: shake 0.4s ease-in-out;
}

.alert-message {
	font-size: 0.85rem;
	margin-bottom: 1.5rem;
	padding: 0.75rem 1rem;
	border-radius: 8px;
	background: #fff5f5;
	color: #f56565;
	border: 1px solid #fed7d7;
	animation: fadeIn 0.3s ease-out;
}

/* Footer Styles */
.logo {
	margin-top: 2.5rem;
	font-size: 0.75rem;
	color: #94a3b8;
	letter-spacing: 0.5px;
}

/* Animations */
@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

@keyframes fadeIn {
	from {
		opacity: 0;
	}
	to {
		opacity: 1;
	}
}

@keyframes shake {
	0%,
	100% {
		transform: translateX(0);
	}
	20%,
	60% {
		transform: translateX(-4px);
	}
	40%,
	80% {
		transform: translateX(4px);
	}
}

/* Responsive adjustments */
@media (max-width: 600px) {
	.form-container {
		max-width: 90%; /* More width on mobile */
	}

	.border-form {
		padding: 2.5rem 1.75rem; /* Adjusted padding for mobile */
	}
}

@media (max-width: 480px) {
	.border-form {
		padding: 2rem 1.5rem;
		backdrop-filter: blur(8px); /* Less blur on small devices */
	}
}
