/* Asegúrate de que el body ocupe todo el espacio de la pantalla */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');

* {
    font-family: "Poppins", sans-serif;
}

*:focus {
    outline: none !important;
    box-shadow: none !important;
}
 
.barra-logo {
    position: relative;
    width: 100%;
    height: 210px; 
    overflow: hidden;
}

.logo-esquina {
    position: absolute;
    top: 10px;    
    left: 10px;   
    height: 50px; 
    z-index: 2;   
}

.logo-esquina-movil {
    display: none; 
}

.shapedividers_com-2369{
overflow:hidden; 
position:absolute;
z-index: 1;   
height: 180px;
width: 100%;
background:transparent;
}

.shapedividers_com-2369::before{ 
content:'';
font-family:'shape divider from ShapeDividers.com';
position: absolute;
z-index: 3;
pointer-events: none;
background-repeat: no-repeat;
bottom: -0.1vw;
left: -0.1vw;
right: -0.1vw;
top: -0.1vw; 
background-size: 100% 162px;
background-position: 50% 0%;  background-image: url('data:image/svg+xml;charset=utf8, <svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 35.278 3.62" preserveAspectRatio="none"><path d="M35.278.092S8.238.267 0 3.62V.092z" opacity=".2" fill="%23ffffff"/><path d="M35.278.092S8.238.246 0 3.194V.092z" opacity=".2" fill="%23ffffff"/><path d="M35.278.092S8.238.223 0 2.738V.092zM35.278.092H0V0h35.278z" fill="%23ffffff"/></svg>'); 
}

@media (min-width:2100px){
.shapedividers_com-2369::before{
background-size: 309% calc(2vw + 155px);
}
}


body {
    margin: 0;
    background: url("/img/fondo6.png") no-repeat center center; 
    /* backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(6px); */
    height: 100vh;
    background-size: cover;
}

.login-box {
    display: flex;
    justify-content: flex-start;
    align-items: flex-end;
    padding: 80px 40px 100px 45px;
    border-radius: 10px;
}

form a {
    font-size: 17px;
    color: #0a4d36;
    text-decoration: none;
    margin-bottom: 20px;
}

form a:hover {
    color: #2a7d60;
}


form i {
    color: white;
    font-size: 20px;
    margin: 0 0 20px 0;
}


form button {
    padding: 10px 30px;
    background-color: white;
    color: #2a7d60;
    font-weight: bold;
    border: 1px solid #2a7d60;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1rem;
    margin: 20px 0 0 0;
    width: 100%;
}

form button:hover {
    background-color: #2a7d60;
    color: white;
    font-weight: bold;
}

.form-control::placeholder {
    color: #999;
}


.form-group p {
    margin: 0 0 5px 0;
    color: #2a7d60;
    font-size: 17px;
}

.recordar-user {
    font-size: 17px;
    color: #2a7d60;
}

.form-group span {
    margin: 0;
}

form .field .error-txt {
    color: white;
    text-align: left;
}

.input-container {
    position: relative;
    width: 100%;
}


.input-container:focus-within .icon {
    color: #2a7d60;
}


/* Estilos para el icono */
.icon {
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 20px;
    color: #999;
    transition: color 0.3s ease;
    pointer-events: none;
}

/* Estilo del icono cuando hay un error */
.error .icon {
    color: #f06565;
    transform: translateY(-10%);
    top: 50%;
}

.form-control {
    width: 100%;
    padding: 10px 10px 10px 40px;
    border: 1px solid #ccc;
    border-radius: 4px;
    box-sizing: border-box;
    transition: border-color 0.3s ease;

}


.form-control:focus {
    border-color: #2a7d60;
}

.form .field .error {
    display: none;
}

.form .field.error .error {
    display: block;
}

/* Estilos de error para mostrar mensajes cuando haya un error */
.error-message {
    color: white;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

.error input {
    border-color: #2a7d60;
}


/* Para contraseñas inválidas */
.error-password input {
    border-color: #2a7d60;
}

.error-password .icon {
    color: #f06565;
}


.error .icon {
    color: #f06565;
    transform: translateY(-145%);
    top: 50%;
}

/* Validaciones de error de usuario y contraseña */
#general-error {
    color: white;
    font-size: 14px;
    text-align: center;
    background-color: #f06565;
    padding: 10px;
    border-radius: 5px;
}


