@import url("https://fonts.googleapis.com/css2?family=Tajawal:wght@400;500;600;700;800&display=swap");

:root {
	--orqexa-ink: #09253d;
	--orqexa-muted: #64768a;
	--orqexa-line: #dbe4ec;
	--orqexa-surface: #ffffff;
	--orqexa-canvas: #edf3f7;
	--orqexa-teal: #10a7a0;
	--orqexa-teal-dark: #07867f;
	--orqexa-orange: #f39223;
}

body.orqexa-auth-ready {
	min-height: 100vh;
	margin: 0;
	background:
		radial-gradient(circle at 8% 4%, rgba(16, 167, 160, 0.13), transparent 30rem),
		radial-gradient(circle at 95% 96%, rgba(243, 146, 35, 0.1), transparent 26rem),
		var(--orqexa-canvas);
	font-family: "Tajawal", system-ui, sans-serif;
	color: var(--orqexa-ink);
}

body.orqexa-auth-ready .navbar,
body.orqexa-auth-ready footer.web-footer,
body.orqexa-auth-ready .web-footer,
body.orqexa-auth-ready .page-header {
	display: none !important;
}

body.orqexa-auth-ready .page_content,
body.orqexa-auth-ready .page-content-wrapper,
body.orqexa-auth-ready main,
body.orqexa-auth-ready .main-section {
	min-height: 100vh;
}

body.orqexa-auth-ready .for-login,
body.orqexa-auth-ready .for-forgot,
body.orqexa-auth-ready .for-login-with-email-link,
body.orqexa-auth-ready .for-reset-password {
	min-height: 100vh;
	padding: 28px;
	box-sizing: border-box;
}

body.orqexa-auth-ready .for-login:not([style*="display: none"]),
body.orqexa-auth-ready .for-forgot:not([style*="display: none"]),
body.orqexa-auth-ready .for-login-with-email-link:not([style*="display: none"]),
body.orqexa-auth-ready .for-reset-password:not([style*="display: none"]) {
	display: grid !important;
	place-items: center;
}

body.orqexa-auth-ready .login-content.page-card {
	display: grid;
	grid-template-columns: minmax(0, 1.08fr) minmax(410px, 0.92fr);
	width: min(1120px, 100%);
	max-width: none !important;
	min-height: 680px;
	margin: 0 !important;
	padding: 0 !important;
	overflow: hidden;
	border: 1px solid rgba(255, 255, 255, 0.8) !important;
	border-radius: 28px !important;
	background: var(--orqexa-surface) !important;
	box-shadow: 0 32px 90px rgba(9, 37, 61, 0.16), 0 3px 12px rgba(9, 37, 61, 0.06) !important;
}

.orqexa-story {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 680px;
	padding: 46px 50px 38px;
	overflow: hidden;
	color: #fff;
	background:
		linear-gradient(145deg, rgba(5, 29, 49, 0.96), rgba(8, 53, 74, 0.93)),
		url("/files/orqexa-login-pattern.svg") center/cover;
	box-sizing: border-box;
}

.orqexa-story::before,
.orqexa-story::after {
	content: "";
	position: absolute;
	border-radius: 999px;
	filter: blur(1px);
	pointer-events: none;
}

.orqexa-story::before {
	width: 340px;
	height: 340px;
	top: -175px;
	left: -110px;
	background: rgba(16, 167, 160, 0.2);
}

.orqexa-story::after {
	width: 280px;
	height: 280px;
	right: -130px;
	bottom: -135px;
	background: rgba(243, 146, 35, 0.16);
}

.orqexa-brand,
.orqexa-story-copy,
.orqexa-story-foot {
	position: relative;
	z-index: 1;
}

.orqexa-brand {
	display: flex;
	align-items: center;
	gap: 14px;
}

.orqexa-brand img {
	width: 50px;
	height: 50px;
	object-fit: contain;
	filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.18));
}

.orqexa-brand strong {
	display: block;
	font: 700 22px/1.1 system-ui, sans-serif;
	letter-spacing: 0.13em;
}

.orqexa-brand span {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	color: rgba(255, 255, 255, 0.58);
}

.orqexa-kicker {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	width: fit-content;
	margin-bottom: 18px;
	padding: 7px 12px;
	border: 1px solid rgba(255, 255, 255, 0.14);
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.07);
	font-size: 12px;
	font-weight: 600;
	color: #b9e9e6;
}

