/* The Builders ERP sign-in page (www/login.html, D-350). Frappe's login.bundle.css styles the card and its
 * forms; this frames it with the brand panel. Colours other than the brand navy come from Frappe's tokens,
 * so the light and dark themes both work. */
.be-login {
	display: grid;
	grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
	max-width: 880px;
	margin: 0 auto;
	border: 1px solid var(--border-color, #e2e2e2);
	border-radius: var(--radius-xl, 12px);
	overflow: hidden;
	background-color: var(--bg-color);
	box-shadow: var(--shadow-sm, 0 1px 3px rgba(0, 0, 0, 0.08));
}

.be-login-brand {
	display: flex;
	flex-direction: column;
	gap: 20px;
	padding: 40px 36px;
	background: linear-gradient(160deg, #1f3a5f 0%, #152a46 100%);
	color: #f2f4f7;
}
.be-login-mark {
	border-radius: 14px;
	box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.22);
}
.be-login-brand-text {
	display: flex;
	flex-direction: column;
	gap: 6px;
}
.be-login-product {
	margin: 0;
	font-size: 28px;
	font-weight: 700;
	line-height: 1.2;
	color: #ffffff;
}
.be-login-company {
	margin: 0;
	font-size: 15px;
	color: #d5dce6;
}
.be-login-tagline {
	margin: auto 0 0;
	padding-top: 16px;
	border-top: 3px solid #f59f00;
	width: fit-content;
	font-size: 14px;
	color: #d5dce6;
}

.be-login-main {
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 24px 16px 16px;
}
/* The brand panel already shows the mark; the card keeps only its heading. */
.be-login .page-card-head .app-logo {
	display: none;
}
.be-login .page-card {
	border: none;
	box-shadow: none;
}
.be-login-attribution {
	margin: 8px 0 0;
	text-align: center;
	font-size: 12px;
	line-height: 1.5;
	color: var(--text-muted, #6b7280);
}

/* Phones: the brand panel becomes a band above the card. Frappe's own phone rule makes the card fill the
 * screen (min-height 100svh); here it sits under the band instead. */
@media (max-width: 767px) {
	.be-login {
		grid-template-columns: 1fr;
		border: none;
		border-radius: 0;
		box-shadow: none;
	}
	.be-login-brand {
		flex-direction: row;
		flex-wrap: wrap;
		align-items: center;
		gap: 12px 14px;
		padding: 20px 16px;
		border-radius: var(--radius-lg, 10px);
	}
	.be-login-mark {
		width: 44px;
		height: 44px;
	}
	.be-login-product {
		font-size: 22px;
	}
	.be-login-company {
		font-size: 13px;
	}
	.be-login-tagline {
		display: none;
	}
	.be-login-main {
		padding: 8px 0 24px;
	}
	.be-login .for-login .page-card,
	.be-login .for-forgot .page-card,
	.be-login .for-signup .page-card,
	.be-login .for-email-login .page-card,
	.be-login .for-login-with-email-link .page-card {
		min-height: auto;
		padding: 24px 16px;
	}
}
