@font-face {
     font-family: "Relative";
     font-style: normal;
     font-weight: 400;
     src: url("../fonts/relative_bold.otf") format("otf");
}
 @font-face {
     font-family: 'Relative';
     src: url('../fonts/relative_book.otf') format('opentype');
     font-weight: 300;
     font-style: normal;
}
 @font-face {
     font-family: 'Relative';
     src: url('../fonts/relative_medium.otf') format('opentype');
     font-weight: 500;
     font-style: normal;
}
 @font-face {
     font-family: 'Relative';
     src: url('../fonts/relative_bold.otf') format('opentype');
     font-weight: 700;
     font-style: normal;
}
 @font-face {
     font-family: 'Relative';
     src: url('../fonts/relative_bookitalic.otf') format('opentype');
     font-weight: 500;
     font-style: italic;
}
 @font-face {
     font-family: 'Relative';
     src: url('../fonts/relative_bolditalic.otf') format('opentype');
     font-weight: 700;
     font-style: italic;
}

/* Light mode (default) */
:root {
    --page-background: #f7f7f7;
    --card-background: #ffffff;
    --foreground: #242424;
    --foreground-muted: #8c8c8c;

    --primary: #078388;
    --primary-hover: #0b686a;
    --primary-active: #004648;
    --primary-foreground: #ffffff;

    --secondary: #fafafa;
    --secondary-foreground: #078388;
    --secondary-border: #ccccc0;

    --tertiary-foreground: #056266;
    --tertiary-hover: #dff1f0;
    --tertiary-hover-foreground: #07454a;
    --tertiary-active: #e6eaea;

    --input-background: #ffffff;
    --input-border: rgba(34, 36, 38, 0.15);
    --input-border-hover: rgba(0, 0, 0, 0.4);
    --input-border-focus: #078388;

    --button-shadow: #adadad;

    --alert-warning-bg: #fbf2e5;
    --alert-warning-border: #f7e6cd;
    --alert-warning-text: var(--foreground);
    --alert-danger-bg: #fef0f2;
    --alert-danger-border: #fcdfe2;
    --alert-success-bg: #dbf0ec;
    --alert-success-border: rgba(21, 166, 160, 0.1);
    --alert-success-text: var(--foreground);

    --error: #e30021;

    --gradient-start: #61c6cc;
    --gradient-end: #0da6a0;

    --footer-color: #ffffff;
    --dropdown-bg: #ffffff;
}

/* Dark mode */
html.dark {
    --page-background: hsl(240, 15%, 8%);
    --card-background: hsl(240, 7%, 12.5%);
    --foreground: hsl(0, 0%, 98%);
    --foreground-muted: hsl(0, 0%, 64%);

    --primary: hsl(181, 81%, 23%);
    --primary-hover: hsl(178, 85%, 34%);
    --primary-active: hsl(182, 100%, 14%);
    --primary-foreground: #ffffff;

    --secondary: hsl(0, 0%, 16%);
    --secondary-foreground: hsl(178, 85%, 34%);
    --secondary-border: #3d3d3d;

    --tertiary-foreground: hsl(182, 71%, 73%);
    --tertiary-hover: hsl(186, 65%, 12%);
    --tertiary-hover-foreground: hsl(182, 79%, 77%);
    --tertiary-active: hsl(184, 68%, 16%);

    --input-background: hsl(240, 5%, 19%);
    --input-border: hsl(0, 0%, 25%);
    --input-border-hover: hsl(0, 0%, 40%);
    --input-border-focus: hsl(178, 85%, 34%);

    --button-shadow: rgba(0, 0, 0, 0.6);

    --alert-warning-bg: hsl(37, 20%, 16%);
    --alert-warning-border: hsl(37, 25%, 24%);
    --alert-warning-text: hsl(37, 60%, 75%);
    --alert-danger-bg: hsl(0, 40%, 15%);
    --alert-danger-border: hsl(0, 40%, 25%);
    --alert-success-bg: hsl(170, 25%, 14%);
    --alert-success-border: hsl(170, 30%, 22%);
    --alert-success-text: hsl(170, 50%, 75%);

    --error: #ff4d6a;

    --gradient-start: hsl(182, 50%, 25%);
    --gradient-end: hsl(175, 70%, 20%);

    --footer-color: hsl(0, 0%, 80%);
    --dropdown-bg: hsl(240, 7%, 15%);
}

