.ag-public, body.login-page {
	color: #172436;
	background: #fff;
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
	line-height: 1.65;
}
.ag-public * { box-sizing: border-box; }
.ag-portal-header, .ag-public-main, .ag-portal-footer, .ag-portal-breadcrumb, .ag-portal-welcome {
	width: min(100% - 3rem, 1200px);
	margin-inline: auto;
}
.ag-portal-header {
	min-height: 130px;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 2rem;
}
.ag-portal-brand img { display: block; width: 150px; height: auto; }
.ag-portal-header nav, .ag-portal-footer nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 2.5rem;
}
.ag-portal-header nav a, .ag-portal-footer nav a { color: #172436; text-decoration: none; }
.ag-portal-header nav a:hover, .ag-portal-footer nav a:hover { text-decoration: underline; }
.ag-portal-header nav a[aria-current="page"] { font-weight: 700; }
.ag-public { margin: 0; }
.ag-public-main { min-height: 60vh; padding: 1rem 0 5rem; }
.ag-public-main h1 {
	margin: 0 0 1.5rem;
	padding: .25rem .65rem;
	background: #eaf0f0;
	color: #33475e;
	font-size: clamp(1.7rem, 3vw, 2.3rem);
	line-height: 1.25;
}
.ag-public-main form { max-width: 640px; }
.ag-public-main label { display: block; margin-top: 1rem; font-weight: 600; }
.ag-public-main input:not([type="checkbox"]), .ag-public-main select {
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	padding: .75rem;
	border: 1px solid #8795a3;
	border-radius: 3px;
	font: inherit;
}
.ag-public-main input[type="checkbox"] { width: auto; }
.ag-public-main img { max-width: 100%; }
.ag-public-main button, .login-page .login__submit {
	padding: .8rem 1.2rem;
	border: 2px solid #233b5b;
	border-radius: 4px;
	background: #233b5b;
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}
.ag-public-main button:hover, .login-page .login__submit:hover { background: #152840; }
.ag-public-main .error { color: #9b2828; }
.ag-portal-footer {
	display: flex;
	justify-content: space-between;
	align-items: center;
	gap: 2rem;
	padding: 2rem 0;
	border-top: 1px solid #dfe7e9;
	font-size: .9rem;
}
.ag-public :focus-visible, .login-page :focus-visible, body[data-theme] :focus-visible {
	outline: 3px solid #3764a6;
	outline-offset: 3px;
}
body.login-page { margin: 0; }
.login-page__container { min-height: calc(100vh - 130px); align-items: flex-start; padding: 2rem 1.5rem 5rem; }
.login-screen {
	width: min(100%, 640px);
	min-height: 0;
	background: #fff;
	border: 1px solid #dfe7e9;
	box-shadow: none;
	backdrop-filter: none;
}
.login-screen__background, .login__logo { display: none; }
.login { padding: 2rem; }
.login__field { padding: .5rem 0; }
.login__icon { top: 1.3rem; }
.login-page :is(input, select).login__input { width: 100%; border: 1px solid #8795a3; border-radius: 3px; }
.login-page .login__submit { width: auto; text-transform: none; box-shadow: none; }
.login-page .button__icon { color: #fff; margin-left: 1rem; }
body[data-theme] {
	--primary-color-hue: 215;
	--primary-color-saturation: 44%;
	--primary-color-lightness: 25%;
	color: #172436;
	background: #fff;
	font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
}
body[data-theme] .primary-top-nav {
	position: static;
	width: calc(100% - 3rem);
	max-width: 1200px;
	box-sizing: border-box;
	margin: 0 auto;
	padding: .3rem .75rem;
	background: #eaf0f0;
	box-shadow: none;
	backdrop-filter: none;
}
body[data-theme] .primary-top-nav .brand { display: none; }
body[data-theme] .primary-top-nav ul { margin-block: 0; }
body[data-theme] .primary-top-nav .menu-entries { flex-wrap: wrap; }
body[data-theme] .primary-top-nav .nav-link {
	--color: #172436;
	color: #172436;
}
body[data-theme] .ag-portal-header nav { margin: 0; }
body[data-theme] .ag-portal-header nav a { padding: 0; }
body[data-theme] .ag-portal-breadcrumb { margin-top: .5rem; margin-bottom: 1rem; }
body[data-theme] .ag-portal-welcome { display: flex; align-items: center; justify-content: space-between; gap: 2rem; padding: 1.5rem 0 0; }
body[data-theme] .ag-portal-welcome h1 { margin: 0 0 1rem; font-size: 1.2rem; }
body[data-theme] .ag-portal-welcome p { margin: 0; }
body[data-theme] .ag-portal-illustration { width: min(35%, 250px); max-height: 200px; height: auto; object-fit: contain; }
body[data-theme] main.container, body[data-theme] .hero-header .container {
	width: calc(100% - 3rem);
	max-width: 1200px;
	box-sizing: border-box;
	margin-inline: auto;
}
body[data-theme] main.container { overflow-x: auto; }
body[data-theme] .hero-header { padding: 2rem 0; background: #fff; }
body[data-theme] main.container h1 { color: #33475e; }
body[data-theme] main.container :is(button, input[type="submit"], a[role="button"]) {
	--background-color: #233b5b;
	--border-color: #233b5b;
	--color: #fff;
	border-radius: 4px;
}
@media (max-width: 700px) {
	.ag-portal-header { align-items: flex-start; flex-direction: column; gap: .5rem; padding: 1rem 0; }
	.ag-portal-brand img { width: 115px; }
	.ag-portal-header nav, .ag-portal-footer nav { gap: .6rem 1.2rem; }
	.ag-portal-footer { align-items: flex-start; flex-direction: column; }
	body[data-theme] .ag-portal-welcome { flex-wrap: wrap; }
	body[data-theme] .ag-portal-illustration { width: min(100%, 200px); }
	.login-page__container { min-height: 60vh; }
	.login { padding: 1.5rem; }
}
@media (max-width: 900px) {
	body[data-theme] .primary-top-nav .menu-entries-alt { display: block; min-width: 0; }
	body[data-theme] .primary-top-nav .menu-entries { display: none; }
	body[data-theme] .primary-top-nav .logout { margin-left: auto; }
}
