 * {
	margin: 0;
	padding: 0;
	box-sizing: border-box;
}

body {
	font-family: 'Poppins', sans-serif;
	background: linear-gradient(135deg, rgba(175, 49, 45, 0.05) 0%, rgba(0, 123, 255, 0.05) 100%);
	height: 100vh;
	width: 100vw;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 0;
	overflow: hidden;
}

.login-wrapper {
	height: 100vh;
	width: 100vw;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 15px;
	overflow: hidden;
}

.login-container {
	width: 100%;
	max-width: 420px;
	height: auto;
	max-height: 100vh;
	display: flex;
	flex-direction: column;
}

.login-card {
	background: #ffffff;
	border-radius: 24px;
	box-shadow: 0 20px 50px rgba(175, 49, 45, 0.12);
	padding: 1.5rem 1.75rem;
	border: 1px solid rgba(175, 49, 45, 0.1);
	animation: fadeInUp 0.6s ease;
	display: flex;
	flex-direction: column;
	width: 100%;
}

@keyframes fadeInUp {
	from {
		opacity: 0;
		transform: translateY(20px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.brand-header {
	text-align: center;
	margin-bottom: 0.75rem;
}

.brand-logo {
	display: flex;
	justify-content: center;
	align-items: center;
	text-decoration: none;
	margin-bottom: 0.5rem;
}

.brand-logo-img {
	height: 70px;
	width: auto;
	display: block;
	margin: 0 auto;
}

.brand-tagline {
	color: #6c757d;
	font-size: 0.75rem;
	font-weight: 500;
	letter-spacing: 0.5px;
	text-transform: uppercase;
	border-top: 1px solid rgba(175, 49, 45, 0.15);
	padding-top: 0.5rem;
	margin-top: 0;
}

.login-header {
	text-align: center;
	margin-bottom: 1rem;
}

.login-header p {
	color: #6c757d;
	font-size: 0.8rem;
	font-weight: 400;
	margin: 0;
}

form {
	display: flex;
	flex-direction: column;
}

.form-group {
	margin-bottom: 0.85rem;
}

.input-label {
	display: block;
	margin-bottom: 4px;
	font-weight: 500;
	font-size: 0.7rem;
	color: #495057;
	letter-spacing: 0.3px;
}

.input-wrapper {
	position: relative;
	display: flex;
	align-items: center;
}

.input-icon {
	position: absolute;
	left: 12px;
	color: #af312d;
	font-size: 0.9rem;
	opacity: 0.7;
}

.form-control {
	width: 100%;
	padding: 10px 12px 10px 38px;
	font-size: 0.85rem;
	border: 2px solid #e9ecef;
	border-radius: 12px;
	background: #f8f9fa;
	transition: all 0.3s ease;
	font-family: 'Poppins', sans-serif;
}

.form-control:focus {
	outline: none;
	border-color: #af312d;
	background: #ffffff;
	box-shadow: 0 0 0 3px rgba(175, 49, 45, 0.1);
}

.form-control::placeholder {
	color: #adb5bd;
	font-weight: 300;
	font-size: 0.8rem;
}

.form-control.is-invalid {
	border-color: #dc3545;
	background: #fff5f5;
}

.form-control.is-valid {
	border-color: #28a745;
	background: #f0fff4;
}

.password-wrapper {
	position: relative;
}

.password-toggle {
	position: absolute;
	right: 12px;
	color: #6c757d;
	cursor: pointer;
	font-size: 0.9rem;
	transition: color 0.3s ease;
}

.password-toggle:hover {
	color: #af312d;
}

.form-options {
	display: flex;
	justify-content: space-between;
	align-items: center;
	margin-bottom: 1rem;
}

.remember-me {
	display: flex;
	align-items: center;
	gap: 5px;
}

.custom-checkbox {
	width: 14px;
	height: 14px;
	accent-color: #af312d;
	cursor: pointer;
}

.remember-label {
	font-size: 0.7rem;
	color: #6c757d;
	cursor: pointer;
}

.forgot-link {
	font-size: 0.7rem;
	color: #af312d;
	text-decoration: none;
	font-weight: 600;
	transition: color 0.3s ease;
}

.forgot-link:hover {
	color: #8f2825;
	text-decoration: underline;
}

.btn-login {
	width: 100%;
	padding: 11px;
	background: linear-gradient(135deg, #af312d 0%, #c53a35 100%);
	border: none;
	border-radius: 12px;
	color: white;
	font-weight: 600;
	font-size: 0.85rem;
	letter-spacing: 0.5px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	transition: all 0.3s ease;
	border: 1px solid rgba(255, 255, 255, 0.2);
	margin-bottom: 1rem;
	cursor: pointer;
}

.btn-login:hover:not(:disabled) {
	background: linear-gradient(135deg, #8f2825 0%, #af312d 100%);
	transform: translateY(-2px);
	box-shadow: 0 12px 24px rgba(175, 49, 45, 0.25);
}

.btn-login:hover:not(:disabled) i {
	transform: translateX(5px);
}

.btn-login:disabled {
	opacity: 0.6;
	cursor: not-allowed;
}

.btn-login i {
	font-size: 0.9rem;
	transition: transform 0.3s ease;
}

.btn-login .spinner-border {
	width: 1rem;
	height: 1rem;
	border-width: 2px;
}

.alert {
	padding: 0.65rem;
	margin-bottom: 1rem;
	border-radius: 12px;
	font-size: 0.75rem;
	display: none;
	animation: slideDown 0.3s ease;
}

@keyframes slideDown {
	from {
		opacity: 0;
		transform: translateY(-10px);
	}
	to {
		opacity: 1;
		transform: translateY(0);
	}
}

.alert-danger {
	background: rgba(220, 53, 69, 0.1);
	border: 1px solid rgba(220, 53, 69, 0.3);
	color: #dc3545;
}

.alert-success {
	background: rgba(40, 167, 69, 0.1);
	border: 1px solid rgba(40, 167, 69, 0.3);
	color: #28a745;
}

.admin-message {
	background: rgba(175, 49, 45, 0.04);
	border-radius: 12px;
	padding: 0.65rem;
	margin-bottom: 1rem;
	border: 1px dashed rgba(175, 49, 45, 0.3);
	display: flex;
	align-items: center;
	gap: 10px;
}

.admin-icon {
	width: 32px;
	height: 32px;
	background: rgba(175, 49, 45, 0.12);
	border-radius: 8px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #af312d;
	font-size: 0.95rem;
	flex-shrink: 0;
}

.admin-text {
	flex: 1;
}

.admin-title {
	font-size: 0.7rem;
	font-weight: 700;
	color: #af312d;
	margin-bottom: 2px;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

.admin-desc {
	font-size: 0.65rem;
	color: #6c757d;
	line-height: 1.3;
}

.features-section {
	display: flex;
	justify-content: space-between;
	padding-top: 0.75rem;
	border-top: 1px solid rgba(175, 49, 45, 0.15);
	margin-top: 0;
}

.feature-item {
	text-align: center;
	flex: 1;
}

.feature-icon {
	color: #af312d;
	font-size: 0.95rem;
	margin-bottom: 3px;
	opacity: 0.85;
}

.feature-text {
	font-size: 0.55rem;
	color: #6c757d;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.5px;
}

@media (max-width: 480px) {
	.login-wrapper {
		padding: 10px;
	}
	
	.login-card {
		padding: 1.25rem 1.5rem;
		border-radius: 20px;
	}
	
	.brand-logo-img {
		height: 60px;
	}
}

@media (max-height: 650px) {
	.login-card {
		padding: 1.25rem 1.5rem;
	}
	
	.brand-logo-img {
		height: 55px;
	}
	
	.brand-header {
		margin-bottom: 0.5rem;
	}
	
	.login-header {
		margin-bottom: 0.75rem;
	}
	
	.form-group {
		margin-bottom: 0.7rem;
	}
	
	.admin-message {
		padding: 0.55rem;
		margin-bottom: 0.75rem;
	}
	
	.features-section {
		padding-top: 0.6rem;
	}
}