/* Promostar — login page (brand: royal blue, yellow accent, navy text) */

:root {
	--promo-blue: #004b91;
	--promo-blue-dark: #003057;
	--promo-yellow: #fcd116;
	--promo-white: #ffffff;
}

.login-page {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: linear-gradient(165deg, var(--promo-blue-dark) 0%, var(--promo-blue) 55%, #005daa 100%);
	font-family: 'Cairo', 'Tajawal', 'Segoe UI', sans-serif;
	padding: 1rem;
}

.login-form-panel {
	flex: none;
	width: 100%;
	max-width: 420px;
	background: var(--promo-white);
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 2.5rem;
	border-radius: 14px;
	box-shadow: 0 14px 40px rgba(0, 48, 87, 0.45);
}

.login-form-wrap {
	width: 100%;
	max-width: 340px;
}

.login-form-brand {
	text-align: center;
	margin-bottom: 1rem;
}

.login-brand-logo {
	max-width: 100%;
	width: fit-content;
	height: auto;
	margin: 0 auto 1rem;
	padding: 0;
	border-radius: 12px;
	background-color: transparent;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: visible;
	box-shadow: none;
	border: none;
}

.login-brand-logo img {
	display: block;
	max-width: min(220px, 100%);
	max-height: 120px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.login-form-brand-title {
	font-size: 1.1rem;
	font-weight: 800;
	line-height: 1.35;
	color: var(--promo-blue);
	margin: 0;
}

.login-field {
	margin-bottom: 1rem;
}

.login-field label {
	display: block;
	font-size: 0.75rem;
	font-weight: 700;
	color: var(--promo-blue);
	margin-bottom: 0.35rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
}

.login-field input {
	width: 100%;
	height: 46px;
	padding: 0 0.85rem;
	border: 1.5px solid #b8cfe8;
	border-radius: 10px;
	font-size: 0.9rem;
	font-family: inherit;
	outline: none;
	box-sizing: border-box;
}

.login-field input:focus {
	border-color: var(--promo-blue);
	box-shadow: 0 0 0 3px rgba(0, 75, 145, 0.18);
}

.login-field input[dir='ltr'] {
	text-align: left;
}

.login-field-password {
	position: relative;
}

.login-field-password input {
	padding-left: 2.75rem;
}

.login-pwd-toggle {
	position: absolute;
	left: 8px;
	top: 50%;
	transform: translateY(-50%);
	z-index: 2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2rem;
	height: 2rem;
	border: none;
	background: none;
	cursor: pointer;
	padding: 0;
	font-size: 1.1rem;
	line-height: 1;
}

.login-error {
	display: none;
	background: #fef2f2;
	border: 1px solid #fecaca;
	color: #dc2626;
	padding: 0.65rem 0.85rem;
	border-radius: 9px;
	font-size: 0.85rem;
	margin-bottom: 1rem;
}

.login-error.is-visible {
	display: block;
}

.login-forgot-wrap {
	text-align: left;
	font-size: 0.8rem;
	margin-bottom: 0.5rem;
}

.login-forgot-wrap a {
	color: var(--promo-blue);
	text-decoration: none;
}

.login-forgot-wrap a:hover {
	color: var(--promo-blue-dark);
	text-decoration: underline;
}

.login-submit {
	width: 100%;
	height: 48px;
	margin-top: 0.5rem;
	border: none;
	border-radius: 10px;
	background: var(--promo-yellow);
	color: var(--promo-blue-dark);
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
	font-family: inherit;
	transition: background 0.2s ease, transform 0.15s ease;
}

.login-submit:hover:not(:disabled) {
	background: #ffe34d;
}

.login-submit:active:not(:disabled) {
	transform: scale(0.99);
}

.login-submit:disabled {
	opacity: 0.7;
	cursor: not-allowed;
}

@media (max-width: 768px) {
	.login-form-panel {
		max-width: 100%;
		padding: 1.5rem;
	}
}
