@font-face {
    font-family: 'Trenda Regular';
    font-style: normal;
    font-weight: normal;
    src: url('../fonts/Trenda-Regular.otf') format('opentype');
}

@font-face {
    font-family: 'Trenda Semibold';
    font-style: normal;
    font-weight: normal;
    src: url('../fonts/Trenda-Semibold.otf') format('opentype');
}

@font-face {
    font-family: 'Trenda Black';
    font-style: normal;
    font-weight: normal;
    src: url('../fonts/Trenda-Black.otf') format('opentype');
}

@font-face {
    font-family: 'Material Icons';
    font-style: normal;
    font-weight: 400;
    src: url('../fonts/MaterialIcons.otf') format('opentype');
}

.material-icons {
    font-family: 'Material Icons';
    font-size: 1.5rem;
    font-style: normal;
    font-weight: normal;
    height: 1.5rem;
    line-height: 1;
    width: 1.5rem;
}

html, body {
    color: #575757;
    font-family: 'Trenda Regular';
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.login-html {
    display: flex;
    flex-direction: column;
    height: auto;
    min-height: 100svh;
}

.login-body {
    display: flex;
    flex-grow: 1;
    justify-content: center;
    background-image: url('../img/background.png');
    background-size: cover;
    backdrop-filter: blur(12px);
    padding-block: 3rem;
}

.login-container {
    background: white;
    border-radius: 1.5rem;
    display: flex;
    margin-block: auto;
    overflow: hidden;
}

.login-side {
    border: 1rem solid white;
    display: flex;
    max-width: 37.5rem;
}

.login-side img {
    height: 100%;
    object-fit: contain;
}

.login-main {
    display: flex;
    flex-direction: column;
    padding: 3rem 4.5rem;
    width: 34rem;
}

.login-form {
    display: flex;
    flex-direction: column;
}

.login-form-header {
    display: flex;
    flex-direction: column;
    margin-bottom: 1.5rem;
}

.login-header-wrapper {
    align-items: center;
    display: flex;
    flex-direction: column;
}

img#alligator {
    height: 3rem;
    margin-bottom: 1.5rem;
}

img#sensit {
    height: 2.25rem;
    margin-top: 1rem;
}

img#wegmann {
    align-self: center;
    height: 2rem;
    margin-top: 1.5rem;
}

hr {
    all: unset;
    background: rgba(0, 0, 0, 0.1);
    height: 1px;
    width: 100%;
}

h1 {
    border-width: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    white-space: nowrap;
    width: 1px;
}

.subtitle {
    display: inline-block;
    font-size: 0.875rem;
    line-height: 1.25rem;
    margin-top: 0.5rem;
}

/* "Login timed out" */
.alert-error.pf-m-danger {
    background: #FDDFD3;
    border-radius: 0.375rem;
    color: #C21D3A;
    font-size: 0.875rem;
    line-height: 1.25rem;
    margin-bottom: 1rem;
    margin-top: -2rem;
    padding: 0.75rem 1rem;
}

#kc-page-title {
    display: none;
}

#kc-locale {
    display: none;
}

#kc-content {
    display: flex;
    flex-direction: column;
}

#kc-form-login {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.login-from-group {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

label {
    color: #575757;
    font-family: 'Trenda Semibold';
    font-size: 0.875rem;
    line-height: 1.25rem;
    margin: 0;
}

.login-input-text {
    border: 1px solid rgba(0, 0, 0, 0.42);
    border-radius: 0.375rem;
    flex-grow: 1;
    font-size: 1rem;
    line-height: 1.5rem;
    outline-color: #00A538;
    padding: 0.6875rem 0.9375rem;
    width: 100%;
}

.login-password-group {
    display: flex;
    position: relative;
}

.login-password-visibility {
    align-items: center;
    background: transparent;
    border: none;
    display: flex;
    height: 3rem;
    justify-content: center;
    padding: 0;
    position: absolute;
    right: 0;
    top: 1px;
    width: 3rem;
}

.mat-eye:after {
    content: "visibility";
}

.mat-eye-slash:after {
    content: "visibility_off";
}

.login-from-group:has(#kc-form-options) {
    align-items: center;
    justify-content: space-between;
    flex-direction: row;
}

.checkbox {
    margin: 0;
}

