/* Only the login screen, keep Elastic and all other tasks unchanged. */
body.task-login #logo {
    width: auto;
    height: auto;
    max-width: 168px;
    max-height: 168px;
    object-fit: contain;
}

body.task-login #login-footer .spbnu-login-caption {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    margin-top: 12px;
    padding: 0;
    background: transparent;
    border: 0;
    border-radius: 0;
    line-height: 1.35;
    text-align: center;
    font-size: 13px;
    font-weight: 400;
    color: #65717b;
}
body.task-login #login-footer .spbnu-login-publisher {
    font-weight: 600;
    color: #46535f;
}
body.task-login #login-footer .spbnu-login-journal {
    font-weight: 400;
}
@media (max-width: 520px) {
    body.task-login #logo {
        max-width: 132px;
        max-height: 132px;
    }
    body.task-login #login-footer .spbnu-login-caption {
        font-size: 12px;
    }
}

/* spbnu-login-final-adjustments */

body.task-login #logo {
    max-width: 156px;
    max-height: 156px;
}

body.task-login #login-form {
    top: calc(20vh - 18px);
}

body.task-login #login-footer .spbnu-login-caption {
    font-size: 15px;
    line-height: 1.4;
    gap: 4px;
}

@media (max-width: 520px) {
    body.task-login #logo {
        max-width: 124px;
        max-height: 124px;
    }

    body.task-login #login-form {
        top: calc(20vh - 10px);
    }

    body.task-login #login-footer .spbnu-login-caption {
        font-size: 14px;
    }
}

/* spbnu-login-blue-button */

body.task-login #rcmloginsubmit {
    background: #1765A8 !important;
    border-color: #1765A8 !important;
    color: #ffffff !important;
    font-weight: 600 !important;
}

body.task-login #rcmloginsubmit:hover,
body.task-login #rcmloginsubmit:focus {
    background: #114F85 !important;
    border-color: #114F85 !important;
    color: #ffffff !important;
}