.orqexa-kicker::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #38d2ca;
	box-shadow: 0 0 0 5px rgba(56, 210, 202, 0.12);
}

.orqexa-story h1 {
	max-width: 470px;
	margin: 0 0 16px;
	font-size: clamp(36px, 4vw, 54px);
	font-weight: 800;
	line-height: 1.25;
	letter-spacing: -0.035em;
	color: #fff;
}

.orqexa-story-copy > p {
	max-width: 500px;
	margin: 0;
	font-size: 16px;
	line-height: 1.85;
	color: rgba(230, 241, 247, 0.72);
}

.orqexa-capabilities {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin-top: 28px;
}

.orqexa-capabilities span {
	padding: 8px 11px;
	border: 1px solid rgba(255, 255, 255, 0.1);
	border-radius: 10px;
	background: rgba(255, 255, 255, 0.055);
	font-size: 12px;
	font-weight: 500;
	color: rgba(255, 255, 255, 0.82);
}

.orqexa-story-foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	padding-top: 22px;
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	font-size: 11px;
	color: rgba(255, 255, 255, 0.5);
}

.orqexa-story-foot .status {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: rgba(255, 255, 255, 0.72);
}

.orqexa-story-foot .status::before {
	content: "";
	width: 7px;
	height: 7px;
	border-radius: 50%;
	background: #43d39e;
	box-shadow: 0 0 0 4px rgba(67, 211, 158, 0.11);
}

.orqexa-auth-panel {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 52px 58px 38px;
	box-sizing: border-box;
	background: #fff;
}

.orqexa-secure-label {
	display: flex;
	align-items: center;
	gap: 7px;
	margin-bottom: 30px;
	font-size: 12px;
	font-weight: 600;
	color: var(--orqexa-teal-dark);
}

.orqexa-secure-label svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
}

body.orqexa-auth-ready .page-card-head {
	display: block;
	margin: 0 0 34px !important;
	padding: 0 !important;
	text-align: right !important;
}

body.orqexa-auth-ready .page-card-head img.app-logo {
	display: none !important;
}

body.orqexa-auth-ready .page-card-head::after {
	display: none !important;
	content: none !important;
}

body.orqexa-auth-ready .page-card-head h4 {
	margin: 0 0 10px;
	font-size: 30px;
	font-weight: 800;
	line-height: 1.35;
	letter-spacing: -0.025em;
	color: var(--orqexa-ink);
}

body.orqexa-auth-ready .page-card-subtitle {
	margin: 0;
	font-size: 14px;
	line-height: 1.7;
	color: var(--orqexa-muted);
}

body.orqexa-auth-ready .page-card-body,
body.orqexa-auth-ready .page-card-actions {
	padding: 0 !important;
}

body.orqexa-auth-ready .form-group {
	margin-bottom: 21px;
}

body.orqexa-auth-ready .form-label {
	display: block;
	margin-bottom: 8px;
	font-size: 13px;
	font-weight: 700;
	color: #2c4358;
}

body.orqexa-auth-ready .email-field,
body.orqexa-auth-ready .password-field {
	position: relative;
}

body.orqexa-auth-ready .form-control {
	height: 52px;
	padding: 0 45px 0 16px !important;
	border: 1px solid var(--orqexa-line) !important;
	border-radius: 12px !important;
	background: #f8fafc !important;
	font-family: inherit;
	font-size: 14px;
	color: var(--orqexa-ink) !important;
	box-shadow: none !important;
	transition: border-color 160ms ease, background 160ms ease, box-shadow 160ms ease;
}

body.orqexa-auth-ready #login_email {
	direction: ltr;
	text-align: left;
}

body.orqexa-auth-ready .form-control:hover {
	border-color: #bdcad5 !important;
}

body.orqexa-auth-ready .form-control:focus {
	border-color: var(--orqexa-teal) !important;
	background: #fff !important;
	box-shadow: 0 0 0 4px rgba(16, 167, 160, 0.11) !important;
}

body.orqexa-auth-ready .field-icon {
	right: 16px !important;
	left: auto !important;
	color: #8796a5;
}

body.orqexa-auth-ready .toggle-password {
	right: auto !important;
	left: 16px !important;
	cursor: pointer;
	color: #8796a5;
}

body.orqexa-auth-ready .forgot-password-message {
	margin-top: 10px !important;
	text-align: left !important;
}

body.orqexa-auth-ready a {
	color: var(--orqexa-teal-dark);
	font-weight: 600;
	text-decoration: none;
}

