@import '../includes/fonts/source-sans-pro';


div.cell, .block {
	h1 {
		@extend %title;
		font-size: 36px;
		border-bottom: 1px solid rgb(221, 221, 221);
		margin-left: 1rem;
		margin-right: 1rem;
		padding-left: 0;
		padding-right: 0;
	}
	h2 {
		@extend %title;
	}
	&:not(.foldable) {
		h2::after {
			width: 2.65em;
			height: 0.2em;
			content: "";
			display: block;
			margin-top: 0.7em;
			background: $primary-color;
			
		}
	}
	h3 {
		@extend %title;
	}
}

// header and navigation

#logo {
	@media screen and ($max-mobile-viewport) {
		padding-left: 0;
	}
}
#logo.has-logo a {
	display: block;
	width: 100%;
	background-position: center;
	background-size: 80px 80px;
	padding-top: 60px;
	padding-bottom: 60px;
	@media screen and ($min-desktop-viewport) {
		background-size: 120px 120px;
		padding-top: 80px;
		padding-bottom: 80px;
	}
}
// 
#header-wrapper {
	background-color: $transparent-red;
	background-image: url(img/frise.png);
	width: 100%;
	@media screen and ($max-mobile-viewport) {
		margin-bottom: 2em;
	}
}


#nav-wrapper {
	background-color: $nav-background;
	#nav > ul {
		text-align: center;
		margin-top: 0;
		li {
			font-weight: 400;
			font-size: 0.778em;
			line-height: 3.071em; 
		}
	}
}

// search {
.gru-content .search-cell {
	background-color: transparent;
	border: none;
}

.combo-search--button {
	margin-left: -1em;
	.combo-search--button-label {
		display: none;
	}
	&::before {
		content: '\f002';
		font-family: FontAwesome;
		font-size: 1em;
		display: inline-block;
		vertical-align: middle;
	}
}
// general layout

div#main-content-wrapper {
	max-width: 65em;
}

.form-content--body, .form-content--sidebox {
	border: $cell-border;
	padding: 1em;
	background: $cell-background;
}

#footer-wrapper {
	a {
		color: white;
	}
}

.gru-content .wcsformsofcategorycell.has-asset-picture.cell {
	$picture-height: 100px;
	position: relative;
	margin-top: $picture-height + 20px;
	picture {
		position: absolute;
		top: -$picture-height;
		width: 100%;
		img {
			height: $picture-height;
			margin: 0 auto;
		}
	}
}

#login-page {
	display: flex;
	flex-direction: column;
	justify-content: stretch;
	gap: 2.5rem;

	@media($max-mobile-viewport) {
		padding: 0 0.7rem;
	}

	&.methods2 > .block {
		width: 100%;
		padding: 1rem;

		display: flex;
		flex-direction: column;
		align-items: center;

		@media($max-mobile-viewport) {
			margin: 0;
		}

		&:not(:first-child) {
			position: relative;

			&::after {
				position: absolute;
				top: -2rem;
				width: 100%;

				background: center / 100% 2px no-repeat linear-gradient(
					90deg,
					transparent 30%,
					black 30%,
					black 47%,
					transparent 47%,
					transparent 53%,
					black 53%,
					black 70%,
					transparent 70%,
					transparent 100%
				);

				content: "OU";
				text-align:center;
				font-weight: bold;

				@media($max-mobile-viewport) {
					background-image: linear-gradient(
						90deg,
						transparent 10%,
						black 10%,
						black 40%,
						transparent 40%,
						transparent 60%,
						black 60%,
						black 90%,
						transparent 90%,
						transparent 100%
					);
				}
			}
		}
	}

	.block-oidc {
		p {
			text-align: center;
		}

		img {
			width: 200px;
		}

		a.pk-button {
			padding: 1.5rem;
		}

		@media($max-mobile-viewport) {
			img {
				width: 100px;
			}

			a.pk-button {
				padding: 0.5rem;
			}
		}
	}

	.block-password {
		.theme-login-password-description {
			margin: 1rem;

			p {
				margin: 0;
				text-align: center;
			}
		}

		.buttons {
			display: flex;
			justify-content: center;

			button {
				margin-right: 0;
			}
		}
	}
}
