/* CLEARING DEFAULT BROWSER STYLES */
div,
input {
	box-sizing: border-box;
}

html,
body,
div,
span,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
input,
dl,
dt,
dd,
ol,
ul,
li,
fieldset,
form,
label,
legend,
article,
footer,
header {
	margin: 0;
	padding: 0;
	border: 0;
	vertical-align: baseline;
}

/* HTML5 DISPLAY RESET FOR OLDER BROWSERS */
article,
aside,
details,
figcaption,
figure,
footer,
header,
hgroup,
menu,
nav,
section {
	display: block;
}

body {
	line-height: 1;
}

ol,
ul {
	list-style: none;
}

@font-face {
	font-family: "Poppins";
	src: url("https://cdn.embracecloud.nl/shared-components/fonts/poppins/Poppins-Regular.woff2");
	font-weight: 400;
}

@font-face {
	font-family: "Poppins";
	src: url("https://cdn.embracecloud.nl/shared-components/fonts/poppins/Poppins-Medium.woff2");
	font-weight: 600;
}

@font-face {
	font-family: "Figtree";
	src:
		url("https://cdn.embracecloud.nl/shared-components/fonts/figtree/Figtree[wght].woff2"),
		format("woff2-variations");
}

/* BASIC CHANGES */
body {
	color: #191b1f;
	font-family: "Poppins", sans-serif;
}

button:not(:disabled):hover,
input[type="button"]:not(:disabled):hover,
input[type="submit"]:not(:disabled):hover {
	cursor: pointer;
}

a,
a:hover {
	color: var(--primary-color);
	text-decoration: none;
}

a:hover {
	color: var(--primary-color);
	text-decoration: underline;
}

a,
label,
input {
	font-size: 14px;
}

.login-pf,
.login-pf body {
	background: #f7f9fe;
}

/* WRAPPER */
.login-pf-page {
	display: flex;
	flex-direction: row-reverse;
	width: 100%;
	min-height: 800px;
	max-width: 1200px;
	margin: 5vh auto;
	padding: 0;
	border-radius: 30px;
	box-shadow: none;
	overflow: hidden;
	background-color: #fff;
}

/* LEFT COLUMN */
.login-pf-page .card-pf {
	align-content: center;
	width: 460px;
	box-sizing: content-box;
	padding: 90px 60px;
	background: #fff;
}

.login-pf-header h1 {
	font-family: "Poppins", sans-serif;
	font-weight: 600;
	position: relative;
	padding: 0 0 24px 0;
	line-height: 40px;
	font-size: 32px;
	text-align: center;
}

.login-pf-header .subtitle {
	font-family: "Poppins", sans-serif;
	font-weight: 400;
	color: #191b1f;
	line-height: 24px;
	font-size: 16px;
	letter-spacing: 0;
	text-align: center;
	margin-bottom: 5%;
}

.login-pf-header #reset-login {
	display: block;
	margin-bottom: 2em;
}

#kc-logo {
	display: block;
	width: var(--logo-width);
	height: var(--logo-height);
	margin-top: var(--logo-top);
	margin-left: auto;
	margin-right: auto;
	margin-bottom: 24px;
	object-fit: contain;
	object-position: center;
}

/* RIGHT COLUMN */
.login-pf-page .login-pf-page-header {
	width: 50%;
	border-radius: 30px;
	margin: 30px;
	background: #191b1fe0;
	background-image: var(--cover-url);
	background-repeat: no-repeat;
	background-position: bottom right;
	background-size: 90%;
}

.login-pf-page #kc-header-wrapper {
	display: none;
}

/* FORM STYLES */
#kc-form {
	display: flex;
	flex-direction: column;
}

#kc-form #kc-form-wrapper,
#kc-form #kc-social-providers {
	flex: 0 1 100%;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0;
	border: none;
}

.checkbox #logout-sessions {
	margin-bottom: 5rem;
}

#kc-form #kc-form-wrapper .form-group:not(.login-pf-settings) {
	display: flex;
	flex-direction: column;
}

