/* Madhu Multi Trading — login page (scoped to the login section only) */
:root {
	--mmt-red: #e31e24;
	--mmt-red-dark: #b9151a;
	--mmt-ink: #14161a;
}

body:has(.for-login) { background: #fff; }
body:has(.for-login) .navbar,
body:has(.for-login) footer.web-footer { display: none; }

.for-login {
	position: fixed;
	inset: 0;
	z-index: 100;
	display: grid;
	grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
	background: #fff;
	overflow: auto;
	font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* Brand panel */
.for-login::before {
	content: "";
	grid-column: 1;
	grid-row: 1;
	min-height: 100vh;
	background:
		url("/assets/mmt/images/madhu-logo-transparent.png") no-repeat center 42% / min(420px, 62%),
		radial-gradient(circle at 15% 10%, rgba(227, 30, 36, 0.10), transparent 45%),
		radial-gradient(circle at 90% 95%, rgba(227, 30, 36, 0.08), transparent 40%),
		linear-gradient(160deg, #fff 0%, #f6f6f7 100%);
	border-right: 1px solid #ececee;
}
.for-login::after {
	content: "Trading, simplified.\A Deals, orders, invoices and payments — in one place.";
	white-space: pre-line;
	position: absolute;
	left: 0;
	bottom: 12vh;
	width: calc(100% * 1.1 / 2.1);
	padding: 0 12%;
	box-sizing: border-box;
	text-align: center;
	color: #6b7078;
	font-size: 14px;
	line-height: 1.6;
	pointer-events: none;
}

/* Form side */
.for-login .login-content.page-card {
	grid-column: 2;
	grid-row: 1;
	align-self: center;
	justify-self: center;
	width: min(400px, calc(100% - 48px));
	margin: 48px 0;
	padding: 0;
	border: 0;
	box-shadow: none;
	background: transparent;
	min-height: 0;
}
.for-login .page-card-head .app-logo { display: none; }
.for-login .page-card-head h4 {
	font-size: 28px;
	font-weight: 700;
	letter-spacing: -0.02em;
	color: var(--mmt-ink);
}
.for-login .page-card-subtitle { color: #6b7078; }

.for-login .form-control {
	height: 44px;
	border-radius: 10px;
	border: 1px solid #dcdde1;
	background: #fff;
	transition: border-color .15s, box-shadow .15s;
}
.for-login .form-control:focus {
	border-color: var(--mmt-red);
	box-shadow: 0 0 0 3px rgba(227, 30, 36, 0.14);
	outline: none;
}
.for-login .es-button[data-variant="solid"],
.for-login button[type="submit"] {
	height: 44px;
	border-radius: 10px;
	border: 0;
	background: var(--mmt-red);
	color: #fff;
	font-weight: 600;
	transition: background .15s, transform .05s;
}
.for-login .es-button[data-variant="solid"]:hover,
.for-login button[type="submit"]:hover { background: var(--mmt-red-dark); }
.for-login .es-button[data-variant="solid"]:active { transform: translateY(1px); }
.for-login a { color: var(--mmt-red); }
.for-login a:hover { color: var(--mmt-red-dark); }

/* Tablet / mobile: stack, brand becomes a slim header */
@media (max-width: 860px) {
	.for-login { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
	.for-login::before {
		min-height: 150px;
		background-size: 220px, auto, auto, auto;
		background-position: center, 0 0, 0 0, 0 0;
		border-right: 0;
		border-bottom: 1px solid #ececee;
	}
	.for-login::after { display: none; }
	.for-login .login-content.page-card { grid-column: 1; grid-row: 2; align-self: start; margin: 32px 0; }
}