html.dark input:-webkit-autofill,
html.dark input:-webkit-autofill:hover,
html.dark input:-webkit-autofill:focus {
    -webkit-box-shadow: 0 0 0 1000px hsl(240, 5%, 19%) inset;
    -webkit-text-fill-color: hsl(0, 0%, 98%);
    transition: background-color 5000s ease-in-out 0s;
}

.footer {
    position: fixed;
    bottom: 10px;
    width: 100%;
    text-align: center;
    color: var(--footer-color);
}

.login-pf body {
     background: linear-gradient(to bottom, var(--gradient-start), var(--gradient-end)) !important;
     height: 100vh;
     width: 100%;
     display: flex;
     align-items: center;
     justify-content: center;
     font-family: Relative;
     font-size: 14px;
     font-weight: 500;
     font-style: normal;
     font-stretch: normal;
     line-height: 1.33;
     letter-spacing: normal;
     -webkit-font-smoothing: antialiased;
}

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

.card-pf {
    margin: 0 auto;
    border-radius: 8px;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.1);
    padding: 0 20px;
    max-width: 500px;
    background-color: var(--card-background);
    border-top: 0px;
}

html.dark .card-pf {
    box-shadow: 0 2px 16px 0 rgba(0, 0, 0, 0.3);
}

.pf-c-button {
    font-family: Relative;
    font-weight: bold;
    font-style: normal;
    font-stretch: normal;
    line-height: 1.29;
    letter-spacing: normal;
    font-size: 14px;
    border-radius: 6px;
    margin: 0px;
    height: 40px;
    display: flex;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
    transition: opacity 0.1s ease, background-color 0.1s ease, color 0.1s ease, box-shadow 0.1s ease,
      background 0.1s ease;
    -webkit-box-pack: center;
    justify-content: center;
    -webkit-box-align: center;
    align-items: center;
    border: none;
    outline: none;
}

.pf-c-button.pf-m-primary {
    background-color: var(--primary);
    color: var(--primary-foreground);
    box-shadow: 0 1px 0 0 var(--button-shadow);
    border: none;
}
.pf-c-button.pf-m-primary:hover {
    background-color: var(--primary-hover);
}
.pf-c-button.pf-m-primary:active {
    background-color: var(--primary-active);
}
.pf-c-button.pf-m-primary:disabled {
    background-color: var(--primary);
    opacity: 0.5;
}

.pf-c-input-group {
    background-color: transparent;
    align-items: center;
}

.pf-c-input-group > .pf-c-button.pf-m-control {
    margin-left: 8px;
}

.pf-c-button.pf-m-control {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
    box-shadow: 0 1px 0 0 var(--button-shadow);
    border: solid 1px var(--secondary-border);
}
.pf-c-button.pf-m-control:hover {
    background-color: var(--primary);
    color: var(--primary-foreground) !important;
}
.pf-c-button.pf-m-control:hover .kc-social-gray {
    color: var(--primary-foreground);
}
.pf-c-button.pf-m-control:active {
    background-color: var(--primary-active);
    color: var(--primary-foreground);
}
.pf-c-button.pf-m-control:active .kc-social-gray {
    color: var(--primary-foreground);
}
.pf-c-button.pf-m-control:disabled {
    background-color: var(--secondary);
    color: var(--secondary-foreground);
    opacity: 0.6;
}

.pf-c-button.pf-m-control::after {
    border: none;
}

