.staff-login {
    box-sizing: border-box;
    position: relative;
    display: grid;
    /* Equal outer rows centre the card while reserving room for the footer. */
    grid-template-rows: minmax(72px, 1fr) auto minmax(72px, 1fr);
    justify-items: center;
    min-height: 100vh;
    min-height: 100svh;
    padding: 24px;
    background: #f7f9fb;
}

.staff-login *,
.staff-login *::before,
.staff-login *::after {
    box-sizing: border-box;
}

.staff-login__card {
    grid-row: 2;
    width: 462px;
    max-width: 100%;
    min-height: 460px;
    padding: 35px 37px 36px;
    text-align: center;
    background: #fff;
    border: 1px solid #e1e5e8;
    border-radius: 10px;
}

.staff-login__logo {
    display: block;
    width: 222px;
    height: auto;
    margin: 0 auto 34px;
}

.staff-login__title {
    margin: 0 0 30px;
    color: #212121;
    font-size: 25px;
    font-weight: 700;
    line-height: 1.45;
    letter-spacing: .02em;
}

.staff-login__messages:empty {
    display: none;
}

.staff-login__messages .alert,
.staff-login__message {
    margin: 0 0 16px;
    font-size: 13px;
    line-height: 1.6;
    text-align: left;
}

.staff-login__form {
    display: grid;
    gap: 18px;
}

.staff-login__input {
    width: 100%;
    height: 50px;
    margin: 0;
    padding: 0 18px;
    color: #212121;
    font-size: 16px;
    line-height: 50px;
    background: #fff;
    border: 1px solid #aeb9bf;
    border-radius: 10px;
    outline: none;
}

.staff-login__input::placeholder {
    color: #b8c0c5;
    opacity: 1;
}

.staff-login__input:focus,
.staff-login__input:focus-visible {
    border-color: #43be97;
    outline: none;
}

.staff-login__submit {
    width: 100%;
    height: 50px;
    margin: 1px 0 0;
    padding: 0 18px;
    color: #fff;
    font-family: inherit;
    font-size: 16px;
    font-weight: 700;
    line-height: 50px;
    cursor: pointer;
    background: #21495b;
    border: 0;
    border-radius: 9px;
    transition: background-color .15s ease;
}

.staff-login__submit:hover {
    background: #183b4b;
}

.staff-login__submit:focus-visible {
    outline: 2px solid #43be97;
    outline-offset: 2px;
}

.staff-login__signup {
    display: inline-flex;
    gap: 8px;
    align-items: center;
    margin-top: 21px;
    color: #43be97;
    font-size: 16px;
    font-weight: 700;
    line-height: 1.5;
    text-decoration: none;
}

.staff-login__signup:hover {
    color: #2ca77f;
    text-decoration: none;
}

.staff-login__signup svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1;
}

.staff-login__footer {
    grid-row: 3;
    align-self: end;
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    justify-content: center;
    margin-top: 36px;
    color: #212121;
    font-size: 12px;
    line-height: 1.5;
}

.staff-login__footer a {
    color: inherit;
    text-decoration: none;
}

.staff-login__footer a:hover {
    text-decoration: underline;
}

@media (max-width: 575.98px) {
    .staff-login {
        display: flex;
        align-items: center;
        flex-direction: column;
        justify-content: flex-start;
        padding: 24px 16px;
    }

    .staff-login__card {
        min-height: 0;
        padding: 32px 24px;
    }

    .staff-login__logo {
        width: min(222px, 70%);
    }

    .staff-login__footer {
        align-self: auto;
        flex-wrap: wrap;
        gap: 10px 20px;
        margin-top: 28px;
    }
}

@media (max-height: 575px) and (min-width: 576px) {
    .staff-login {
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        padding-top: 24px;
        padding-bottom: 24px;
    }

    .staff-login__footer {
        align-self: auto;
        margin-top: 24px;
    }
}