#kc-form #kc-form-wrapper .form-group .pf-m-error {
	order: 1;
}

#kc-form #kc-form-wrapper .form-group > label {
	order: 2;
}

#kc-form #kc-form-wrapper .form-group > input {
	order: 3;
}

#kc-form #kc-social-providers h2 {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	max-width: 600px;
	margin: 24px auto;
	font-weight: 400;
	font-size: 14px;
	color: #6a6a6a;
	text-transform: lowercase;
	text-align: center;
	gap: 12px; /* space between lines and text */
}

#kc-form #kc-social-providers h2::before,
#kc-form #kc-social-providers h2::after {
	content: "";
	flex: 1;
	height: 1px;
	background: #e8e8e9;
}

#kc-form #kc-social-providers {
	display: flex;
	flex-direction: column;
}

#kc-form #kc-social-providers hr {
	display: none;
	width: 100%;
}

.form-group > label,
.form-group .pf-c-form__label,
.form-group .control-label {
	display: inline-block;
	margin-bottom: 0.5em;
}

.form-group.login-pf-settings {
	margin-bottom: 40px;
}

/* ALERT AND ERROR MESSAGES */
.alert,
.pf-m-error {
	display: block;
	margin-bottom: 1em;
	padding: 0.5em 1em;
	text-align: left;
	line-height: 1.4;
	border-style: solid;
	border-width: 1px;
}

.alert-error,
.pf-m-error {
	background: rgba(238, 89, 106, 0.1);
	border-color: #ee596a;
}

.alert-info {
	background: rgba(65, 110, 236, 0.1);
	border-color: #416eec;
}

.alert-success {
	background: rgba(105, 204, 137, 0.1);
	border-color: #69cc89;
}

.alert-warning {
	background: rgba(249, 163, 57, 0.1);
	border-color: #f9a339;
}

/* INPUT STYLES */
.form-control[type="text"],
.form-control[type="password"],
.pf-c-form-control[type="text"],
.pf-c-form-control[type="password"] {
	width: 100%;
	height: 40px;
	margin-bottom: 2em;
	padding: 8px;
	color: #24335a;
	line-height: 40px;
	border: 1px solid rgb(77, 92, 125);
	border-radius: 8px;
}

/* BUTTON STYLES */
#kc-social-providers ul,
.kc-social-links {
	margin-bottom: 30px;
}

#kc-form-buttons .btn,
input[type="button"].btn-block,
input[type="reset"].btn-block,
input[type="submit"].btn-block {
	width: 100%;
	margin-bottom: 12px;
}
/* Style for the first button (blue) */
#kc-form-buttons .pf-c-button:first-of-type,
#kc-social-providers .btn:first-of-type,
#kc-social-providers .login-pf-social-link a:first-of-type,
#kc-social-providers .pf-c-button:first-of-type {
	display: block;
	height: 40px;
	line-height: 40px;
	padding: 0 16px;
	color: var(--btn-font-color);
	font-family: "Figtree", sans-serif;
	font-size: 14px;
	font-weight: 500;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	background: var(--btn-background-color);
	border: none;
	border-radius: 8px;
	box-shadow: none;
}

#kc-form-buttons .pf-c-button:first-of-type:hover,
#kc-social-providers .btn:first-of-type:hover,
#kc-social-providers .login-pf-social-link a:first-of-type:hover,
#kc-social-providers .pf-c-button:first-of-type:hover {
	background-color: var(--btn-hover-background-color);
}

/* Style for all other buttons (white with border) */
#kc-form-buttons .pf-c-button:not(:first-of-type),
#kc-social-providers .btn:not(:first-of-type),
#kc-social-providers .login-pf-social-link a:not(:first-of-type),
#kc-social-providers .pf-c-button:not(:first-of-type) {
	display: block;
	height: 40px;
	margin-bottom: 8px;
	padding: 0 16px;
	color: #191b1fb2; /* Updated text color */
	line-height: 40px;
	font-family: "Figtree", sans-serif;
	font-size: 14px;
	font-weight: 700; /* Bold text */
	text-align: center;
	text-decoration: none;
	text-transform: none;
	text-overflow: ellipsis;
	white-space: nowrap;
	overflow: hidden;
	background: #ffffff; /* White background */
	border-radius: 8px;
	border: 1px solid rgb(77, 92, 125);
	box-shadow: none;
}

