/* ========================================
   Salary2023 - Login Page Styles
   Modern Glassmorphism Design
   ======================================== */

/* ========== Page Background ========== */
html,
body {
	margin: 0;
	padding: 0;
	min-height: 100vh;
	font-family: 'Tajawal-Regular', 'Segoe UI', Tahoma, sans-serif;
	background: linear-gradient(-45deg, #00a651, #00c853, #002B5B, #004080);
	background-size: 400% 400%;
	animation: gradientShift 15s ease infinite;
}

@keyframes gradientShift {
	0% {
		background-position: 0% 50%;
	}

	50% {
		background-position: 100% 50%;
	}

	100% {
		background-position: 0% 50%;
	}
}

/* ========== Font Face ========== */
@font-face {
	font-family: 'Tajawal-Regular';
	src: url('../webfonts/Tajawal-Regular.ttf') format('truetype');
	font-weight: normal;
	font-style: normal;
	font-display: swap;
}

/* ========== Login Container ========== */
.login-wrapper {
	min-height: 100vh;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 1rem;
}

/* ========== Login Card ========== */
.card {
	background: rgba(255, 255, 255, 0.9);
	backdrop-filter: blur(20px);
	-webkit-backdrop-filter: blur(20px);
	border: 1px solid rgba(255, 255, 255, 0.3);
	border-radius: 1.5rem !important;
	box-shadow: 0 25px 50px rgba(0, 0, 0, 0.2);
	overflow: hidden;
	width: 100%;
	max-width: 420px;
	animation: slideUp 0.6s ease forwards;
}

@keyframes slideUp {
	from {
		opacity: 0;
		transform: translateY(30px);
	}

	to {
		opacity: 1;
		transform: translateY(0);
	}
}

/* ========== Card Title Section ========== */
.card-titleBG {
	width: 100%;
	background: linear-gradient(135deg, #00a651, #00c853) !important;
	border-radius: 0 !important;
	padding: 1.5rem !important;
	position: relative;
	overflow: hidden;
}

.card-titleBG::before {
	content: '';
	position: absolute;
	top: -50%;
	left: -50%;
	width: 200%;
	height: 200%;
	background: radial-gradient(circle, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
	animation: shimmer 3s infinite;
}

@keyframes shimmer {
	0% {
		transform: rotate(0deg);
	}

	100% {
		transform: rotate(360deg);
	}
}

.card-titleBG h3 {
	margin: 0;
	font-size: 1.5rem;
	font-weight: 700;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 0.75rem;
	position: relative;
	z-index: 1;
}

.card-titleBG i {
	font-size: 1.75rem;
	color: #ffc107 !important;
}

/* ========== Card Body ========== */
.card-body {
	padding: 2rem !important;
}

/* ========== Form Labels ========== */
.for-label {
	font-size: 1rem;
	font-weight: 600;
	color: #002B5B;
	margin-bottom: 0.5rem;
	display: block;
}

/* ========== Form Controls ========== */
.form-control {
	width: 100%;
	padding: 0.875rem 1rem;
	font-size: 1rem;
	font-family: inherit;
	border: 2px solid #e9ecef;
	border-radius: 0.75rem !important;
	background: #ffffff;
	transition: all 0.3s ease;
}

.form-control:focus {
	border-color: #00a651 !important;
	box-shadow: 0 0 0 4px rgba(0, 166, 81, 0.15) !important;
	outline: none;
}

.form-control::placeholder {
	color: #adb5bd;
}

/* ========== Validation Code Section ========== */
.validation-section {
	background: linear-gradient(135deg, #f8f9fa, #e9ecef);
	padding: 1rem;
	border-radius: 0.75rem;
	text-align: center;
	margin-bottom: 1rem;
}

/* ========== Login Button ========== */
.btn-success {
	background: linear-gradient(135deg, #00a651, #00c853) !important;
	border: none !important;
	padding: 0.875rem 2rem !important;
	font-size: 1.125rem !important;
	font-weight: 700 !important;
	border-radius: 0.75rem !important;
	color: #ffffff !important;
	cursor: pointer;
	transition: all 0.3s ease;
	box-shadow: 0 4px 15px rgba(0, 166, 81, 0.3);
	width: 100%;
}

.btn-success:hover {
	transform: translateY(-2px);
	box-shadow: 0 6px 20px rgba(0, 166, 81, 0.4);
}

.btn-success:active {
	transform: translateY(0);
}

/* ========== Error Messages ========== */
.text-danger,
[style*="color:#FF3300"],
[style*="color:Red"] {
	color: #dc3545 !important;
	font-size: 0.875rem;
	margin-top: 0.5rem;
	display: block;
}

/* ========== Icons ========== */
.for-Icon {
	color: #8FE3CF;
}

/* ========== Input Group Addons ========== */
.input-group-text {
	background: #f8f9fa;
	border: 2px solid #e9ecef;
	border-left: none;
	border-radius: 0 0.75rem 0.75rem 0 !important;
	padding: 0.875rem 1rem;
}

.input-group .form-control {
	border-radius: 0.75rem 0 0 0.75rem !important;
}

/* ========== Responsive Adjustments ========== */
@media (max-width: 576px) {
	.card {
		margin: 1rem;
		max-width: none;
	}

	.card-body {
		padding: 1.5rem !important;
	}

	.card-titleBG h3 {
		font-size: 1.25rem;
	}

	.for-label {
		font-size: 0.9375rem;
	}

	.form-control {
		padding: 0.75rem;
		font-size: 1rem;
	}
}

@media (max-width: 375px) {
	.card-body {
		padding: 1rem !important;
	}

	.btn-success {
		padding: 0.75rem 1.5rem !important;
		font-size: 1rem !important;
	}
}

/* ========== Focus Visible ========== */
.form-control:focus-visible,
.btn:focus-visible {
	outline: 2px solid #00a651;
	outline-offset: 2px;
}

/* ========== Selection ========== */
::selection {
	background: #00a651;
	color: #ffffff;
}