:root {
    --color-orange: #ff4a00;
    --color-gray-dark: #363636;
    --color-gray: rgba(183, 183, 183, 0.7);
    --color-gray-light: rgba(233, 233, 233, 0.7);
    --color-text-main: rgba(47, 47, 47, 1);
    --color-text-main-80: rgba(47, 47, 47, 0.8);
    --color-alert: #f32626;
    --color-success: #16a500;
    --max-content-width: 65rem;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

html,
body {
    min-height: 100%;
    max-width: 100vw;
    color: var(--color-text-main);
}

html.no-scroll {
    height: 100vh;
    overflow: hidden;
}

body {
    overflow-x: clip;
    font-family: 'Lato';
    font-weight: 400;
    position: relative;
    font-size: 16px;
    margin: 0;
    padding: 0;
}

.di-login-container {
    height: 100%;
    box-sizing: border-box;
    min-height: calc(100vh - clamp(1rem, 3vw, 4rem));
    min-height: calc(100dvh - clamp(1rem, 3vw, 4rem) * 2);
    background-color: var(--color-gray-dark);
    margin: clamp(1rem, 3vw, 4rem);
    padding: clamp(1rem, 3vw, 4rem);
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: relative;
    background-image: url(/resources/assets/login/bg-one.svg);
    background-repeat: no-repeat;
    background-position: 0% 0%;
    background-size: auto 70%;
}

.di-login-logo {
    margin-top: 5vh;
    margin-bottom: clamp(4rem, 4vw, 7.2rem);
    max-width: clamp(13rem, 35vw, 19.3rem);
    width: 100%;
}

.di-login-content {
    flex: 1 1 100%;
    position: relative;
    padding: 2rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: var(--color-gray-light);
    font-weight: 700;
    font-size: 1.4rem;
}

.di-login-form {
    width: 100%;
    max-width: 50rem;
}

.di-login-form .form-floating {
    margin-bottom: 1.6rem;
    font-size: 1.6rem;
    position: relative;
}

.di-login-form .form-floating input,
.di-login-form .form-floating textarea {
    font-size: inherit;
    font-weight: 700;
    width: 100%;
    border: none;
    height: 5rem;
    padding: 2.2rem 1.6rem 0;
    line-height: 100%;
    padding-top: 2.2rem;
    padding-bottom: 2.2rem;
    border-radius: 0;
}

.di-login-form .form-floating label {
    font-size: 1.4rem;
    color: var(--color-text-main-80);
    padding: 0;
    top: 1.3rem;
    left: 1.6rem;
    height: auto;
    transform: translateY(-50%);
}

.di-login-form .form-floating > .form-control:focus ~ label,
.di-login-form .form-floating > .form-control:not(:placeholder-shown) ~ label {
    color: var(--color-text-main);
    padding-top: 0;
    top: 0.4rem;
    transform: scale(0.74) translateY(0);
}

.di-login-form .di-login-buttons {
    padding-right: 1rem;
    display: flex;
    justify-content: flex-end;
    max-width: none;
    flex-direction: row;
    gap: 3rem;
    width: 100%;
}

.di-login-form .di-login-buttons button,
.di-login-form .di-login-buttons a {
    flex: 0 0 auto;
    width: auto;
}

.di-login-content svg {
    vertical-align: top;
}

.di-login-content p {
    font-size: 1.5rem;
    color: var(--color-gray-light);
    margin-bottom: 2rem;
    text-transform: none;
}

.di-login-footer {
    width: 100%;
    margin-top: auto;
}

.di-login-footer a {
    text-decoration: none;
    color: var(--color-gray);
    font-size: 1.4rem;
    display: block;
    margin-bottom: 0.3rem;
    text-transform: uppercase;
}

.di-login-footer .seperator {
    color: var(--color-orange);
    padding: 0 1rem;
    display: none;
}

.di-login-footer .di-login-copyright {
    color: #fff;
    margin-bottom: 1rem;
    text-transform: none;
}

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

h1 {
    font-weight: 700;
}

.icon {
    width: 1.6rem;
    height: 1.6rem;
}

.icon.icon-xl {
    width: 2.4rem;
    height: 2.4rem;
}

.di-login-message {
    margin-bottom: clamp(1rem, 2vw, 2rem);
    font-size: clamp(2rem, 4vw, 2.4rem);
    text-align: center;
    max-width: var(--max-content-width);
    text-transform: uppercase;
}

.di-login-message.di-login-alert {
    color: var(--color-alert);
}

.di-login-message.di-login-success {
    color: var(--color-success);
}

.di-login-text {
    text-align: center;
    line-height: 1.4;
    max-width: var(--max-content-width);
}

.di-login-buttons {
    width: 100%;
    max-width: 27rem;
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 4.2rem;
}

.skewed-button {
    text-decoration: none;
    position: relative;
    height: clamp(4rem, 4vw, 4.8rem);
    padding: 0 2.8rem;
    font-size: clamp(1.4rem, 3vw, 1.8rem);
    text-transform: uppercase;
    color: #fff;
    cursor: pointer;
    font-weight: 700;
    display: flex;
    width: auto;
    justify-content: flex-start;
    align-items: center;
    column-gap: 2rem;
    background-color: transparent;
    border: none;
}

.skewed-button.skewed-button--both:after {
    display: none;
}

.skewed-button.skewed-button--gray:before {
    background: #666;
}

.skewed-button.skewed-button--small {
    height: clamp(3rem, 4vw, 3.6rem);
    padding: 0 1.8rem;
    font-size: clamp(1.2rem, 3vw, 1.6rem);
}

.skewed-button > * {
    z-index: 1;
    position: relative;
}

.skewed-button .icon:last-child {
    margin-left: auto;
}

.skewed-button :last-child svg {
    transition: transform 300ms;
    flex: 0 0 2.4rem;
}

.skewed-button:before {
    content: '';
    background: var(--color-orange);
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    transform: skew(-15deg);
}

.skewed-button:hover :last-child svg {
    transform: translateX(1.2rem);
}

.skewed-button:after {
    content: '';
    background: var(--color-orange);
    height: 100%;
    width: 50%;
    position: absolute;
    right: -1rem;
    top: 0;
    display: block;
}

@media (min-width: 600px) {
    .di-login-footer .seperator {
        display: inline-flex;
    }
    .di-login-footer a {
        display: inline;
    }
    .di-login-form .di-form-flex {
        display: flex;
        gap: 1rem;
    }

    .di-login-form .di-form-flex > * {
        flex: 1 1 auto;
    }
}

@media (min-width: 1080px) {
    .di-login-container {
        flex-direction: row;
        gap: 5rem;
        background-image: url(/resources/assets/login/bg-two.svg), url(/resources/assets/login/bg-one.svg);
        background-repeat: no-repeat, no-repeat;
        background-position: 90% 0%, 100% 100%;
        background-size: 50% auto, 50% auto;
    }

    .di-login-content {
        flex: 0 0 47%;
    }

    .di-login-image {
        flex: 1 1 40%;
        display: flex;
        justify-content: stretch;
        align-items: stretch;
        align-content: stretch;
        overflow: hidden;
        position: relative;
        border: 1.4rem solid #fff;
    }
    .di-login-image img {
        position: absolute;
        width: 100%;
        height: 100%;
        flex: 0 0 100%;
        object-position: top center;
        object-fit: cover;
        display: block;
    }
}