#kc-form-buttons .pf-c-button:not(:first-of-type):hover,
#kc-social-providers .btn:not(:first-of-type):hover,
#kc-social-providers .login-pf-social-link a:not(:first-of-type):hover,
#kc-social-providers .pf-c-button:not(:first-of-type):hover {
	background-color: #f6f6f6;
}

#kc-form-buttons .btn:hover,
.login-pf-page .btn:hover,
.login-pf-page .login-pf-social-link a:hover {
	text-decoration: none;
	background: #4c77de !important;
}

.login-pf-page .login-pf-social-link,
.login-pf-page .pf-c-button {
	margin-bottom: 10px;
}

#kc-info #kc-info-wrapper {
	line-height: 1.4;
}

/* 2 FACTOR PAGE SPECIFIC STYLES */
#kc-content-wrapper #kc-totp-settings,
#kc-content-wrapper #kc-totp-settings ul {
	margin: 0 0 1em 1.1em;
	list-style: disc;
}

#kc-content-wrapper img {
	max-width: 100%;
}

#kc-content-wrapper #kc-otp-login-form .form-group:first-child {
	padding-top: 2em;
	margin-bottom: 2em;
	border-top: 1px solid rgba(25, 27, 31, 0.1);
}

/* FORGOT PASSWORD PAGE */
label[for="username"] {
	display: block;
	margin-bottom: 10px;
}

/* PASSWORD REMEMBER OPTIONS */
.login-pf-page .login-pf-settings {
	display: flex;
	flex-wrap: wrap;
	align-items: center;

	justify-content: space-between;
}

/* PASSWORD TOGGLE BUTTON */
.form-password-wrapper {
	position: relative;
}

.password-toggle-icon {
	position: absolute;
	top: 2.1rem;
	right: 0.7rem;
	cursor: pointer;
	opacity: 50%;
}

.password-toggle-icon img {
	width: 1.25rem;
	height: 1.25rem;
}

/* ERROR PAGE */
#kc-error-message .instruction {
	margin-bottom: 1em;
}

#kc-error-message #backToApplication {
	display: inline-block;
	height: 40px;
	padding: 0 16px;
	color: var(--btn-font-color);
	font-family: "Figtree", sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 40px;
	text-align: center;
	text-decoration: none;
	text-transform: none;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	background: var(--primary-color);
	border: none;
	border-radius: 8px;
	box-shadow: none;
}

#kc-error-message #backToApplication:hover {
	background: #4c77de !important;
	text-decoration: none;
}

#kc-form.error-page #kc-form-buttons {
	margin-top: 1em;
}

#kc-form.error-page #kc-form-wrapper p {
	line-height: 1.4;
}

/* LARGE DEVICES (desktops, less than 1200px) */
@media (max-width: 1199.98px) {
	.login-pf-page {
		width: calc(100% - 40px);
		max-width: calc(100% - 40px);
		margin: 5vh 20px 0 20px;
	}

	.login-pf-page .card-pf {
		width: 50%;
	}

	.login-pf-page .login-pf-page-header {
		width: 50%;
	}
}

/* SMALL DEVICES (landscape phones, less than 800px) */
@media (max-width: 799.98px) {
	.login-pf-page {
		margin-top: 20px;
		min-height: 0;
	}

	.login-pf-page .card-pf {
		width: 100%;
		padding: 80px 40px;
	}

	.login-pf-page .login-pf-page-header {
		display: none;
	}
}

/* X-SMALL DEVICES (portrait phones, less than 576px) */
@media (max-width: 575.98px) {
	.login-pf-page .card-pf {
		min-width: unset;
		box-sizing: unset;
	}
}
