:root {
  --brand-color: #FF4081;
  --background-color: #EAEAEA;
}

@font-face {
    font-family: "Nunito";
    src: url('../fonts/Nunito-VariableFont_wght.ttf') format('truetype');
    font-style: normal;
}

@font-face {
    font-family: "Nunito";
    src: url('../fonts/Nunito-Italic-VariableFont_wght.ttf') format('truetype');
    font-style: italic;
}

@font-face {
    font-family: "NowayRound";
    src: url('../fonts/NowayRound-Regular.otf');
    font-weight: 400;
    font-style: normal;
}

@font-face {
    font-family: "NowayRound";
    src: url('../fonts/NowayRound-Bold.otf');
    font-weight: 700;
    font-style: normal;
}

@font-face {
    font-family: "NowayRound";
    src: url('../fonts/NowayRound-BoldItalic.otf');
    font-weight: 700;
    font-style: italic;
}

@font-face {
    font-family: "NowayRound";
    src: url('../fonts/NowayRound-Italic.otf');
    font-weight: 400;
    font-style: italic;
}

@font-face {
    font-family: "NowayRound";
    src: url('../fonts/NowayRound-Light.otf');
    font-weight: 300;
    font-style: normal;
}

@font-face {
    font-family: "NowayRound";
    src: url('../fonts/NowayRound-LightItalic.otf');
    font-weight: 300;
    font-style: italic;
}

@font-face {
    font-family: "NowayRound";
    src: url('../fonts/NowayRound-Medium.otf');
    font-weight: 500;
    font-style: normal;
}

@font-face {
    font-family: "NowayRound";
    src: url('../fonts/NowayRound-MediumItalic.otf');
    font-weight: 500;
    font-style: italic;
}

@font-face {
    font-family: "NowayRound";
    src: url('../fonts/NowayRound-Thin.otf');
    font-weight: 100;
    font-style: normal;
}

@font-face {
    font-family: "NowayRound";
    src: url('../fonts/NowayRound-ThinItalic.otf');
    font-weight: 100;
    font-style: italic;
}

.companyLogo {
    position: absolute;
    padding: 32px;
    margin-bottom: 16px;
}

@media (max-width: 767px) {
    .companyLogo {
        padding: 24px;
    }
}

.locale {
    display: flex;
    justify-content: end;
}

.login-pf body {
    height: 100%;
    font-family: "Nunito", sans-serif;
	font-size: 14px;

    h1,h2,h3,h4,h5 {
        font-family: "NowayRound", sans-serif;
        font-weight: 700;
        font-style: italic;
        text-transform: uppercase;
    }
}

#kc-locale ul {
    display: none;
    position: absolute;
    background-color: #fff;
    list-style: none;
    right: 0;
    top: 20px;
    min-width: 100px;
    padding: 2px 0;
    border: solid 1px #bbb;
}

#kc-locale:hover ul {
    display: block;
    margin: 0;
}

#kc-locale ul li a {
    display: block;
    padding: 5px 14px;
    color: #000 !important;
    text-decoration: none;
    line-height: 20px;
}

#kc-locale ul li a:hover {
    color: #212121;
    background-color: #d4edfa;
}

#kc-locale-dropdown a {
    color: #212121;
    background: 0 0;
    padding: 0 15px 0 0;
    font-weight: 500;
	font-size: 14px;
}

#kc-locale-dropdown a:hover {
    text-decoration: none;
}

a#kc-current-locale-link {
    display: block;
    padding: 0 5px;
}

a#kc-current-locale-link::after {
    margin-top: 5px;
    margin-left: 10px;
	display: block;
	content: ' ';
	background-image: url("../img/expand_more.svg");
	background-size: 12px 12px;
	height: 12px;
	width: 12px;
	float: right;
}

#kc-attempted-username{
    font-size: 20px;
    font-family:inherit;
    font-weight: normal;
    padding-right:10px;
}

#kc-username{
    text-align: center;
}

#kc-webauthn-settings-form{
    padding-top:8px;
}

#kc-info-wrapper {
    font-size: 13px;
}

#kc-terms-text {
    margin-bottom: 20px;
}

/* TOTP */

#kc-page-title {
	text-align: left;
	font-size: 20px;
	font-weight: 500;
	padding: 0px 20px;
}

.subtitle {
    text-align: right;
    margin-top: 30px;
    color: #909090;
}

.required {
    color: #CB2915;
}


@media (min-width: 768px) {
    .card-pf {
        width: 600px;
    }
    #kc-container-wrapper {
        position: absolute;
        width: 100%;
    }

    #kc-locale {
        position: relative;
        text-align: right;
        z-index: 9999;
    }
}

.card-pf {
    background: #fff;
    padding: 10px;
    border-radius: 10px;
    opacity: 0.8;
}

@media (max-width: 767px) {

    .login-pf-page {
        padding: 0;
        padding-top: 100px;
    }

    .card-pf {
        width: 100%;
        height: 100%;
        border-radius: 0px;
    }
    #kc-locale {
        position: relative;
        top: 20px;
        text-align: right;
        z-index: 9999;
		font-size: 14px;
		font-weight: 500;
        color: #212121;
		height: 40px;
		margin-bottom: 20px;
		padding: 0px 20px;
    }

}

