/**
 * Standalone shell for the XGate login page — two-column layout from
 * themes/html/login.html (gradient marketing panel + centered card).
 * The card itself is xgate's own `.xgate-inline-simple` (simple.css);
 * this file only owns the page shell around it.
 *
 * Colors/spacing below are copied 1:1 from themes/html/css/variables.css
 * (--grad-brand-wide, --bg, --text, --s-*) — same source xgate's own
 * simple.css was matched against, kept independent here on purpose (this
 * file lives outside xgate, see xgate-login-route.php).
 */

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

html {
	-webkit-text-size-adjust: 100%;
}

/*
 * No font-family here on purpose. This rule used to point body at xgate's
 * --xgate-font, which outranks the theme's own `body { 'Yekan Bakh' … }` and
 * left the login page as the one page on the site in a different typeface.
 * With the declaration gone the theme wins, and xgate's "Use the theme font"
 * setting makes the card follow the page.
 */
body.xgate-login-fullscreen {
	margin: 0;
	color: #1a1d29;
	background: #f8f9fb;
}

.xgate-login-wrap {
	display: grid;
	grid-template-columns: 1fr 1fr;
	min-height: 100vh;
}

.xgate-login-side {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 64px;
	color: #ffffff;
	background: linear-gradient(135deg, #1ac2c0 0%, #12b5c9 22%, #3d7bf0 55%, #8b4fd9 82%, #b84fd9 100%);
}

.xgate-login-side h2 {
	margin: 0 0 24px;
	font-size: 2.125rem;
	font-weight: 700;
	line-height: 1.35;
	color: #ffffff;
}

.xgate-login-side__list {
	margin: 0 0 32px;
	padding: 0;
	list-style: none;
}

.xgate-login-side__list li {
	display: flex;
	align-items: flex-start;
	gap: 8px;
	margin-bottom: 8px;
	color: #ffffff;
	opacity: 0.92;
}

.xgate-login-side__list svg {
	flex: none;
	margin-top: 6px;
}

.xgate-login-side__tagline {
	margin: 0;
	font-size: 0.9375rem;
	color: #ffffff;
	opacity: 0.92;
}

.xgate-login-main {
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 32px;
}

.xgate-login-main__inner {
	width: 100%;
	max-width: 400px;
}

.xgate-login-brand {
	display: flex;
	justify-content: center;
	margin-bottom: 24px;
}

.xgate-login-brand img {
	height: 46px;
	width: auto;
}

.xgate-login-brand__text {
	font-size: 1.25rem;
	font-weight: 700;
	color: #1a1d29;
}

@media (max-width: 900px) {
	.xgate-login-wrap {
		grid-template-columns: 1fr;
	}

	.xgate-login-side {
		display: none;
	}
}

[dir="rtl"] body.xgate-login-fullscreen {
	direction: rtl;
	text-align: right;
}
