:root {
    --hdn-yellow: rgb(253, 193, 0);
    --hdn-gray: rgb(69, 77, 91);
    --hdn-pink: rgb(220, 69, 112);
    --hdn-white: rgb(255, 255, 255);

    --hdn-danger: #c9190b;
    --hdn-warning: #f0ab00;
    --hdn-success: #3e8635;
    --hdn-info: #2b9af3;
}

/* =========================================================
   Base
   ========================================================= */

html,
body {
    width: 100%;
    min-height: 100%;
    margin: 0;
}

html * {
    box-sizing: border-box;
    font-family: 'Montserrat', sans-serif;
}

body {
    min-height: 100vh;
    color: var(--hdn-gray);
}

a {
    color: var(--hdn-gray);
    font-weight: 500;
    text-decoration: none;
}

a:hover,
a:focus {
    color: var(--hdn-gray);
    text-decoration: underline;
}

/* =========================================================
   Page background and layout
   ========================================================= */

.login-pf body,
body.login-pf {
    min-height: 100vh;
    background-image: url("../img/hdn-bg.png");
    background-repeat: no-repeat;
    background-position: left top;
    background-size: cover;
    background-attachment: fixed;
}

.login-pf-page {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    /* justify-content: center !important; */

    width: 100%;
    min-height: 100vh;
    padding: 120px 20px;
}

/* =========================================================
   Header
   ========================================================= */
#kc-header {
    flex: 0 0 auto;
    width: 100%;
    max-width: 540px;
    margin: 0;
    padding: 0;

    color: var(--hdn-white);
    overflow: visible;
    text-align: center;
    white-space: normal;
}

#kc-header-wrapper {
    margin: 0;
    padding: 0 10px 62px;

    color: var(--hdn-white);
    font-size: 32px;
    font-weight: 500;
    line-height: 1.2;
    text-align: center;
    text-transform: lowercase;
    white-space: normal;
}

#kc-page-title {
    margin: 20px 0 10px;
    font-size: 30px;
    font-weight: 300;
    line-height: 1.2;
    text-align: center;
    text-transform: lowercase;
}

/* =========================================================
   Login card
   ========================================================= */

.card-pf,
.login-pf-page .card-pf {
    position: static;
    flex: 0 0 auto;

    width: 100%;
    min-width: 540px;
    max-width: 540px;
    margin: 0;
    padding: 24px 40px 44px;

    border: 0;
    background: var(--hdn-yellow);
    color: var(--hdn-gray) !important;
    box-shadow:
        rgba(46, 52, 61, 0.6) 0 4px 16px,
        rgba(46, 52, 61, 0.3) 0 8px 32px;

    font-size: 14px !important;
}

.card-pf p,
.card-pf a,
.card-pf a:hover,
.card-pf a:focus {
    color: var(--hdn-gray) !important;
}

#kc-content,
#kc-content-wrapper,
#kc-form {
    width: 100%;
}

#kc-content-wrapper .row {
    margin-right: 0;
    margin-left: 0;
}

/* =========================================================
   Form layout
   ========================================================= */

#kc-form-login,
#kc-otp-login-form {
    width: 100%;
}

.form-group,
.pf-v5-c-form__group,
.pf-v5-c-form__group-control {
    width: 100%;
}

label,
.pf-v5-c-form__label-text {
    color: var(--hdn-gray);
    font-size: 16px;
    font-weight: 600;
}

.form-horizontal .control-label,
label.control-label {
    display: block;
    float: none;
    width: 100%;

    margin:  15px 0 10px;
    padding: 0;

    line-height: 1.4;
    text-align: left;
}

input[type="text"],
input[type="email"],
input[type="password"],
input[type="number"],
input[type="tel"],
input[type="url"],
textarea,
select,
.form-control,
.pf-v5-c-form-control {
    width: 100%;
    min-height: 36px;
    padding: 8px 12px;

    border: 0 !important;
    border-radius: 0;
    background: var(--hdn-white) !important;
    color: var(--hdn-gray) !important;
    box-shadow: none !important;

    font-size: 14px;
    outline: none;
}

