﻿html, body {
    height: 100%;
    margin: 0;
    background-color: #008AD8;
    font-family: "Montserrat";
}

.login-container {
    min-height: 100vh;
}

.login-wrapper {
    height: 100vh;
    display: flex;
    align-items: center;
}

.logo-login {
    max-width: 280px;
    width: 100%;
    height: auto;
}

@media (max-width: 845px) {
    .logo-login {
        max-width: 200px;
    }
}

.form-box {
    background: white;
    border-radius: 10px;
    box-shadow: 0 0 15px rgba(0,0,0,0.75);
    width: 100%;
    max-width: 400px;
    padding: 3rem 2rem 2rem 2rem;
}

    .form-box input[type="text"],
    .form-box input[type="password"] {
        padding-left: 2.8rem;
    }

.icono {
    position: absolute;
    top: 50%;
    left: 0.75rem;
    transform: translateY(-50%);
    z-index: 1;
}

    .icono img {
        width: 24px;
    }

.login-button {
    background-color: #E41E52;
    color: white;
    font-weight: bold;
    width: 100%;
}


.login-button {
    background-color: #E41E52;
    color: white;
    font-weight: bold;
    border: none;
    width: 100%;
    height: 45px;
    border-radius: 6px;
    font-size: 1rem;
    /*box-shadow: 0 4px 10px rgba(228, 30, 82, 0.3);*/ /* Sombra externa inicial */
    transition: all 0.2s ease;
    position: relative;
    overflow: hidden;
}

    .login-button:hover,
    .login-button:focus {
        /*   box-shadow: 0 6px 18px rgba(228, 30, 82, 0.45);  Hover más brillante */
        transform: translateY(-1px);
        efecto flotante leve outline: none;
        color: white;
    }

    .login-button:active {
        transform: translateY(0);
        box-shadow: inset 0 4px 8px rgba(0, 0, 0, 0.2);
        color: white;
    }

.form-control:focus {
    border-color: #008AD8;
    box-shadow: none;
    outline: none;
}

.form-control.is-invalid:focus {
    box-shadow: none;
}

#btnEntrar:focus {
    box-shadow: none !important;
    outline: none;
}

.forget {
    font-size: 0.9rem;
    color: #008AD8;
}

.cert img {
    width: 65px;
    margin: 0.5rem;
}

.is-invalid {
    border-color: #dc3545 !important;
}

.form-control {
    height: calc(1.75em + .75rem + 6px);
    padding: .375rem .75rem;
    color: #000;
    background-color: #fff;
    border: 2px solid #ced4da;
    border-radius: .25rem;
}

.login-bg {
    background-color: #008AD8 !important;
}

@media (max-width: 767.98px) {
    .right-banner {
        display: none;
    }
}

.is-invalid {
    border-color: #dc3545;
}

.is-valid {
    border-color: #28a745;
}

.invalid-feedback {
    font-size: 0.875rem;
    color: #dc3545;
    margin-top: 0.25rem;
}

.form-group {
    position: relative;
}

    .form-group .form-control {
        padding-left: 2.5rem;
        height: calc(1.75em + .75rem + 6px);
    }

    .form-group .icono {
        position: absolute;
        top: 50%;
        left: 0.75rem;
        transform: translateY(-50%);
        z-index: 2;
    }

        .form-group .icono img {
            width: 22px;
            height: 22px;
        }

.invalid-feedback {
    position: absolute;
    bottom: -1.2rem;
    left: 0;
    font-size: 0.75rem;
    color: #dc3545;
    display: block;
}

.toggle-password {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    cursor: pointer;
    z-index: 2;
    font-size: 1.2rem;
    color: #888;
}

.failure-message {
    color: #dc3545;
    font-size: 0.875rem;
    font-weight: 500;
}

.spinner-border {
    display: inline-block;
    width: 1rem;
    height: 1rem;
    border: 0.15em solid currentColor;
    border-right-color: transparent;
    border-radius: 50%;
    animation: spinner-border 0.75s linear infinite;
    vertical-align: middle;
    margin-left: 0.5rem;
}

@keyframes spinner-border {
    100% {
        transform: rotate(360deg);
    }
}

.btn-disabled {
    opacity: 0.6;
    pointer-events: none;
}

input:disabled {
    background-color: #f5f5f5;
    color: #666;
    cursor: not-allowed;
}

.loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background-color: rgba(0, 0, 0, 0.3);
    z-index: 99999;
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: all;
}

.loader-center {
    width: 3rem;
    height: 3rem;
}


.right-banner {
    align-items: stretch;
}

.banner-content {
    flex-grow: 1;
    padding: 1rem 0;
}

    .banner-content img {
        max-height: 100%;
        object-fit: contain;
        margin-top: 2rem;
    }



.banner-text h1,
.banner-text h2 {
    color: white;
}

.banner-text h2 {
    font-size: 2.85em;
}

.banner-text h1 {
    font-size: 3.4rem;
}

.banner-image {
    width: 90%;
    max-width: 700px;
    object-fit: contain;
    z-index: 10;
}

@media (min-width: 768px) {
    .right-banner-adjust {
        margin-top: -60px;
    }
}

@media (max-width: 1199.98px) {
    .banner-text h2 {
        font-size: 2.2em;
    }

    .banner-text h1 {
        font-size: 2.8rem;
    }
}

@media (max-width: 991.98px) {
    .banner-text h2 {
        font-size: 1.8em;
    }

    .banner-text h1 {
        font-size: 2.4rem;
    }
}

@media (max-width: 767.98px) {
    .banner-text h2,
    .banner-text h1 {
        font-size: 1.5rem;
    }
}

#lotext, #forcelogout {
    color: #008AD8;
    font-weight: 600;
    accent-color: #008AD8;;
}

body::after {
    content: "";
    position: absolute;
    bottom: 0;
    right: 0;
    width: 89vw;
    height: 100vh;
    background-image: url("../images/login/vector.svg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: bottom right;
    transform: rotate(180deg);
    opacity: 0.2;
    z-index: 0;
    pointer-events: none;
}