body.orqexa-auth-ready a:hover {
	color: #056c67;
	text-decoration: none;
}

body.orqexa-auth-ready .page-card-actions {
	margin-top: 28px;
}

body.orqexa-auth-ready .btn-login,
body.orqexa-auth-ready .btn-forgot,
body.orqexa-auth-ready .btn-signup {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 52px;
	border: 0 !important;
	border-radius: 12px !important;
	background: linear-gradient(115deg, var(--orqexa-teal-dark), var(--orqexa-teal)) !important;
	font-family: inherit;
	font-size: 15px;
	font-weight: 700;
	color: #fff !important;
	box-shadow: 0 11px 24px rgba(16, 167, 160, 0.2) !important;
	transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

body.orqexa-auth-ready .btn-login::after,
body.orqexa-auth-ready .btn-forgot::after,
body.orqexa-auth-ready .btn-signup::after {
	content: "←";
	margin-right: auto;
	font-size: 18px;
	font-weight: 400;
}

body.orqexa-auth-ready .btn-login:hover,
body.orqexa-auth-ready .btn-forgot:hover,
body.orqexa-auth-ready .btn-signup:hover {
	transform: translateY(-1px);
	filter: brightness(1.03);
	box-shadow: 0 15px 30px rgba(16, 167, 160, 0.27) !important;
}

body.orqexa-auth-ready .btn-login:active,
body.orqexa-auth-ready .btn-forgot:active,
body.orqexa-auth-ready .btn-signup:active {
	transform: translateY(0);
}

body.orqexa-auth-ready .btn-login-option {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 48px;
	margin-top: 12px;
	border: 1px solid var(--orqexa-line) !important;
	border-radius: 12px !important;
	background: #fff !important;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	color: #40566b !important;
}

body.orqexa-auth-ready .btn-login-option:hover {
	border-color: #b9c8d4 !important;
	background: #f8fafc !important;
}

.orqexa-panel-foot {
	margin-top: 32px;
	text-align: center;
	font-size: 11px;
	color: #93a1ae;
}

body.orqexa-auth-ready .login-error-banner {
	margin-bottom: 16px;
	border-radius: 10px;
}

@media (max-width: 850px) {
	body.orqexa-auth-ready .for-login,
	body.orqexa-auth-ready .for-forgot,
	body.orqexa-auth-ready .for-login-with-email-link,
	body.orqexa-auth-ready .for-reset-password {
		padding: 16px;
	}

	body.orqexa-auth-ready .login-content.page-card {
		grid-template-columns: 1fr;
		width: min(520px, 100%);
		min-height: auto;
		border-radius: 22px !important;
	}

	.orqexa-story {
		min-height: auto;
		padding: 26px 28px;
	}

	.orqexa-story-copy,
	.orqexa-story-foot {
		display: none;
	}

	.orqexa-brand img {
		width: 42px;
		height: 42px;
	}

	.orqexa-auth-panel {
		padding: 36px 30px 28px;
	}

	.orqexa-secure-label {
		margin-bottom: 24px;
	}
}

@media (max-width: 430px) {
	body.orqexa-auth-ready .for-login,
	body.orqexa-auth-ready .for-forgot,
	body.orqexa-auth-ready .for-login-with-email-link,
	body.orqexa-auth-ready .for-reset-password {
		padding: 0;
	}

	body.orqexa-auth-ready .for-login:not([style*="display: none"]),
	body.orqexa-auth-ready .for-forgot:not([style*="display: none"]),
	body.orqexa-auth-ready .for-login-with-email-link:not([style*="display: none"]),
	body.orqexa-auth-ready .for-reset-password:not([style*="display: none"]) {
		place-items: stretch;
	}

	body.orqexa-auth-ready .login-content.page-card {
		min-height: 100vh;
		border: 0 !important;
		border-radius: 0 !important;
	}

	.orqexa-story {
		padding: 22px 24px;
	}

	.orqexa-auth-panel {
		justify-content: flex-start;
		padding: 38px 24px 26px;
	}

	body.orqexa-auth-ready .page-card-head h4 {
		font-size: 27px;
	}
}

@media (prefers-reduced-motion: reduce) {
	body.orqexa-auth-ready *,
	body.orqexa-auth-ready *::before,
	body.orqexa-auth-ready *::after {
		scroll-behavior: auto !important;
		transition-duration: 0.01ms !important;
	}
}