input[type="text"]:hover,
input[type="text"]:focus,
input[type="email"]:hover,
input[type="email"]:focus,
input[type="password"]:hover,
input[type="password"]:focus,
input[type="number"]:hover,
input[type="number"]:focus,
input[type="tel"]:hover,
input[type="tel"]:focus,
input[type="url"]:hover,
input[type="url"]:focus,
textarea:hover,
textarea:focus,
select:hover,
select:focus,
.form-control:hover,
.form-control:focus,
.pf-v5-c-form-control:hover,
.pf-v5-c-form-control:focus-within {
    border: 0 !important;
    background: var(--hdn-white) !important;
    color: var(--hdn-gray) !important;
    box-shadow: none !important;
    outline: none !important;
}

input[aria-invalid="true"],
.has-error input,
.has-error textarea,
.has-error select {
    outline: 2px solid var(--hdn-danger) !important;
    outline-offset: 0;
}

.login-pf-settings {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

#kc-form-options {
    width: auto;
}

/* Wrapper around "Wachtwoord vergeten?" */
#kc-form-options + div {
    margin-left: auto;
    text-align: right;
}

#kc-form-options + div span,
#kc-form-options + div a {
    display: inline-block;
}


#kc-form-options span {
    display: block;
}

#kc-form-options .checkbox {
    margin-top: 0;
    color: var(--hdn-gray);
}

#kc-form-buttons {
    width: 100%;
    margin-top: 40px;
}

#kc-registration {
    margin-bottom: 15px;
}

#kc-terms-text {
    margin-bottom: 20px;
}

/* =========================================================
   Buttons
   ========================================================= */

.btn,
.btn:hover,
.btn:focus,
.btn:active,
input[type="submit"],
input[type="submit"]:hover,
input[type="submit"]:focus,
input[type="submit"]:active,
.pf-v5-c-button.pf-m-primary,
.pf-v5-c-button.pf-m-primary:hover,
.pf-v5-c-button.pf-m-primary:focus,
.pf-v5-c-button.pf-m-primary:active {
    width: 100%;
    min-height: 36px;

    border: 0 !important;
    border-radius: 0;
    background: var(--hdn-pink) !important;
    background-image: none !important;
    color: var(--hdn-white) !important;
    box-shadow: none !important;

    font-size: 18px !important;
    font-weight: 300;
    text-transform: lowercase;
    outline: none !important;
}

.btn-default,
.pf-v5-c-button.pf-m-secondary {
    background: var(--hdn-gray) !important;
    color: var(--hdn-white) !important;
}

.login-pf-page .btn-primary {
    margin-top: 0;
}

/* =========================================================
   Password reveal
   ========================================================= */

.password-reveal {
    position: relative;
    z-index: 2;
    float: right;

    margin-top: -29px;
    margin-right: 10px;

    color: var(--hdn-gray);
    font-size: 20px;
    cursor: pointer;
}

.bi-eye,
.bi-eye-slash {
    display: inline-block;
    width: 1em;
    height: 1em;

    background-color: currentColor;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 100% 100%;
    mask-size: 100% 100%;
}

.bi-eye {
    --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cg fill='%23000'%3E%3Cpath d='M16 8s-3-5.5-8-5.5S0 8 0 8s3 5.5 8 5.5S16 8 16 8M1.173 8a13 13 0 0 1 1.66-2.043C4.12 4.668 5.88 3.5 8 3.5s3.879 1.168 5.168 2.457A13 13 0 0 1 14.828 8q-.086.13-.195.288c-.335.48-.83 1.12-1.465 1.755C11.879 11.332 10.119 12.5 8 12.5s-3.879-1.168-5.168-2.457A13 13 0 0 1 1.172 8z'/%3E%3Cpath d='M8 5.5a2.5 2.5 0 1 0 0 5a2.5 2.5 0 0 0 0-5M4.5 8a3.5 3.5 0 1 1 7 0a3.5 3.5 0 0 1-7 0'/%3E%3C/g%3E%3C/svg%3E");
    -webkit-mask-image: var(--svg);
    mask-image: var(--svg);
}

