body {
    display: flex;
    flex-direction: column;
}

.bg {
    height: calc(100vh - 60px);
    /* background-image: url('../assets/model-editor-bg.jpg'); */
    background-size: cover;
    background-repeat: no-repeat;
}

main {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100%;
}

.login-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 0 auto;
    padding: 82px 40px 40px;
    max-width: 508px;
    width: 100%;
    border-radius: 15px;
    background-color: var(--color-white);
    box-sizing: border-box;
    box-shadow: -17px 14px 14px rgba(166, 173, 179, 0.2);
}

form {
    width: 100%;
}

.divider {
    width: 100%;
    text-align: center;
    position: relative;
    margin: 44px 0;
    color: var(--color-gray);
}

.divider::before,
.divider::after {
    content: '';
    position: absolute;
    display: block;
    width: 120px;
    height: 1px;
    top: 7px;
    background: var(--color-gray);
}

.divider::before {
    left: 0;
}

.divider::after {
    right: 0;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 24px;
}

.form-group .password-field::placeholder {
    font-size: 18px;
}

.label-box {
    display: flex;
    justify-content: space-between;
}

.label-box a {
    color: var(--color-gray);
}

.label-box a:hover {
    text-decoration: underline;
}

.form-group label {
    margin-bottom: 8px;
    line-height: 20px;
}

.form-group input {
    padding: 11px 12px;
    border: 1px solid var(--color-gray-light);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
}

.form-group input::placeholder {
    color: var(--color-gray);
}

.form-names {
    display: flex;
    justify-content: space-between;
}

.form-names input {
    width: 180px;
}

.input-box {
    position: relative;
    width: 100%;
}

.input-box input[type="password"],
.input-box input[type="text"] {
    width: 100%;
    padding-right: 30px;
    box-sizing: border-box;
}

.input-box {
    position: relative;
    width: 100%;
}

.input-box input[type="password"],
.input-box input[type="text"] {
    width: 100%;
    padding-right: 40px;
    padding-left: 10px;
    height: 44px;
    box-sizing: border-box;
    font-size: 14px;
}

.show-box {
    position: absolute;
    top: 50%;
    right: 12px;
    transform: translateY(-50%);
    cursor: pointer;
    height: 24px;
    width: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.show-box input[type="checkbox"] {
    position: absolute;
    opacity: 0;
    pointer-events: none;
}

.show-box .icon {
    width: 25px;
    height: 25px;
    background: url('/base/static/assets/icons/eye_open.svg') no-repeat center;
    background-size: contain;
}

.show-box input:checked+.icon {
    background-image: url('/base/static/assets/icons/eye_off.svg');
    width: 22px;
    height: 22px;
}

.show-pass {
    position: absolute;
    top: 50%;
    right: 8px;
    margin: 0;
    transform: translateY(-50%);
    cursor: pointer;
}

.filter {
    display: block;
    position: relative;
    padding-left: 22px;
    margin-bottom: 24px;
    cursor: pointer;
    font-size: 14px;
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
    color: var(--color-gray);
}

.filter input {
    position: absolute;
    opacity: 0;
    cursor: pointer;
    height: 0;
    width: 0;
}

.checkmark {
    position: absolute;
    top: 0;
    left: 0;
    height: 12px;
    width: 12px;
    border: 1px solid var(--color-gray);
    border-radius: 2px;
}

.filter:hover input~.checkmark {
    background-color: var(--color-white);
}

.filter input:checked~.checkmark {
    background-color: var(--color-white);
}

.checkmark:after {
    content: "";
    position: absolute;
    display: none;
}

.filter input:checked~.checkmark:after {
    display: block;
}

.filter .checkmark:after {
    left: 4px;
    top: 0px;
    width: 4px;
    height: 8px;
    border: solid var(--color-black);
    border-width: 0 1px 1px 0;
    -webkit-transform: rotate(45deg);
    -ms-transform: rotate(45deg);
    transform: rotate(45deg);
}

form button,
.reset-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    margin-bottom: 16px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    color: var(--color-white);
    background: var(--color-black);
}

form button:hover {
    cursor: pointer;
}

.new-account {
    text-align: center;
    color: var(--color-gray-medium);
}

.new-account a {
    display: inline-block;
    margin-left: 4px;
}

.new-account a:hover {
    text-decoration: underline;
}

footer {
    display: flex;
    justify-content: center;
    align-items: center;
}

footer span {
    font-weight: 500;
    align-items: center;
    line-height: 60px;
    color: var(--color-gray-light);
}

/* Forgot password */
.forgot-password .divider {
    height: 1px;
    background: var(--color-gray);
}

.forgot-password .divider::before,
.forgot-password .divider::after {
    content: none;
}

.forgot-password .lock-icon {
    width: 90px;
    height: 90px;
    background: url('/base/static/assets/icons/lock-forgot.svg') no-repeat center;
    background-size: contain;
    margin-bottom: 28px;
}

.forgot-password h1 {
    font-size: 24px;
    line-height: 34px;
    font-weight: 700;
    margin-bottom: 4px;
}

.forgot-password p {
    color: var(--color-gray);
    margin-bottom: 44px;
    line-height: 20px;
}

.forgot-password .back-action {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 48px;
    margin-top: 24px;
    border-radius: 6px;
    font-size: 18px;
    font-weight: 600;
    border: none;
    color: var(--color-black);
    border: 1px dashed var(--color-black);
    box-sizing: border-box;
}

.forgot-password .back-icon {
    width: 20px;
    height: 20px;
    background: url('/base/static/assets/icons/arrow-back.svg') no-repeat center;
    background-size: contain;
    margin-right: 10px;
}
/* Forgot password end */

/* Reset password */
.envelope-icon {
    width: 90px;
    height: 90px;
    background: url('/base/static/assets/icons/envelope.svg') no-repeat center;
    background-size: contain;
    margin-bottom: 20px;
}

.user-email {
    color: var(--color-black);
}

.code-box {
    display: flex;
    justify-content: space-between;
    margin-bottom: 44px;
}

.code-input {
    width: 50px;
    height: 64px;
    border: 1px solid var(--color-gray-light);
    border-radius: 10px;
    font-size: 20px;
    font-weight: 600;
    text-align: center;
}
/* Reset password end */

/* Set new password */
.set-new-icon {
    width: 90px;
    height: 90px;
    background: url('/base/static/assets/icons/lock-set-new.svg') no-repeat center;
    background-size: contain;
    margin-bottom: 28px;
}
/* Set new password end */

@media only screen and (max-width: 768px) {
    .login-box {
        padding: 30px 20px;
        max-width: 300px;
    }

    .divider {
        margin: 20px 0;
    }

    .divider::before,
    .divider::after {
        width: 40px;
    }

    .forgot-password p {
        text-align: center;
        line-height: 20px;
        margin-bottom: 20px;
    }

    .forgot-password .lock-icon {
        width: 80px;
        height: 80px;
        margin-bottom: 18px;
    }

    .forgot-password .back-action {
        margin-top: 16px;
    }

    .form-names {
        flex-direction: column;
    }

    .form-names input {
        width: auto;
        margin-bottom: 8px;
    }

    .form-names input:last-child {
        margin-bottom: 0;
    }

    .code-input {
        width: 30px;
        height: 45px;
    }
}