/*
 * The portal sign-in card: customer (/portal/login), carrier (/carrier/login)
 * and driver (/driver/login). One stylesheet so the three stay one design;
 * each page keeps only its own form.
 */
/*
 * The page fills the screen and no more. The body is the column and the
 * sign-in area takes what is LEFT: `.login-page { min-height: 100vh }` sat
 * under the dev-environment banner, so every one of these pages scrolled by
 * the banner's height. And `dvh`, the visible viewport: on iOS Safari `vh`
 * counts the area behind the address bar, so a phone scrolled even with no
 * banner. `vh` first, for a browser without `dvh`.
 */
body {
	background: linear-gradient(135deg, var(--color-sidebar-bg, #1F2A44) 0%, var(--color-header-bg-dark, #2d3f63) 50%, var(--color-sidebar-bg, #1F2A44) 100%);
	min-height: 100vh;
	min-height: 100dvh;
	display: flex;
	flex-direction: column;
}
.login-page {
	display: flex;
	flex-direction: column;
	flex: 1;
}
.login-container {
	display: flex;
	align-items: center;
	justify-content: center;
	flex: 1;
	padding: 1rem;
}
.login-card {
	/* Themes off the brand accent, --color-accent. */
	background: white;
	border-radius: 16px;
	box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
	width: 100%;
	max-width: 420px;
	overflow: hidden;
}
.login-header {
	background: linear-gradient(135deg, var(--color-accent) 0%, color-mix(in srgb, var(--color-accent) 75%, #000) 100%);
	padding: 1.25rem;
	text-align: center;
	color: white;
}
.login-header h1 {
	font-size: 1.25rem;
	font-weight: 700;
	margin: 0;
}
.login-header p {
	margin: 0.25rem 0 0;
	opacity: 0.9;
	font-size: 0.85rem;
}
.login-body {
	padding: 1.5rem;
}
.login-body .form-control {
	border-radius: 8px;
	padding: 0.625rem 0.875rem;
	border: 1px solid #e5e7eb;
	transition: all 0.2s;
}
.login-body .input-group .form-control {
	border-radius: 8px 0 0 8px;
}
.login-body .form-control:focus {
	border-color: var(--color-accent);
	box-shadow: 0 0 0 3px color-mix(in srgb, var(--color-accent) 18%, transparent);
	z-index: 3;
}
.login-body .toggle-password {
	border: 1px solid #e5e7eb;
	border-left: none;
	border-radius: 0 8px 8px 0;
	background: #fff;
	color: #6b7280;
}
.login-body .btn-login {
	background: linear-gradient(135deg, var(--color-accent) 0%, color-mix(in srgb, var(--color-accent) 75%, #000) 100%);
	border: none;
	border-radius: 8px;
	padding: 0.625rem 1.25rem;
	font-weight: 600;
	color: white;
	transition: all 0.2s;
}
.login-body .btn-login:hover {
	transform: translateY(-2px);
	box-shadow: 0 4px 12px color-mix(in srgb, var(--color-accent) 40%, transparent);
	color: white;
}
@media (max-width: 576px) {
	.login-container {
		padding: 0.5rem;
	}
	.login-card {
		border-radius: 12px;
	}
	.login-header {
		padding: 1rem;
	}
	.login-header h1 {
		font-size: 1.1rem;
	}
	.login-body {
		padding: 1.25rem;
	}
}