.bi-eye-slash {
    --svg: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cg fill='%23000'%3E%3Cpath d='M13.359 11.238C15.06 9.72 16 8 16 8s-3-5.5-8-5.5a7 7 0 0 0-2.79.588l.77.771A6 6 0 0 1 8 3.5c2.12 0 3.879 1.168 5.168 2.457A13 13 0 0 1 14.828 8q-.086.13-.195.288c-.335.48-.83 1.12-1.465 1.755q-.247.248-.517.486z'/%3E%3Cpath d='M11.297 9.176a3.5 3.5 0 0 0-4.474-4.474l.823.823a2.5 2.5 0 0 1 2.829 2.829zm-2.943 1.299l.822.822a3.5 3.5 0 0 1-4.474-4.474l.823.823a2.5 2.5 0 0 0 2.829 2.829'/%3E%3Cpath d='M3.35 5.47q-.27.24-.518.487A13 13 0 0 0 1.172 8l.195.288c.335.48.83 1.12 1.465 1.755C4.121 11.332 5.881 12.5 8 12.5c.716 0 1.39-.133 2.02-.36l.77.772A7 7 0 0 1 8 13.5C3 13.5 0 8 0 8s.939-1.721 2.641-3.238l.708.709zm10.296 8.884l-12-12l.708-.708l12 12z'/%3E%3C/g%3E%3C/svg%3E");
    -webkit-mask-image: var(--svg);
    mask-image: var(--svg);
}

/* =========================================================
   Alerts
   ========================================================= */

.alert-error {
    border-color: var(--hdn-danger);
    background: var(--hdn-white);
    color: var(--hdn-gray);
}

.pf-c-alert,
.pf-v5-c-alert {
    position: relative;
    display: grid;
    grid-template-columns: max-content 1fr;
    width: 100%;
    margin-bottom: 8px;
    padding: 8px 10px;

    border: 1px solid #d2d2d2;
    background: var(--hdn-white);
    color: var(--hdn-gray);
}

.pf-c-alert::before,
.pf-v5-c-alert::before {
    position: absolute;
    top: -1px;
    bottom: -1px;
    left: -1px;

    width: 4px;
    content: "";
    background: var(--hdn-info);
}

.pf-c-alert.pf-m-danger::before,
.pf-v5-c-alert.pf-m-danger::before {
    background: var(--hdn-danger);
}

.pf-c-alert.pf-m-warning::before,
.pf-v5-c-alert.pf-m-warning::before {
    background: var(--hdn-warning);
}

.pf-c-alert.pf-m-success::before,
.pf-v5-c-alert.pf-m-success::before {
    background: var(--hdn-success);
}

.pf-c-alert__icon,
.pf-v5-c-alert__icon {
    padding-right: 8px;
    font-size: 16px;
}

.pf-c-alert__title,
.pf-v5-c-alert__title,
.kc-feedback-text {
    padding: 0;
    color: var(--hdn-gray);
    font-size: 14px;
    line-height: 1.4;
}

/* =========================================================
   Locale selector
   ========================================================= */

#kc-locale {
    position: relative;
    width: 100%;
    text-align: right;
    z-index: 10;
}

#kc-locale ul {
    position: absolute;
    top: 20px;
    right: 0;

    display: none;
    min-width: 120px;
    margin: 0;
    padding: 2px 0;

    border: 1px solid #bbb;
    background: var(--hdn-white);
    list-style: none;
}

#kc-locale:hover ul,
#kc-locale:focus-within ul {
    display: block;
}

#kc-locale ul li a {
    display: block;
    padding: 5px 14px;

    color: #000 !important;
    line-height: 20px;
    text-decoration: none;
}

#kc-locale ul li a:hover,
#kc-locale ul li a:focus {
    background: #d4edfa;
    color: #4d5258 !important;
}

#kc-locale-dropdown a {
    padding: 0 15px 0 0;
    background: transparent;
    color: #4d5258;
    font-weight: 300;
}

a#kc-current-locale-link {
    display: inline-block;
    padding: 0 5px;
}

a#kc-current-locale-link::after {
    margin-left: 4px;
    content: "\2c5";
}

/* =========================================================
   OTP / TOTP
   ========================================================= */

