/* The following styles have been added to adapt the stylesheet for Partium */
@import url(../fonts/WorkSans/work-sans.css);

html, body, .login-pf body {
  --font-family: 'Work Sans', 'Open Sans', sans-serif;
  --body-padding: 10px;
  font-family: var(--font-family);
  color: #2F333B;
  display: flex;
  flex-direction: column;
	background: #F4F4F5;
}

body::before,
body::after {
  /* for correct margins above and below the card (this solution allows us different margins on top and bottom */
  content: "";
  flex-shrink: 0;
}

a {
	color: #539987;
  font-size: 14px;
}

.login-pf-page {
	background: #FFFFFF;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  padding: 30px;
  flex-shrink: 0;
  width: 480px;
  max-width: calc(100vw - 2 * var(--body-padding));
}

.login-pf-page .card-pf,
.card-pf {
    margin: 0;
    padding: 0;
}


.select-auth-box-headline {
    font-size: 16px;
    color: #539987;
    font-weight: bold;
}

.select-auth-box-desc {
    margin-right: 0.5em;
}

.select-auth-box-icon {
    display: none;
}

#kc-header {
  margin: 0;
}

#kc-header-wrapper {
  background-image: url(../img/partium-logo.png);
	background-repeat: no-repeat;
	background-position: center;
  background-size: 100%;
	width: 160px;
	height: 64px;
	margin: auto;
	font-size: 0px;
}

#kc-info-wrapper {
	border-top: 1px solid rgba(255, 255, 255, 0.1);
	background-color: transparent;
}

.card-pf {
	background: transparent;
	border: none;
	box-shadow: none;
}

#kc-select-try-another-way-form {
	text-align: center;
	margin: auto;	
	margin-top: 15px;
}

div#forgot_pw {
	text-align: center;
	margin: auto;
}

div#partium-footer {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  margin-top: 50px;
  flex-grow: 1;
}

div#partium-legal {
  margin: 0;
  font-size: 12px;
  color: #595C62;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

div#partium-legal-buttons {
  font-size: 12px;
  font-weight: 500;
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 20px;
}

div#partium-legal-buttons a {
  font-size: 12px;
  font-weight: 500;
}

div#language-select-container {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-top: 20px;
}


#kc-locale {
  position: relative;
  border: 1px solid #D7D7D9;
  border-radius: 4px;
  padding: 2px 10px;
  align-self: center;
  margin-top: 30px;
}

#kc-locale ul {
  background-color: var(--pf-global--BackgroundColor--100);
  display: none;
  top: 20px;
  min-width: 100px;
  padding: 0;
}

#kc-locale-dropdown {
  display: inline-block;
}

#kc-locale-dropdown:hover ul {
  display:block;
}

#kc-locale-dropdown a {
  color: var(--pf-global--Color--200);
  text-align: right;
  font-size: var(--pf-global--FontSize--sm);
}

#kc-locale-dropdown button:hover {
  text-decoration: none;
}

button#kc-current-locale-link::after {
  content: "\25BE";
  margin-left: var(--pf-global--spacer--xs)
}

/*phone*/
@media (max-width: 767px) {
  body::before {
    height: var(--body-padding);
  }

  body::after {
    height: var(--body-padding);
  }

  .login-pf-page {
    padding: 12px;
    overflow-y: auto;
  }
  
	.card-pf {
		background: transparent;
		box-shadow: none;
		margin: 0 auto;
        width: unset; 
        max-width: unset;
	}

	.pf-c-form__label {
		color: #2F333B;
		letter-spacing: -0.26px;
		font-size: 10px;
		padding-bottom: 5px;
    font-family: var(--font-family);
	}

  div#partium-legal {
    font-size: 12px;
    font-weight: 600;
    color: #2F333B;
  }

  div#partium-legal a {
    font-size: 12px;
  }
}

/*desktop*/
@media (min-width: 768px) {
  body::before {
    min-height: var(--body-padding);
    flex: 2; /* pseudo-element before the form, to use 20% of the remaining space (used for vertical positioning) */
  }

  body::after {
    min-height: var(--body-padding);
    flex: 8; /* pseudo-element before the form, to use 80% of the remaining space (used for vertical positioning) */
  }
}

.btn-lg {
	background: #539987;
	border-width: 0;
	width: 100%;
	height: 40px;
	text-align: center;
	border-radius: 5px;
}

.pf-c-button.pf-m-primary {
	color: #FFFFFF;
	background-color: #539987;
  font-size: 14px;
  font-weight: normal;
  text-transform: none;
}

.pf-c-button.pf-m-primary:hover {
  background-color: #64a393;
}

.pf-c-button.pf-m-primary:disabled {
  opacity: 0.5;
}

.login-pf-page .login-pf-header {
  margin-bottom: 30px;
}

.login-pf-page .login-pf-header h1 {
  font-size: 16px;
  font-weight: 500;
}

.pf-c-form__label {
	color: #2F333B;
	letter-spacing: -0.26px;
	font-size: 14px;
  font-weight: 500;
	padding-bottom: 5px;
}

.pf-c-form-control,
.pf-c-form-control:hover,
.pf-c-form-control:focus {
  font-size: 14px;
	padding-left: 20px;
	padding-top: 20px;
	padding-bottom: 20px;
  border-width: 1px;
  border-color: #D7D7D9;
	border-radius: 5px;
	outline: none;
}

.pf-c-form-control:focus {
  border-color: #529987;
}

.pf-c-form-control:not(textarea) {
  height: 40px;
}

.pf-c-form-control[aria-invalid="true"] {
	font-size: 14px;
	padding-left: 25px;
	padding-top: 25px;
	padding-bottom: 25px;
	border-radius: 5px;
	border-width: 0;
}

.pf-c-form-control::placeholder {
	font-style: normal;
}

.required {
	color: #c30000; /* default - IE compatibility */
	color: var(--pf-global--danger-color--100);
}

.visibility-container {
	display: flex;
	justify-content: flex-end;
	align-items: center;
}

.visibility {
	position: relative;
	right: 40px;
	bottom: 33px;
	width: 24px;
	height: 24px;
	opacity: 0.54;
	border: none;
	margin: 0;
}

.partium-hidden {
  display: none !important;
}