#general-error ul {
    margin: 0;
    padding: 0;
}

#general-error li {
    all: unset;
}


/* Estilos para los mensajes de error específicos */

.error-message {
    color: white;
    font-size: 14px;
    margin-top: 5px;
    display: none;
}

/* Ajustes para los inputs cuando hay error */

.error input {
    border-color: #f06565;
}

/* ESTILOS PARA LOS ICONOS ROJOS CUANDO MARCA ERROR */


.input-container {
    position: relative;
}

.input-container .icon {
    position: absolute;
    top: 50%;
    left: 10px;
    transform: translateY(-50%);
    color: #ccc;
    font-size: 20px;
}


.input-container input {
    width: 100%;
    padding: 10px 35px;
    box-sizing: border-box;
    border: 1px solid #ccc;
    border-radius: 5px;
}


.input-container.error input {
    border-color: #f06565;
}


.input-container .error-icon {
    position: absolute;
    top: 50%;
    right: 10px;
    transform: translateY(-50%);
    color: #f06565;
    font-size: 16px;
}


.input-container.error .icon {
    color: #f06565;
}


/* ESTILO COQUETO DEL TITULO */

.title {
    font-family: 'Poppins', sans-serif;
    font-size: 2.5rem;
    font-weight: 700;
    background: linear-gradient(90deg, #247557, #0a4933);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-transform: uppercase;
    letter-spacing: 2px;
    text-align: center;
    animation: fadeIn 1s ease-in-out;
    position: relative;
}

.title i {
    color: #2a7d60;
    font-size: 2rem;
    margin-right: 10px;
    vertical-align: middle;
}

.title::after {
    content: '';
    display: block;
    width: 50%;
    height: 3px;
    background: #2a7d60;
    margin: 10px auto 0;
    border-radius: 5px;
}

/* TITULO ANIMADO */

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(-20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ESTILO CARD DEL LOGIN */
.login-card {
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.1);
    background-color: #ffffff;
}

.login-sistema {
    display: flex;
    flex-wrap: nowrap;
    flex-direction: column;
    align-items: center;
}

/* ------ */
.container {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    background-color: #f0f0f0;
}

.sombreado {
    width: 90%;
    max-width: 1400px;
    height: 600px;
    background-color: #fff;
    /* Fondo blanco del contenedor */
    border-radius: 10px;
    /* Bordes redondeados */
    display: flex;
    padding: 20px 20px 20px 0;
    gap: 20px;
    background: rgba(255, 255, 255, 0.90);
    border-radius: 16px;
    backdrop-filter: blur(7.6px);
    -webkit-backdrop-filter: blur(7.6px);
    box-shadow: 20px 16px 9px 4px rgba(6, 6, 6, 0.281);
}

.contenido {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    position: relative;
}

/* Línea divisoria animada
.contenido::before {
    content: "";
    display: block;
    width: 2px;
    height: 90%;
    background: #004AAD;
    background-size: 300% 300%;
    border-radius: 2px;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    animation: colorShift 4s infinite linear;
} */


.bg {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-right: 10px;
    /* Espaciado derecho para la línea */
}

.bg img {
    max-width: 100%;
    height: auto;
    object-fit: contain;
    /* Ajusta la imagen */
}

.login-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 40px 20px 0;
}

/* Logo en la esquina inferior derecha */
.logo {
    position: fixed;
    bottom: 10px;
    right: 0px;
    width: 150px;
    height: auto;
    opacity: 0.2;
    transition: opacity 0.3s ease;
}

.logo:hover {
    opacity: 0.8;
}


@media only screen and (max-width : 900px) {

.bg {
    display: none;
}

.bg img {
    display: none;
}


.login-box {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 20px 40px 20px 40px;
}

.logo-esquina {
    display: none;
}

.logo-esquina-movil {
    display: block;
    position: absolute;
    top: 10px;    
    left: 10px;   
    height: 50px; 
    z-index: 2;   
}

}