ol#kc-totp-settings {
    margin: 0;
    padding-left: 20px;
}

ul#kc-totp-supported-apps {
    margin-bottom: 10px;
}

#kc-totp-secret-qr-code {
    max-width: 150px;
    max-height: 150px;
}

#kc-totp-secret-key {
    padding: 10px;
    background: var(--hdn-white);
    color: #333;
    font-family: monospace;
    font-size: 16px;
}

/* =========================================================
   OAuth and code pages
   ========================================================= */

#kc-oauth h3 {
    margin-top: 0;
}

#kc-oauth ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#kc-oauth ul li {
    padding: 10px 0;
    border-top: 1px solid rgba(255, 255, 255, 0.25);
    font-size: 12px;
}

#kc-oauth ul li:first-of-type {
    border-top: 0;
}

#kc-oauth .kc-role {
    display: inline-block;
    width: 50%;
}

#kc-code textarea {
    width: 100%;
    min-height: 8em;
}

/* =========================================================
   ReCaptcha
   ========================================================= */
.captcha-container {
    margin-top: 24px;
    margin-bottom: 24px;
}

.g-recaptcha {
    display: flex;
    justify-content: center;
}

/* =========================================================
   Social providers
   ========================================================= */

#kc-social-providers ul {
    margin: 0;
    padding: 0;
    list-style: none;
}

#kc-social-providers li {
    display: block;
}

#kc-social-providers li:first-of-type {
    margin-top: 0;
}

.zocial,
a.zocial {
    width: 100%;

    border: 0;
    border-radius: 0;
    background: #f5f5f5;
    color: #72767b;

    box-shadow: none;
    font-size: 14px;
    font-weight: 400;
    text-shadow: none;
    white-space: normal;
}

.zocial:hover,
.zocial:focus {
    background: #ededed !important;
}

.zocial::before {
    margin-right: 0;
    border-right: 0;
}

.zocial span::before {
    padding: 7px 10px;
    font-size: 14px;
}

.zocial.facebook,
.zocial.github,
.zocial.google,
.zocial.microsoft,
.zocial.stackoverflow,
.zocial.linkedin,
.zocial.twitter {
    border: 0;
    background-image: none;
    box-shadow: none;
    text-shadow: none;
}

.zocial.microsoft::before {
    content: "\f15d";
}

.zocial.stackoverflow::before {
    color: inherit;
}

.login-pf-page .login-pf-social-link {
    margin-bottom: 25px;
}

.login-pf-page .login-pf-social-link a {
    padding: 2px 0;
}

/* =========================================================
   Info and signup sections
   ========================================================= */

#kc-info-wrapper {
    color: var(--hdn-gray);
    font-size: 13px;
}

.login-pf-page .login-pf-signup {
    color: var(--hdn-white) !important;
    font-size: 14px;
}

/* =========================================================
   Responsive
   ========================================================= */

@media (max-width: 840px) {
    .card-pf,
    .login-pf-page .card-pf {
        max-width: 540px;
    }
}

@media (max-width: 767px) {
    .login-pf-page {
        justify-content: flex-start !important;
        min-height: 100vh;
        padding: 25px 0;
    }

    #kc-header {
        padding: 0 20px;
    }

    #kc-header-wrapper {
        padding: 0 10px 25px;
        font-size: 24px;
        letter-spacing: 0;
    }

    .card-pf,
    .login-pf-page .card-pf {
        width: calc(100% - 40px);
        max-width: none;
        margin: 0 20px;
        padding: 20px 20px 30px;
    }

    #kc-locale {
        width: 100%;
        margin-bottom: 10px;
    }

    #kc-info-wrapper {
        margin-top: 15px;
        padding: 15px 0 0;
        border-top: 1px solid rgba(255, 255, 255, 0.25);
    }

    #kc-social-providers li {
        margin-right: 0;
    }
}

@media (max-height: 650px) and (min-width: 768px) {
    .login-pf-page {
        justify-content: flex-start !important;
        padding-top: 40px;
        padding-bottom: 40px;
    }

    #kc-header-wrapper {
        padding-bottom: 25px;
    }
}