.pf-c-form-control {
    width: 100%;
    height: 46px !important;
    -webkit-tap-highlight-color: rgba(255,255,255,0);
    background: var(--input-background);
    border: 1px solid var(--input-border);
    border-radius: .28571429rem;
    box-shadow: none;
    color: var(--foreground);
    flex: 1 0 auto;
    font-size: 14px;
    font-family: Relative, Lato,Helvetica Neue,Arial,Helvetica,sans-serif;
    font-stretch: normal;
    font-style: normal;
    line-height: 1.43;
    letter-spacing: normal;
    line-height: 1.21428571em;
    font-weight: 500;
    -webkit-font-smoothing: antialiased;
    margin: 0;
    max-width: 100%;
    outline: 0;
    text-align: left;
    transition: box-shadow .1s ease,border-color .1s ease;
}
.pf-c-form-control:hover {
     border: solid 1px var(--input-border-hover);
}
.pf-c-form-control:active, .pf-c-form-control:focus {
     border: solid 1px var(--input-border-focus);
}

.pf-c-form-control[aria-invalid="true"] {
    border: solid 1px var(--error);
}

.pf-c-form__label {
    color: var(--foreground-muted);
    margin-bottom: 6px;
}

h1 {
    font-weight: bold;
    font-style: normal;
    font-stretch: normal;
    line-height: 1.18;
    letter-spacing: normal;
    color: var(--foreground);
}

a {
    color: var(--tertiary-foreground) !important;
    font-family: Relative;
    font-weight: bold;
    font-style: normal;
    font-stretch: normal;
    line-height: 1.29;
    letter-spacing: normal;
    font-size: 14px;
    border-radius: 6px;
    margin: 0px;
    padding: 0px 8px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    flex-wrap: nowrap;
    white-space: nowrap;
}

a:hover {
    background-color: var(--tertiary-hover);
    color: var(--tertiary-hover-foreground) !important;
    text-decoration: none;
}

a:active {
    background-color: var(--tertiary-active);
    color: var(--tertiary-hover-foreground) !important;
    text-decoration: none;
}

a#kc-current-locale-link::after {
    content: url('../img/z-icon-arrow-down-light.svg');
    width: 12px;
    height: 12px;
    margin-left: 4px;
    color: var(--tertiary-foreground);
}

html.dark a#kc-current-locale-link::after {
    content: url('../img/z-icon-arrow-down-light-white.svg');
}

#kc-header-wrapper {
     padding: 16px 0px 0px 0px;
}

.kc-social-gray {
     color: var(--secondary-foreground);
}

#kc-social-providers a.pf-c-button {
    height: 40px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

#kc-social-providers a.pf-c-button i {
    position: absolute;
    left: 12px;
}

#kc-social-providers a.pf-c-button .kc-social-icon-text {
    left: 0;
}

#kc-form-options .checkbox {
    margin-top: 8px;
}

#kc-form-options .checkbox label,
#kc-form-options .checkbox input {
    color: var(--foreground);
}

#kc-locale-dropdown a {
    text-align: left;
}

.pf-c-alert {
     display: flex;
     font-size: 13px;
     padding: 15px 15px;
     margin-bottom: 24px;
     background-color: var(--alert-warning-bg);
     border-color: none !important;
     border-radius: 12px;
     border: solid 1px var(--alert-warning-border);
     text-align: left;
     color: var(--foreground);
}
.pf-c-alert.pf-m-danger {
    background-color: var(--alert-danger-bg);
    border: solid 1px var(--alert-danger-border);
}
.pf-c-alert.pf-m-warning {
    background-color: var(--alert-warning-bg);
    border: solid 1px var(--alert-warning-border);
    color: var(--alert-warning-text);
}
.pf-c-alert__title {
     font-size: 14px;
     font-weight: 500;
     font-style: normal;
     font-stretch: normal;
     line-height: 1.33;
     letter-spacing: normal;
     -webkit-font-smoothing: antialiased;
     --pf-c-alert__title--Color: var(--foreground);
}