.card-pf form.form-actions .btn {
    float: right;
    margin-left: 10px;
}

.login-pf-page {
    display: flex;
    height: 100vh;
    justify-content: center;
    align-items: center;
    background: url('../img/background.png');
    background-repeat: no-repeat;
    background-size: cover;

}

.login-pf-page .login-pf-brand {
  margin-top: 20px;
  max-width: 360px;
  width: 40%;
}

.login-pf-page .login-pf-signup {
  font-size: 15px;
  color: #72767b;
}
#kc-content-wrapper .row {
  margin-left: 0;
  margin-right: 0;
}

.login-pf-page .login-pf-social-link {
  margin-bottom: 25px;
}
.login-pf-page .login-pf-social-link a {
  padding: 2px 0;
}

.login-pf-page.login-pf-page-accounts {
  margin-left: auto;
  margin-right: auto;
}

.login-pf-page .list-view-pf .list-group-item {
    border-bottom: 1px solid #ededed;
}

.login-pf-page .list-view-pf-description {
    width: 100%;
}

#kc-back {
    margin-top: 5px;
}

form#kc-select-back-form div.login-pf-social-section {
    padding-left: 0px;
    border-left: 0px;
}

.control-label {
    color: #000000;
	font-size: 16px;
    line-height: 1.4em;
    padding-top: 5px;
    position: relative;
    width: 100%;
	font-weight: 500;
}

.form-control {
	width: 100%;
}

.form-control:invalid {
	color: red;
}

::placeholder {
  color: #999;
  font-style: normal !important;
}

:-moz-placeholder {
  color: #999;
  font-style: normal !important;
}
::-moz-placeholder {
  color: #999;
  font-style: normal !important;
  opacity: 1;
}

.glyphicon.glyphicon-eye-open {
    margin: 0 10px;
}

.glyphicon.glyphicon-eye-close {
    margin: 0 10px;
}

.input-error{
    color: #B00020 !important;
    border-bottom: 1px solid #B00020 !important;
}

#error-container {
	background-color: #333333 !important;
	border-color: #333333 !important;
    color: #ffffff !important;
    margin-top: 16px;
}

.color-black > span {
    color: black !important;
}

.links {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.kc-form-login input,
.kc-form-login textarea,
.kc-form-login select {
    box-sizing: border-box;
}

.login-pf-header {
    display: flex;
    flex-direction: column;
    gap: 32px;
    margin-bottom: 16px;
}

form {
    .form-controls {
        display: flex;
        flex-direction: column;
        gap: 16px;
        width: 100%;

        .stay-logged-in {
            display: flex;
            align-items: center;
            gap: 16px;
        }

        input:not([type="checkbox"]) {
            box-shadow: inset 0 1px 2px rgba(0,0,0,0.05);
            transition: border-color 0.2s ease, box-shadow 0.2s ease;
            -webkit-text-fill-color:  #222 !important;
            -webkit-box-shadow:      0 0 0px 1000px #fff inset !important;
            box-shadow:      0 0 0px 1000px #fff inset !important;
            transition: background-color 5000s ease-in-out 0s !important;

            &:focus {
                outline: none;
                border-color: var(--brand-color);
                box-shadow:
                    inset 0 1px 2px rgba(0,0,0,0.05),
                    0 0 0 3px rgba(0,116,228,0.3);
            }
        }

        .password {
            position: relative;

            .toggle-password {
                position: absolute;
                top: 50%;
                right: 0.75rem;
                transform: translateY(-50%);
                border: none;
                background: none;
                padding: 0;
                cursor: pointer;
                line-height: 1;
              }
        }
    }
    .form-control {
        width: 100%;
    }

    .stay-logged-in {
        display: flex;
        gap: 10px;
        align-items: center;

        input {
            margin: 0;
            color: var(--brand-color);
        }
    }

    .checkbox-forgot-password {
        display: flex;
        justify-content: space-between;
        align-items: center;

        input[type="checkbox"] {
            margin: 0;
        }
    }

    #kc-form-options {
        display: flex;
        justify-content: space-between;
        align-items: center;
        cursor: pointer;
    }

    .login-button {
        padding: 10px;
        width: 100%;
        background-color: var(--background-color);
        border-radius: 10px;
        border: none;
    }
}

#kc-registration {
    margin-top: 16px;
}

.login-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 10px;
}

.login-pf-page .card-pf {
    padding: 16px;
}

.login-pf-page .btn-primary, .form-horizontal .form-group, .form-group {
    margin: 0;
    padding: 0;
}

#kc-reset-password-form {
    display: flex;
    margin-bottom: 16px;
}

#kc-logout {
    padding: 10px;
    width: 100%;
    background-color: var(--background-color);
    border-radius: 10px;
    border: none;
    margin-bottom: 10px;
    color: black;
    font-family: inherit !important;
    font-size: inherit !important;
    line-height: inherit !important;
}

.action-buttons {
    display: flex;
    flex-direction: column;
    gap: 10px;
}