/* Modern Animated Background */
.accounts {
	min-height: 100vh;
	width: 100%;
	/* Use a lively background image with overlay */
	background: linear-gradient(135deg, rgba(4, 23, 102, 0.85), rgba(0, 0, 0, 0.7)), url('/asset/bg2.jpg');
	background-size: cover;
	background-position: center;
	background-attachment: fixed;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 10px;
	/* Reduced mobile padding */
	font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
	animation: gradientMove 15s ease infinite alternate;
}

/* Card Styling - Glassmorphism Effect */
.accounts div section {
	background: rgba(255, 255, 255, 0.95);
	/* Semi-transparent white */
	backdrop-filter: blur(10px);
	/* Blur effect */
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 20px;
	padding: 40px;
	width: 100%;
	max-width: 450px;
	/* Optimal width for login forms */
	box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
	margin: 0 auto;
	position: relative;
	overflow: hidden;
	animation: slideUp 0.8s ease-out;
	/* Slide up animation */
}

/* Wider card for Registration */
.accounts div section.auth-card-lg {
	max-width: 750px;
}

/* Custom width for Login pages (Admin & User) */
.accounts div section.medium-auth-card {
	max-width: 650px;
}

/* Logo Styling */
.accounts a img {
	height: 60px;
	/* Slightly smaller logo for better balance */
	width: auto;
	margin-bottom: 20px;
	display: block;
	margin-left: auto;
	margin-right: auto;
	transition: transform 0.3s ease;
}

.accounts a img:hover {
	transform: scale(1.05);
	/* Interactive hover */
}

/* Typography */
.accounts div section h1 {
	color: #041766;
	font-size: 28px !important;
	font-weight: 700;
	text-align: center;
	margin-bottom: 10px;
	letter-spacing: -0.5px;
}

.accounts .text-muted {
	font-size: 14px;
	color: #666 !important;
	margin-bottom: 30px;
	text-align: center;
}

/* Form Inputs */
.form-floating>.form-control {
	border-radius: 12px;
	border: 1px solid #e0e0e0;
	height: 55px;
	/* Taller inputs */
	padding-left: 20px;
	font-size: 15px;
	transition: all 0.3s ease;
	background-color: #f9f9f9;
}

.form-floating>.form-control:focus {
	border-color: #041766;
	box-shadow: 0 0 0 4px rgba(4, 23, 102, 0.1);
	/* Custom focus ring */
	background-color: #fff;
}

.form-floating>label {
	padding-left: 20px;
	color: #888;
}

/* Submit Button */
.button {
	width: 100%;
	padding: 14px;
	background: linear-gradient(135deg, #041766 0%, #2a52be 100%);
	/* Gradient button */
	color: #fff;
	border: none;
	border-radius: 12px;
	font-weight: 700;
	font-size: 16px;
	letter-spacing: 0.5px;
	cursor: pointer;
	margin-top: 20px;
	margin-bottom: 20px;
	box-shadow: 0 4px 15px rgba(4, 23, 102, 0.3);
	transition: all 0.3s ease;
}

.button:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(4, 23, 102, 0.4);
}

.button:disabled {
	background: #ccc;
	cursor: not-allowed;
	transform: none;
	box-shadow: none;
}

/* Links */
.text-primary {
	color: #041766 !important;
	font-weight: 500;
}

.text-primary a {
	color: #2a52be;
	text-decoration: none;
	font-weight: 700;
	transition: color 0.2s ease;
}

.text-primary a:hover {
	color: #041766;
	text-decoration: underline;
}

/* Animations */
@keyframes slideUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* Responsive adjustments */
@media (max-width: 576px) {
	.accounts {
		padding: 25px;
	}

	.accounts div section {
		padding: 30px 20px;
	}

	.accounts div section h1 {
		font-size: 24px;
	}
}