* {
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    margin: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.12), rgba(255,255,255,.12)),
        url('fondo.png');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    background-attachment: fixed;
    font-family: 'Montserrat', sans-serif;
}

.login-page {
    width: 100%;
    min-height: calc(100vh - 140px);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 35px 20px;
}

.login-container {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.login-card {
    display: flex;
    align-items: stretch;
    width: 100%;
    min-height: 470px;
    overflow: hidden;
    background-color: #fff;
    border: 4px solid #235B4E;
    border-radius: 20px;
    box-shadow: 0 16px 40px rgba(0,0,0,.22);
}

/* IZQUIERDO */

.login-image-column {
    flex: 1 1 50%;
    width: 50%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background-color: #fff;
    overflow: hidden;
}

.bg-login-image {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 450px;
    overflow: hidden;
    background-color: #fff;
}

.base-login-image {
    position: absolute;
    inset: 0;
    z-index: 1;
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    display: block;
    opacity: 1;
}

.bg-login-image.animando .base-login-image {
    opacity: 0;
}

.bg-login-image .tiles {
    position: absolute;
    z-index: 2;
    overflow: hidden;
    pointer-events: none;
}

.bg-login-image .tile {
    position: absolute;
    opacity: 0;
    background-repeat: no-repeat;
    backface-visibility: hidden;
    transform: translate3d(0,0,0);
    will-change: transform, opacity;
}

/* DERECHO */

.login-form-column {
    flex: 1 1 50%;
    width: 50%;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #fff 0%, #fff 68%, #f4f7f6 100%);
}

.login-form-content {
    width: 100%;
    max-width: 470px;
    padding: 25px 38px;
}

.login-header {
    text-align: center;
    margin-bottom: 18px;
}

.login-header h1 {
    margin: 0 0 5px;
    color: #611232;
    font-size: 32px;
    font-weight: 700;
}

.login-header p {
    margin: 0;
    color: #6F7271;
    font-size: 17px;
    line-height: 1.4;
}

.login-divider {
    width: 75px;
    height: 4px;
    margin: 12px auto 0;
    border: 0;
    border-radius: 10px;
    background-color: #A57F2C;
}

.login-form {
    width: 100%;
}

.login-form-group {
    margin-bottom: 12px;
}

.login-form label {
    display: block;
    margin-bottom: 5px;
    color: #343434;
    font-size: 17px;
    font-weight: 600;
}

.login-form-control {
    display: block;
    width: 100%;
    height: 44px;
    padding: 8px 13px;
    border: 1px solid #aaa;
    border-radius: 7px;
    background-color: #fff;
    color: #343434;
    font-family: 'Montserrat', sans-serif;
    font-size: 16px;
    transition: border-color .2s ease, box-shadow .2s ease;
}

select.login-form-control {
    cursor: pointer;
}

.login-form-control:focus {
    outline: none;
    border-color: #1E5B4F;
    box-shadow: 0 0 0 3px rgba(30,91,79,.15);
}

.login-form-control::placeholder {
    color: #888;
    font-size: 16px;
}

.btn-ingresar {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 46px;
    margin-top: 18px;
    padding: 10px 20px;
    border: 0;
    border-radius: 8px;
    background-color: #235B4E;
    color: #fff;
    font-family: 'Montserrat', sans-serif;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color .25s ease, transform .15s ease, box-shadow .25s ease;
}

.btn-ingresar:hover {
    background-color: #611232;
    box-shadow: 0 7px 18px rgba(97,18,50,.25);
    transform: translateY(-1px);
}

.btn-ingresar:active {
    transform: translateY(0);
}

.contador-visitas {
    margin-top: 15px;
    padding-top: 12px;
    border-top: 1px solid #e4e4e4;
    color: #1E5B4F;
    text-align: center;
    font-size: 16px;
    font-weight: 600;
}

.login-error {
    margin-bottom: 12px;
    padding: 10px 14px;
    border-left: 4px solid #9B2247;
    border-radius: 6px;
    background-color: #f9e9ee;
    color: #611232;
    font-size: 15px;
    line-height: 1.4;
}

.footer-pleca {
    min-height: 50px;
}

/* pantalla pequeña */
@media (max-width: 991px) {
    .login-page {
        padding: 30px 20px;
    }

    .login-image-column {
        display: none;
    }

    .login-form-column {
        flex: 1 1 100%;
        width: 100%;
    }

    .login-card {
        display: block;
        min-height: auto;
        max-width: 650px;
        margin: 0 auto;
    }

    .login-form-content {
        max-width: 560px;
        padding: 35px 40px;
        margin: 0 auto;
    }
}

@media (max-width: 576px) {
    .login-page {
        padding: 20px 12px;
    }

    .login-card {
        border-width: 3px;
        border-radius: 15px;
    }

    .login-form-content {
        padding: 28px 22px;
    }

    .login-header h1 {
        font-size: 28px;
    }

    .login-form label {
        font-size: 16px;
    }

    .login-form-control {
        font-size: 15px;
    }
}