:root {
	--color-primary: var(--theme-color-primary, #0066cc);
	--color-primary-500: var(--color-primary);
	--color-primary-600: color-mix(in srgb, #000000 10%, var(--color-primary));
	--color-primary-700: color-mix(in srgb, #000000 25%, var(--color-primary));
	--lightness-notify-light: 95%;
	--lightness-notify-dark: 50%;
	--notify-info-hue: 217;
	--notify-info-saturation: 67%;
	--notify-success-hue: 138;
	--notify-success-saturation: 60%;
	--notify-error-hue: 0;
	--notify-error-saturation: 61%;
	--notify-warning-hue: 43;
	--notify-warning-saturation: 90%;
	--color-info: hsla(var(--notify-info-hue), var(--notify-info-saturation), var(--lightness-notify-dark), 1);
	--color-success: hsla(var(--notify-success-hue), var(--notify-success-saturation), var(--lightness-notify-dark), 1);
	--color-error: hsla(var(--notify-error-hue), var(--notify-error-saturation), var(--lightness-notify-dark), 1);
	--color-warning: hsla(var(--notify-warning-hue), var(--notify-warning-saturation), var(--lightness-notify-dark), 1);
	--color-info-light: hsla(var(--notify-info-hue), var(--notify-info-saturation), var(--lightness-notify-light), 1);
	--color-success-light: hsla(var(--notify-success-hue), var(--notify-success-saturation), var(--lightness-notify-light), 1);
	--color-error-light: hsla(var(--notify-error-hue), var(--notify-error-saturation), var(--lightness-notify-light), 1);
	--color-warning-light: hsla(var(--notify-warning-hue), var(--notify-warning-saturation), var(--lightness-notify-light), 1);
	--color-grey-50: #ecedee;
	--color-grey-100: #c4c6ca;
	--color-grey-200: #a9acb2;
	--color-grey-300: #80868e;
	--color-grey-500: #424b57;
	--font-family: Poppins, Verdana, sans-serif;

	--font-size-p-2: 0.8125rem;
	--line-height-p-2: 1.2307692308;
	--font-size-p-3: 0.875rem;
	--line-height-p-3: 1.2142857143;
	--input-font-size: var(--font-size-p-3);
	--input-line-height: var(--line-height-p-3);
	--input-color: var(--color-grey-500);
	--input-color-placeholder: var(--color-grey-200);
	--input-border-color: var(--input-color);
	--input-background-color: #ffffff;
	--input-color-disabled: var(--color-grey-300);
	--input-border-color-disabled: var(--color-grey-100);
	--input-background-color-disabled: var(--color-grey-50);
}

/* GENERIC STYLING */
html {
	box-sizing: border-box;
	font-family: var(--font-family), sans-serif;
	background-repeat: no-repeat;
	background-position: center center;
	background-image: var(--theme-background-image, none);
	background-color: var(--theme-background-color, #2d2d2d);
	background-size: cover;
	accent-color: var(--color-primary);
}

html *,
html::after,
html::before {
	box-sizing: inherit;
}

body {
	margin: 0;
	background: rgba(0, 0, 0, 0.4);
	font-size: var(--font-size-p-2);
}

img {
	max-width: 100%;
	height: auto;
}

a {
	color: var(--color-primary);
}

p {
	margin: 0 0 20px;
}

p:last-child {
	margin-bottom: 0;
}

.login-page {
	min-height: 100vh;
	display: flex;
	flex-direction: column;
	flex-wrap: nowrap;
	justify-content: flex-start;
	align-content: stretch;
	align-items: stretch;
}

:root {
	--card-margin-x: 20px;
	--card-padding-x: 40px;
}

@media screen and (max-width: 640px) {
	:root {
		--card-padding-x: 20px;
		--card-margin-x: 10px;
	}
}

#kc-header-wrapper {
	margin: 1em 0;
	padding: 0 var(--card-margin-x);
	text-align: left;
	font-weight: bold;
	color: #ffffff;
	font-size: 1rem;
	width: 100%;
}

@media screen and (min-width: 768px) and (min-height: 600px) {
	#kc-header-wrapper {
		--logo-width: var(--theme-background-logo-width, 0px);
		--logo-height: var(--theme-background-logo-height, 0px);
		background: var(--theme-background-logo, none) no-repeat center bottom 10px;
		background-size: var(--logo-width) var(--logo-height);
		padding-bottom: calc(var(--logo-height) + 2em + 20px);
	}
}

#kc-header-wrapper::after {
	content: var(--kc-header-text, 'Risico Inventarisatie & Evaluatie');
	margin-left: 1em;
	font-weight: normal;
}

.form-card,
.footer-wrapper {
	max-width: calc(640px - var(--card-margin-x) * 2);
	width: calc(100% - var(--card-margin-x) * 2);
	margin-left: auto;
	margin-right: auto;
}

#kc-content {
	padding: 30px var(--card-padding-x);
	position: relative;
}

