/**
 * بوابة الدخول الموحَّدة — التنسيق.
 *
 * نفس لغة البوابة نفسها (ar-syscraft-portal): مسطّح، بلا تدرّجات، لون
 * إجراء واحد. الغرض أن يشعر المستخدم أنه عند باب النظام لا في صفحة
 * منفصلة عنه.
 */

.scl {
	--scl-ink: #16233a;
	--scl-accent: #0e9f8f;
	--scl-accent-deep: #0a7d71;
	--scl-text: #1c2431;
	--scl-muted: #62708a;
	--scl-line: #dfe4ec;
	--scl-canvas: #f4f6f9;
	--scl-danger: #c0392e;
	--scl-danger-wash: #fdeceb;
	--scl-info-wash: #eef3fb;

	display: flex;
	align-items: center;
	justify-content: center;
	padding: 40px 16px;
	background: var(--scl-canvas);
	color: var(--scl-text);
	font-family: 'IBM Plex Sans Arabic', 'Tajawal', 'Noto Sans Arabic', 'Segoe UI', Tahoma, Arial, sans-serif;
	color-scheme: light;
	line-height: 1.6;
}

.scl *,
.scl *::before,
.scl *::after {
	box-sizing: border-box;
}

.scl__card {
	width: 100%;
	max-width: 400px;
	background: #fff;
	border: 1px solid var(--scl-line);
	border-radius: 14px;
	padding: 32px 28px 24px;
	box-shadow: 0 1px 2px rgba(22, 35, 58, .06), 0 10px 30px rgba(22, 35, 58, .07);
}

.scl__head {
	text-align: center;
	margin-bottom: 22px;
}

/* نفس علامة البوابة: مربّع بزاوية واحدة مقصوصة — إشارة بطاقة موظف. */
.scl__mark {
	display: inline-block;
	width: 34px;
	height: 34px;
	background: var(--scl-accent);
	border-radius: 6px 6px 6px 16px;
	margin-bottom: 12px;
}

.scl__title {
	font-size: 20px;
	font-weight: 700;
	color: var(--scl-ink);
	margin: 0 0 4px;
	line-height: 1.4;
}

.scl__lead {
	color: var(--scl-muted);
	font-size: 14px;
	margin: 0;
}

.scl__label {
	display: block;
	font-size: 13.5px;
	font-weight: 600;
	color: var(--scl-ink);
	margin-bottom: 6px;
}

.scl__input {
	width: 100%;
	background: #fff;
	border: 1px solid var(--scl-line);
	border-radius: 8px;
	padding: 11px 12px;
	font-family: inherit;
	font-size: 15px;
	color: var(--scl-text);
	transition: border-color 120ms ease;
}

.scl__input:focus {
	outline: 2px solid var(--scl-accent);
	outline-offset: 1px;
	border-color: var(--scl-accent);
}

.scl__input--code {
	letter-spacing: 8px;
	text-align: center;
	font-size: 20px;
	font-weight: 700;
	direction: ltr;
	font-variant-numeric: tabular-nums;
}

.scl__btn {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: 100%;
	margin-top: 12px;
	padding: 12px 14px;
	border: 1px solid transparent;
	border-radius: 8px;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	cursor: pointer;
	text-decoration: none;
	transition: background 120ms ease, border-color 120ms ease;
}

.scl__btn--primary {
	background: var(--scl-accent);
	color: #fff;
}

.scl__btn--primary:hover:not(:disabled) {
	background: var(--scl-accent-deep);
}

.scl__btn:disabled {
	opacity: .6;
	cursor: not-allowed;
}

.scl__btn--google {
	background: #fff;
	border-color: var(--scl-line);
	color: var(--scl-text);
}

.scl__btn--google:hover {
	border-color: #b9c2d2;
	color: var(--scl-text);
}

.scl__gicon {
	flex: 0 0 auto;
}

.scl__divider {
	position: relative;
	text-align: center;
	margin: 18px 0 4px;
	color: var(--scl-muted);
	font-size: 12.5px;
}

.scl__divider::before {
	content: '';
	position: absolute;
	inset-block-start: 50%;
	inset-inline: 0;
	border-top: 1px solid var(--scl-line);
}

.scl__divider span {
	position: relative;
	background: #fff;
	padding: 0 10px;
}

.scl__link {
	display: block;
	width: 100%;
	margin-top: 10px;
	background: none;
	border: 0;
	color: var(--scl-accent-deep);
	font-family: inherit;
	font-size: 13.5px;
	cursor: pointer;
	text-decoration: underline;
}

.scl__alert {
	border-radius: 8px;
	padding: 10px 13px;
	margin-bottom: 14px;
	font-size: 13.5px;
	border-inline-start: 4px solid transparent;
}

.scl__alert--error {
	background: var(--scl-danger-wash);
	border-inline-start-color: var(--scl-danger);
	color: #7f1d1d;
}

.scl__alert--info {
	background: var(--scl-info-wash);
	border-inline-start-color: #3b6bb5;
	color: #1e3a5f;
}

.scl__sent {
	font-size: 13.5px;
	color: var(--scl-muted);
	margin: 0 0 14px;
}

.scl__companies {
	display: grid;
	gap: 8px;
}

.scl__company {
	width: 100%;
	background: #fff;
	border: 1px solid var(--scl-line);
	border-radius: 8px;
	padding: 13px 14px;
	font-family: inherit;
	font-size: 14.5px;
	font-weight: 600;
	text-align: start;
	cursor: pointer;
	transition: border-color 120ms ease;
}

.scl__company:hover:not(:disabled) {
	border-color: var(--scl-accent);
}

.scl__foot {
	margin: 20px 0 0;
	padding-top: 16px;
	border-top: 1px solid var(--scl-line);
	color: var(--scl-muted);
	font-size: 12.5px;
	text-align: center;
}

.scl__hidden {
	display: none;
}

/* شورتكود متقاعد */
.ar-auth-retired {
	max-width: 400px;
	margin: 40px auto;
	padding: 24px;
	border: 1px solid #dfe4ec;
	border-radius: 12px;
	text-align: center;
	font-family: 'IBM Plex Sans Arabic', 'Tajawal', 'Segoe UI', Tahoma, Arial, sans-serif;
}

@media (prefers-reduced-motion: reduce) {
	.scl * {
		transition: none !important;
	}
}
