/* precast_login_theme — login page override (based on sergiwa_site layout) */
.login-page {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	background: linear-gradient(165deg, #4b4124 0%, #5c4e29 48%, #8c7340 100%);
	font-family: 'Cairo', 'Tajawal', 'Segoe UI', sans-serif;
}

.login-panel {
	flex: none;
	width: 100%;
	max-width: 420px;
	background: #f8fafc;
	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(2, 6, 23, 0.42);
}

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

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

.login-brand__logo {
	max-width: 100%;
	width: fit-content;
	height: auto;
	margin: 0 auto 1.25rem;
	padding: 0.4rem 0.65rem;
	border-radius: 12px;
	background-color: #ffffff;
	color: transparent;
	font-size: 0;
	font-weight: 900;
	display: flex;
	align-items: center;
	justify-content: center;
	overflow: visible;
	box-shadow: 0 8px 28px rgba(166, 141, 68, 0.35);
	border: 1px solid rgba(148, 163, 184, 0.45);
}

.login-brand__logo img {
	display: block;
	max-width: min(240px, 100%);
	max-height: 72px;
	width: auto;
	height: auto;
	object-fit: contain;
}

.login-brand__title {
	font-size: 1.1rem;
	font-weight: 800;
	line-height: 1.35;
	color: #0f172a;
	margin: 0;
}

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

.login-field label {
	display: block;
	font-size: 0.75rem;
	font-weight: 700;
	color: #475569;
	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 #cbd5e1;
	border-radius: 10px;
	font-size: 0.9rem;
	font-family: inherit;
	outline: none;
}

.login-field input:focus {
	border-color: #a68d44;
	box-shadow: 0 0 0 3px rgba(166, 141, 68, 0.16);
}

.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 {
	text-align: left;
	font-size: 0.8rem;
	margin-bottom: 0.5rem;
}

.login-submit {
	width: 100%;
	height: 48px;
	margin-top: 0.5rem;
	border: none;
	border-radius: 10px;
	background: linear-gradient(135deg, #cbb677, #a68d44);
	color: #ffffff;
	font-size: 1rem;
	font-weight: 700;
	cursor: pointer;
}

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

.login-meta {
	position: fixed;
	left: 50%;
	bottom: 14px;
	transform: translateX(-50%);
	width: calc(100% - 2rem);
	max-width: 640px;
	text-align: center;
	font-size: 0.75rem;
	color: #cbd5e1;
	line-height: 1.6;
	pointer-events: none;
	font-family: inherit;
	z-index: 2;
}

.login-meta p {
	margin: 0;
}

@media (max-width: 768px) {
	.login-page {
		padding: 1rem;
	}

	.login-panel {
		max-width: 100%;
		padding: 1.5rem;
	}

	.login-meta {
		bottom: 10px;
		font-size: 0.7rem;
	}
}