.form-card {
	margin: 20px auto 80px;
	background: #ffffff;
	border-radius: 0;
}

.form-card header {
	margin: 0;
	padding: 20px var(--card-padding-x);
	background: #ffffff;
	border-bottom: 1px solid var(--color-grey-50);
	position: relative;
	z-index: 1;
}

.form-card header #reset-login {
	display: none;
}

#kc-attempted-username {
	margin-bottom: 0;
}

.form-card header h1 {
	margin: 0;
	padding: 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.333em;
}

.form-group {
	margin: 0 0 20px;
}

label {
	color: var(--color-grey-500);
	font-size: var(--font-size-p-2);
	font-weight: 500;
	line-height: var(--line-height-p-2);
	padding: 2px 0;
	display: block;
}

input[type=text],
input[type=email],
input[type=password] {
	-webkit-appearance: none;
	-moz-appearance: none;
	appearance: none;
	background-color: var(--input-background-color);
	border: 1px solid var(--input-border-color);
	border-radius: 5px;
	color: var(--input-color);
	display: block;
	font-family: inherit;
	font-size: var(--input-font-size);
	height: auto;
	line-height: var(--input-line-height);
	max-width: 100%;
	min-width: 100%;
	padding: 10px;
	width: 100%;
}

input[disabled] {
	background-color: var(--input-background-color-disabled);
	border-color: var(--input-border-color-disabled);
	color: var(--input-color-disabled);
}

.input-error-message {
	margin: 4px 0 8px;
	color: var(--color-error);
	display: block;
}

.btn {
	--button-bg: var(--color-primary);
	--button-border-color: var(--color-primary);
	--button-color: #ffffff;
	background: var(--button-bg);
	border: 1px solid var(--button-border-color);
	border-radius: 5px;
	cursor: pointer;
	color: var(--button-color);
	display: inline-block;
	flex: 0 0 auto;
	font-size: .8125rem;
	line-height: 1.53846;
	max-width: 100%;
	padding: 9px 15px;
	text-decoration: none;
	transition: all .1s ease-in-out;
}

.btn:hover {
	--button-bg: var(--color-primary-600);
	--button-border-color: var(--color-primary-600);
}

[id=kc-form-buttons],
.form-options-wrapper {
	margin: 20px 0;
}

.alert-error,
.alert-success {
	display: block;
	width: 100%;
	padding: 10px 20px;
	border-radius: 5px;
	margin: 0 0 20px;
}

.alert-error {
	background: var(--color-error-light);
	border: 1px solid var(--color-error);
	color: #000000;
}

.alert-success {
	background: var(--color-success-light);
	border: 1px solid var(--color-success);
	color: #000000;
}

/* Hide show password toggle */
button[data-password-toggle] {
	display: none;
}

@font-face {
	font-family: 'Poppins';
	font-weight: 400;
	font-style: normal;
	src: url('../fonts/Poppins-Regular.woff2') format('woff2');
	font-display: swap;
}

@font-face {
	font-family: 'Poppins';
	font-weight: 500;
	font-style: normal;
	src: url('../fonts/Poppins-Medium.woff2') format('woff2');
	font-display: swap;
}

@font-face {
	font-family: 'Poppins';
	font-weight: 700;
	font-style: normal;
	src: url('../fonts/Poppins-Bold.woff2') format('woff2');
	font-display: swap;
}
