:root{
    --form-radius:1.5rem;
    --form-block-padding:1rem;
    --form-inline-padding:1rem;
    --form-position:start;
    --form-bak-width: calc(50vw + 400px);
}

body {
    background:
    url(../assets/images/loginBak.jpg) no-repeat left / var(--form-bak-width)
    ,#192947;
}

.LoginPanel {
    margin: auto;
    background-color: var(--white);
    border-radius: var(--form-radius);
    padding: var(--form-block-padding) var(--form-inline-padding);
    box-shadow: var(--box-shadow-1);
    position: relative;
    width: 400px;
    max-width: calc(100vw - 15px);
}
@media (max-width:991px) {
    :root{
        --form-position:center;
        --form-bak-width: 100vw;
    }
    body {
        background:
        linear-gradient(to right , #19294791 ,#19294791) , url(../assets/images/loginBak.jpg);
        background-size: cover;
        background-position: center;
        background-repeat: no-repeat;
    }
}


.dnnFormItem {
    display: flex !important;
    flex-direction: column;
    gap: var(--gap);
    text-align: start !important;
    position: relative;
}

.dnnLabel,
.dnnFormItem>label.dnnFormLabel,
.dnnFormItem>span.dnnFormLabel {
    margin: 0 !important;
    text-align: start;
    font-weight: var(--fw-600);
    position: absolute;
    top: -10px;
    right: 10px;
    background-color: var(--white);
    display: block;
    width: fit-content;
    padding: 0 0.5rem;
    max-height: 15px;
}

.dnnLoginService {
    display: flex;
    flex-direction: column;
    gap: calc(var(--gap) * 2);
}

.dnnLeft {
    display: flex;
    flex-direction: column;
    gap: var(--gap);
}

.dnnLogin {
    display: flex;
    height: 100vh;
    height: 100dvh;
    align-items: center;
    position: static;
    justify-content:var(--form-position);
}

/* .dnnLogin::before {
    content: '';
    display: block;
    height: 100vh;
    height: 100dvh;
    position: absolute;
    width: var(--form-bak-width);
    right: calc(100vw - var(--form-bak-width));
    background: url(../assets/images/loginBak.webp) no-repeat right / cover;
    visibility: visible;
} */


/* *------------------------------- form inputs Start ------------------------------- */

.dnnFormItem input[type="text"],
.dnnFormItem input[type="password"],
.dnnFormItem input[type="email"],
.dnnFormItem input[type="tel"],
.dnnFormItem select,
.dnnFormItem textarea {
    width: 100%;
    margin-bottom: unset;
    max-width: 100%;
    border: solid 1px var(--bw-fade-4);
    border-radius: calc(var(--form-radius) - var(--form-inline-padding));
    padding-inline: 0.5rem;
    font-size: var(--fz-lg);
    transition: var(--transition);
}

.dnnFormItem input[type="text"]:active,
.dnnFormItem input[type="text"]:focus,
.dnnFormItem input[type="password"]:focus,
.dnnFormItem input[type="password"]:active,
.dnnFormItem input[type="email"]:active,
.dnnFormItem input[type="email"]:focus,
.dnnFormItem select:active,
.dnnFormItem select:focus,
.dnnFormItem textarea:active,
.dnnFormItem textarea:focus,
.dnnFormItem input[type="search"]:active,
.dnnFormItem input[type="search"]:focus {
    border-color: var(--mc1);
}

/* !------------------------------- form inputs End --------------------------------- */

/* *------------------------------- captcha Start ------------------------------- */

div.dnnCaptcha {
    margin: 0;
    padding: 0;
    width: 100% !important;
    margin-top: -0.5rem;
}
.dnnCaptcha img {
    width: 150px;
    border-radius: calc(var(--form-radius) - var(--form-inline-padding));
    user-select: none;
}

*[id*="Login_DNN_plCaptcha"] {
    position: static !important;
}

/* !------------------------------- captcha End --------------------------------- */

/* *------------------------------- buttons Start ------------------------------- */

.dnnPrimaryAction,
.dnnSecondaryAction {
    padding: 0.5rem;
    text-align: center;
    margin: 0;
    border-radius: 0.5rem;
    color: var(--button-accent);
    background: var(--button-color) !important;
    border: solid 1px var(--button-accent);
    outline: unset;
    box-shadow: unset !important;
}
.dnnPrimaryAction {
    --button-color: var(--mc1-fade-0);
    --button-accent: var(--white);
}

.dnnSecondaryAction {
    --button-color: var(--white);
    --button-accent: var(--mc1-fade-0);
}

/* !------------------------------- buttons End --------------------------------- */

/* *------------------------------- remember Start ------------------------------- */

.mark img {
    display: none;
}

.dnnCheckbox .mark{
    width: 1.25rem;
    height: 1.25rem;
    background-color: var(--white);
    border: solid 1px var(--bw-fade-5);
    border-radius: 0.25rem;
    vertical-align: middle;
    padding: 2px;
}

.dnnCheckbox .mark::after{
    content: '';
    display: block;
    width: 100%;
    height: 100%;
    background-color: var(--mc1-fade-0);
    border-radius: 2px;
    visibility: hidden;
    opacity: 0;
    transform: scale(0.9);
    transition: calc(var(--transition) / 2);
}

.dnnCheckbox.dnnCheckbox-checked .mark::after{
    transform: scale(1);
    visibility: visible;
    opacity: 1;

}

.dnnBoxLabel{
    font-weight: var(--fw-600);
}

.dnnLoginRememberMe :is(label,.dnnCheckbox){
    cursor: pointer;
    user-select: none;
}

/* !------------------------------- remember End --------------------------------- */