/* Large desktops */
@media (min-width: 1280px) and (max-width: 1800px) {
    .text-body {
        min-height: 600px;
    }
    .login-section {
        margin: 50px 0;
    }
}

/* Tablets / small laptops */
@media (max-width: 1199.98px) {
    .img-sec {
        min-height: auto;
        align-items: center;
    }

    .img-sec img {
        padding: 30px;
        max-width: 100%;
        height: auto;
    }

    .text-body {
        min-height: auto !important;
        padding: 40px 30px;
    }

    .login-section {
        margin-top: 60px;
        margin-bottom: 40px;
    }
}

@media (min-width: 900px) and (max-width: 1080px) {
    strong.title:before,
    strong.title:after {
        display: none;
    }

    .logo,
    strong.title {
        margin-bottom: 25px;
    }

    .placeholder-img {
        width: 100%;
    }
}

/* Hide side image on tablet and below — also collapse its column */
@media (max-width: 991.98px) {
    .img-sec {
        display: none;
    }

    .login-section {
        margin-top: 40px;
        margin-bottom: 30px;
        border-radius: 28px;
        padding: 20px 0;
    }

    .text-body {
        min-height: auto !important;
        padding: 30px 40px;
    }
}

/* Tablet portrait */
@media (min-width: 768px) and (max-width: 899px) {
    strong.title:before,
    strong.title:after {
        display: none;
    }

    .text-body {
        padding: 30px 50px;
    }
}

/* Mobile */
@media (max-width: 767.98px) {
    body {
        overflow-x: hidden;
    }

    .login-section {
        margin: 20px 0;
        border-radius: 24px;
        padding: 10px 0 24px;
    }

    .text-body {
        min-height: auto !important;
        padding: 30px 16px 20px;
    }

    .logo {
        margin-bottom: 24px;
    }

    .logo img {
        width: 180px;
        max-width: 70%;
        height: auto;
    }

    span.title,
    strong.title {
        display: block;
        font-size: 16px;
        line-height: 22px;
        margin-bottom: 24px !important;
    }

    strong.title:before,
    strong.title:after {
        display: none;
    }

    /* Drop spacer columns; give the 8 digit inputs equal width */
    .login-section .col-md-2:not(:has(input)) {
        display: none;
    }

    .login-section .col-md-2 {
        width: 12.5%;
        flex: 0 0 12.5%;
        max-width: 12.5%;
    }

    .login-section .num {
        font-size: 24px;
        height: 48px;
        margin-bottom: 20px;
        border-radius: 10px;
    }

    .btm-row {
        float: none !important;
        justify-content: center;
        width: 100%;
    }

    .btm-row.float-end,
    .btm-row.mb-5 {
        margin-bottom: 1.5rem !important;
        padding-bottom: 0 !important;
    }

    .login-section .btn,
    .login-section .btn-login {
        min-width: 0 !important;
        width: 100%;
        max-width: 280px;
        margin: 0 auto;
        display: inline-block;
        float: none !important;
        line-height: 48px;
        padding: 0 24px;
        font-size: 15px;
    }

    .btn-login {
        padding-top: 0;
    }

    .login-section input.form-control {
        height: 50px;
        padding: 0 16px;
    }

    .login-section .col-md-6 {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
}

/* Small phones */
@media (max-width: 430px) {
    .login-section {
        margin: 16px 0;
        border-radius: 20px;
    }

    .text-body {
        padding: 24px 12px 16px;
    }

    .logo img {
        width: 150px;
    }

    span.title,
    strong.title {
        font-size: 15px;
        line-height: 20px;
    }

    .login-section .num {
        font-size: 20px;
        height: 42px;
        margin-bottom: 14px;
        border-radius: 8px;
    }

    .login-section .btn,
    .login-section .btn-login {
        line-height: 44px;
        font-size: 14px;
        max-width: 100%;
    }
}
