:root {
	--bw-blue: #2f3fd6;
	--bw-ink: #0f172a;
	--bw-muted: #6b7280;
	--bw-border: #e5e7eb;
}

body.login-page {
	background: #ffffff;
	color: var(--bw-ink);
	min-height: 100svh;
	overflow-x: hidden;
}

.bw-login-shell {
	display: grid;
	grid-template-columns: minmax(360px, 1.02fr) minmax(0, 1.35fr);
	min-height: 100svh;
	width: 100%;
}

.bw-login-brand {
	background: #0b0c10;
	display: flex;
	flex-direction: column;
	gap: 18px;
	justify-content: center;
	min-height: 100svh;
	overflow: hidden;
	padding: 54px 56px;
	position: relative;
}

.bw-login-brand::before {
	background:
		radial-gradient(520px 320px at 20% 30%, rgba(47, 63, 214, 0.22), transparent 60%),
		radial-gradient(520px 360px at 70% 80%, rgba(255, 255, 255, 0.07), transparent 62%);
	content: "";
	inset: 0;
	pointer-events: none;
	position: absolute;
}

.bw-brand-name {
	color: #ffffff;
	font-size: clamp(42px, 4.6vw, 64px);
	font-weight: 800;
	line-height: 1;
	position: relative;
	width: max-content;
}

.bw-login-brand p {
	color: rgba(255, 255, 255, 0.8);
	font-size: 18px;
	line-height: 1.5;
	max-width: 460px;
	position: relative;
}

.bw-login-form-area {
	align-items: center;
	background: #ffffff;
	display: flex;
	justify-content: center;
	min-height: 100svh;
	padding: 56px 64px;
}

.bw-login-card {
	width: min(520px, 100%);
}

.bw-login-card h1,
.bw-login-card h2 {
	color: var(--bw-ink);
	font-size: 34px;
	font-weight: 800;
	line-height: 1.15;
}

.bw-login-subtitle,
.bw-login-state > p {
	color: var(--bw-muted);
	font-size: 14px;
	line-height: 1.55;
	margin-top: 6px;
}

.bw-login-divider {
	align-items: center;
	color: #9ca3af;
	display: flex;
	font-size: 12px;
	gap: 12px;
	margin: 24px 0;
	text-transform: uppercase;
}

.bw-login-divider::before,
.bw-login-divider::after {
	background: var(--bw-border);
	content: "";
	flex: 1;
	height: 1px;
}

#login-form {
	display: grid;
	gap: 8px;
}

#login-form label {
	color: #111827;
	font-size: 12px;
	font-weight: 700;
}

#login-form input {
	background: #ffffff;
	border: 1px solid var(--bw-border);
	border-radius: 10px;
	color: #111827;
	font: inherit;
	font-size: 14px;
	height: 48px;
	outline: none;
	padding: 0 12px;
	width: 100%;
}

#login-form input::placeholder {
	color: #9ca3af;
}

#login-form input:focus {
	border-color: rgba(47, 63, 214, 0.65);
	box-shadow: 0 0 0 4px rgba(47, 63, 214, 0.12);
}

.primary-button {
	align-items: center;
	background: var(--bw-blue);
	border: 0;
	border-radius: 10px;
	box-shadow: 0 12px 30px rgba(47, 63, 214, 0.25);
	color: #ffffff;
	display: flex;
	font-size: 14px;
	font-weight: 800;
	height: 49px;
	justify-content: center;
	margin-top: 6px;
	padding: 0 14px;
	text-align: center;
	width: 100%;
}

.primary-button:hover {
	background: #2938c8;
}

.primary-button:disabled {
	cursor: wait;
	opacity: 0.65;
}

.form-status {
	color: #111827;
	font-size: 13px;
	line-height: 1.5;
	margin-top: 12px;
	min-height: 44px;
}

.form-status:not(:empty) {
	background: #f9fafb;
	border: 1px solid rgba(0, 0, 0, 0.08);
	border-radius: 10px;
	padding: 10px 12px;
}

.bw-login-state {
	align-items: flex-start;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.bw-login-state .loading-line {
	background: #e5e7eb;
	margin-bottom: 28px;
}

.bw-login-state .loading-line::after {
	background: var(--bw-blue);
}

.bw-login-state .text-link {
	color: var(--bw-blue);
	margin-top: 18px;
}

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

	.bw-login-brand {
		min-height: 38svh;
		padding: 44px 28px;
	}

	.bw-login-form-area {
		min-height: 62svh;
		padding: 44px 24px;
	}
}

@media (max-width: 520px) {
	.bw-login-brand {
		min-height: 30svh;
		padding-block: 36px;
	}

	.bw-brand-name {
		font-size: 42px;
	}

	.bw-login-brand p {
		font-size: 16px;
	}

	.bw-login-form-area {
		min-height: 70svh;
		padding-block: 40px;
	}

	.bw-login-card h1,
	.bw-login-card h2 {
		font-size: 30px;
	}
}