.checkbox label {
    display: flex;
    font-family: 'Trenda Regular';
    font-size: 1rem;
    font-weight: normal;
    gap: 0.5rem;
    line-height: 1.5rem;
    min-height: auto;
    padding: 0;
}

.checkbox input[type=checkbox] {
    appearance: none;
    border-radius: 0.1875rem;
    height: 1.5rem;
    margin: 0;
    position: relative;
    width: 1.5rem;
}

.checkbox input[type=checkbox]:focus {
    outline: 2px solid #00A538;
    outline-offset: -2px;
}

.checkbox input[type=checkbox]::before {
    color: #575757;
    content: "check_box_outline_blank";
    font-family: "Material Icons";
    font-size: 1.5rem;
    line-height: 1;
    pointer-events: none;
}

.checkbox input[type=checkbox]:checked::before {
    content: "check_box";
}

a.reset-password {
    color: #575757;
    display: flex;
    font-family: 'Trenda Semibold';
    font-size: 1rem;
    gap: 0.5rem;
    line-height: 1.5rem;
}

.login-button {
    align-items: center;
    background-color: #575757;
    border-radius: 0.375rem;
    border: none;
    color: #ffffff;
    display: flex;
    font-family: 'Trenda Semibold';
    font-size: 1rem;
    height: 3rem;
    justify-content: center;
    line-height: 1.5rem;
    margin-top: 0.5rem;
    padding: 0;
    width: 100%;
}

/* Social login */

#kc-social-providers {
    align-items: center;
    display: flex;
    flex-direction: column;
    margin-top: 1.5rem;
    position: relative;
}

#kc-social-providers > hr {
    position: absolute;
    top: 0.625rem;
}

#kc-social-providers > span {
    background: white;
    font-size: 0.875rem;
    line-height: 1.25rem;
    padding-inline: 1rem;
    z-index: 1;
}

#kc-social-providers ul {
    display: inline-flex;
    gap: 1rem;
    margin-block: 1rem;
}

#kc-social-providers a[id*="social-"]::before {
    content: "";
    display: flex;
    height: 1.5rem;
    width: 1.5rem;
}

#kc-social-providers a#social-facebook::before {
    background: url('../img/facebook.svg');
}

#kc-social-providers a#social-google::before {
    background: url('../img/google.svg');
}

#kc-social-providers a#social-instagram::before {
    background: url('../img/instagram.svg');
}

#kc-registration {
    font-size: 0.875rem;
    line-height: 1.25rem;
}

#kc-registration span {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
}

#kc-registration a {
    align-items: center;
    color: #575757;
    display: flex;
    font-family: 'Trenda Semibold';
    gap: 0.25rem;
}

#kc-registration .material-icons {
    font-size: 1.125rem;
    height: 1.125rem;
    width: 1.125rem;
}

#kc-info {
    margin-bottom: 1rem;
}

@media (width < 1024px), (height < 800px) {
    .login-side {
        display: none;
    }
}

#kc-content-wrapper, #kc-form, #kc-form-wrapper, #kc-info {
    display: flex;
    flex-direction: column;
}

/* Registration */

#kc-register-form {
    display: grid;
    gap: 24px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (width < 1024px), (height < 800px) {
    #kc-register-form {
        display: flex;
        flex-direction: column;
    }
}

.login-from-group:first-child,
.login-from-group:nth-child(8),
.login-from-group:nth-child(9),
.login-from-group:last-child {
    grid-column: 1 / -1;
}

.login-from-group:last-child {
    gap: 1.5rem;
}

#kc-form-buttons {
    flex-grow: 1;
}

.wg-browser-compatibility-message {
    background: rgba(0,0,0,0.7);
    border-end-end-radius: 0.75rem;
    border-end-start-radius: 0.75rem;
    color: white;
    display: flex;
    font-size: 1rem;
    gap: 0.75rem;
    justify-content: center;
    left: auto;
    line-height: 1.5rem;
    padding: 1rem;
    position: absolute;
    right: auto;
    top: 0;
    width: 67.5rem;
}

.wg-browser-compatibility-message svg {
    flex-shrink: 0;
}

.wg-browser-compatibility-message div {
    display: flex;
    flex-direction: column;
}

.wg-browser-compatibility-message span:first-child {
    font-family: 'Trenda Semibold';
}

@media (width < 1024px), (height < 800px) {
    .wg-browser-compatibility-message {
        width: 30rem;
    }
}