html.dark .pf-c-alert.pf-m-warning .pf-c-alert__title {
    --pf-c-alert__title--Color: var(--alert-warning-text);
}

html.dark .pf-c-alert.pf-m-success .pf-c-alert__title {
    --pf-c-alert__title--Color: var(--alert-success-text);
}
.pf-c-alert__icon img {
    width: 24px;
    height: 24px;
}


/*.pf-c-alert.pf-m-info {

}*/
.pf-c-alert.pf-m-success {
    background-color: var(--alert-success-bg);
    border: solid 1px var(--alert-success-border);
    color: var(--alert-success-text);
}

.pf-c-dropdown__menu {
    border-radius: 8px;
    background-color: var(--dropdown-bg);
    border: 1px solid var(--input-border);
}

.pf-c-dropdown__menu-item {
    color: var(--foreground);
}

.pf-c-dropdown__menu-item:hover {
    background-color: var(--tertiary-hover);
}

#kc-info-wrapper {
    display: flex;
    background-color: inherit;
    color: var(--foreground-muted);
    font-size: 14px;
    font-weight: normal;
    font-stretch: normal;
    font-style: italic;
    line-height: 1.43;
    letter-spacing: normal;
}

#kc-info-wrapper::before {
    content: url('../img/z-icons-32-hand.svg');
    width: 24px;
    height: 24px;
    color: var(--tertiary-foreground);
    margin-right: 6px;
}

.pf-c-form-control[aria-invalid=true] {
    background-image: none;
}

.required {
    color: var(--error);
}

/* Checkbox: use primary color */
input[type="checkbox"]:checked {
    accent-color: var(--primary);
}

/* Locale dropdown popup */
#kc-locale-dropdown ul {
    background-color: var(--dropdown-bg);
    border: 1px solid var(--input-border);
    border-radius: 8px;
}

#kc-locale-dropdown ul li a {
    color: var(--foreground) !important;
}

#kc-locale-dropdown ul li a:hover {
    background-color: var(--tertiary-hover);
}

/*phone*/
@media (max-width: 767px) {
    .pf-c-form-control {
        font-size: 16px !important;
    }

    .login-pf-page .card-pf {
        max-width: none;
        margin-left: 8px;
        margin-right: 8px;
        padding-top: 0;
        border-top: 0;
        box-shadow: 0 0;
    }

    .kc-social-grid {
        grid-column-end: 12;
        --pf-l-grid__item--GridColumnEnd: span 12;
    }

    .kc-social-grid .kc-social-icon-text {
        left: -15px;
    }

    #kc-header {
        padding-left: 15px;
        padding-right: 15px;
        float: none;
        text-align: center;
    }

    #kc-header-wrapper {
        font-size: 16px;
        font-weight: bold;
        padding: 20px 20px 0 0;
        color: #72767b;
        letter-spacing: 0;
    }

    #kc-header-wrapper img {
        width: 70%;
    }

    a#kc-current-locale-link {
        color: white !important;
    }

    a#kc-current-locale-link::after {
        content: url('../img/z-icon-arrow-down-light-white.svg');
    }

    .login-pf body {
        flex-direction: column;
    }

    .login-pf-page {
        margin-bottom: 0;
    }

    .footer {
        position: static;
        padding: 16px 0;
    }
}

.terms-and-conditions {
    margin-top: 12px;
    font-size: 12px;
    margin-bottom: 30px;
    color: var(--foreground-muted);
}

.terms-and-conditions a {
    color: var(--tertiary-foreground) !important;
    font-family: Relative;
    font-weight: normal;
    font-style: normal;
    font-stretch: normal;
    line-height: 1.29;
    letter-spacing: normal;
    font-size: 12px;
    border-radius: 6px;
    margin: 0px;
    padding: 0px 0px;
    height: 32px;
    display: revert;
    flex-wrap: nowrap;
    white-space: nowrap;
}
