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

body.lt-auth-body {
    --lt-primary: #c63e47;
    --lt-primary-dark: #912f39;
    --lt-primary-rgb: 198, 62, 71;
    --lt-primary-soft: #fdf1f2;
    --lt-image-bg: #f1dfe1;

    margin: 0;
    color: #2d3a51;
    background: #ffffff;
    font-family: Arial, "Helvetica Neue", Helvetica, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body.lt-auth-body.liomedthuis-auth {
    --lt-primary: #3385c6;
    --lt-primary-dark: #2d3a51;
    --lt-primary-rgb: 51, 133, 198;
    --lt-primary-soft: #f4f9fe;
    --lt-image-bg: #dceaf5;
}

.lt-login-shell {
    display: flex;
    min-height: 100vh;
    background: #ffffff;
}

.lt-login-panel {
    position: relative;
    width: 45%;
    min-width: 520px;
    min-height: 100vh;
    background: #ffffff;
}

.lt-brand-row {
    position: absolute;
    top: 112px;
    left: 5.5vw;
    right: 48px;
    display: flex;
    align-items: center;
    gap: 28px;
}

.lt-brand-row img {
    display: block;
    width: 178px;
    max-width: 48%;
    height: auto;
}

.lt-back-link {
    color: var(--lt-primary);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.3;
    text-decoration: none;
    white-space: nowrap;
}

.lt-back-link:hover,
.lt-back-link:focus {
    color: var(--lt-primary-dark);
    text-decoration: none;
}

.lt-login-block {
    position: absolute;
    top: 44vh;
    left: 5.5vw;
    width: calc(100% - 11vw);
    max-width: 455px;
    transform: translateY(-8%);
}

.lt-login-title {
    margin: 0 0 14px;
    color: #2d3a51;
    font-size: 28px;
    font-weight: 800;
    line-height: 1.1;
    letter-spacing: 0;
    text-transform: uppercase;
}

.lt-login-subtitle {
    margin: 0 0 18px;
    color: #566376;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.55;
}

.lt-login-block .alert {
    margin: 0 0 16px;
    border-radius: 6px;
    font-size: 13px;
}

.lt-login-feedback,
#reset-password-feedback {
    display: none;
}

.lt-login-form {
    margin: 0;
}

.lt-field {
    margin-bottom: 9px;
}

.lt-field-message {
    display: none;
    margin-top: 6px;
    color: #c0392b;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.lt-field-password {
    display: flex;
    align-items: stretch;
}

.lt-input {
    width: 100%;
    height: 52px;
    padding: 0 16px;
    color: #2d3a51;
    background: #ffffff;
    border: 1px solid #dbe3ea;
    border-radius: 6px;
    box-shadow: none;
    font-size: 14px;
    font-weight: 600;
    outline: none;
    transition: border-color 150ms ease, box-shadow 150ms ease;
}

.lt-input:focus {
    border-color: var(--lt-primary);
    box-shadow: 0 0 0 3px rgba(var(--lt-primary-rgb), 0.13);
}

.lt-field[data-lt-field="activation_code"] .lt-input {
    text-transform: uppercase;
    font-weight: 800;
}

.lt-field.field-error .lt-input {
    color: #7b1d1d;
    background: #fdecec;
    border-color: #d9534f;
    box-shadow: none;
}

.lt-field.field-error .lt-input:focus {
    border-color: #d9534f;
    box-shadow: 0 0 0 3px rgba(217, 83, 79, 0.14);
}

.lt-field.field-error .lt-field-message {
    display: block;
}

.lt-field-password .lt-input {
    border-right: 0;
    border-radius: 6px 0 0 6px;
}

.lt-toggle-password {
    width: 52px;
    height: 52px;
    padding: 0;
    color: #2d3a51;
    background: #ffffff;
    border: 1px solid #dbe3ea;
    border-left: 0;
    border-radius: 0 6px 6px 0;
    outline: none;
}

.lt-toggle-password:hover,
.lt-toggle-password:focus {
    color: var(--lt-primary);
    background: var(--lt-primary-soft);
}

.lt-field.field-error .lt-toggle-password {
    color: #7b1d1d;
    background: #fdecec;
    border-color: #d9534f;
}

.lt-form-actions {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 18px;
}

.lt-form-actions-start {
    justify-content: flex-start;
}

.lt-submit {
    min-width: 104px;
    height: 48px;
    padding: 0 22px;
    color: #ffffff;
    background: var(--lt-primary);
    border: 1px solid var(--lt-primary);
    border-radius: 6px;
    font-size: 14px;
    font-weight: 800;
    line-height: 46px;
    text-align: center;
    outline: none;
}

.lt-submit-wide {
    min-width: 156px;
}

.lt-submit:hover,
.lt-submit:focus {
    color: #ffffff;
    background: var(--lt-primary-dark);
    border-color: var(--lt-primary-dark);
}

.lt-forgot-link,
.lt-login-link,
.lt-register-link {
    color: var(--lt-primary);
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
    text-decoration: none;
}

.lt-forgot-link:before,
.lt-login-link:before {
    content: "\203A";
    margin-right: 5px;
}

.lt-forgot-link:hover,
.lt-forgot-link:focus,
.lt-login-link:hover,
.lt-login-link:focus,
.lt-register-link:hover,
.lt-register-link:focus {
    color: var(--lt-primary-dark);
    text-decoration: none;
}

.lt-register-row {
    margin-top: 20px;
}

.lt-register-intro {
    margin: 0 0 8px;
    color: #566376;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.4;
}

.lt-register-options {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px 18px;
}

.lt-register-options .lt-register-link:before {
    content: "\203A";
    margin-right: 5px;
}

.lt-login-image {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    width: 55%;
    overflow: hidden;
    background: var(--lt-image-bg);
}

.lt-login-image:before {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background-image: url("../img/placeholders/backgrounds/liomed_bg.jpg");
    background-position: center center;
    background-size: cover;
    transform: scale(1.02);
}

.lt-login-image:after {
    content: "";
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0));
}

@media screen and (max-width: 980px) {
    .lt-login-shell {
        display: block;
        min-height: 100vh;
    }

    .lt-login-panel {
        width: 100%;
        min-width: 0;
        min-height: 100vh;
        padding: 40px 24px 54px;
    }

    .lt-brand-row,
    .lt-login-block {
        position: static;
        left: auto;
        right: auto;
        width: 100%;
        max-width: 455px;
        transform: none;
    }

    .lt-brand-row {
        margin-bottom: 120px;
    }

    .lt-login-image {
        display: none;
    }
}

@media screen and (max-width: 520px) {
    .lt-login-panel {
        padding: 30px 20px 42px;
    }

    .lt-brand-row {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
        margin-bottom: 86px;
    }

    .lt-brand-row img {
        width: 190px;
        max-width: 100%;
    }

    .lt-login-title {
        font-size: 24px;
    }

    .lt-form-actions {
        align-items: flex-start;
        flex-direction: column;
        gap: 14px;
    }
}
