:root {
    --verde-sena: #39A900;
    --verde-header: #39A900;
    --verde-header-hover: #2f7a00;
    --verde-sidebar-bg: #e6f4ef;
    --verde-boton: #39A900;
    --verde-boton-hover: #2f7a00;
    --gris-borde: #d1d1d1;
    --gris-fondo: #f4f4f4;
    --gris-texto: #333333;
    --blanco: #ffffff;
    --sombra: 0 2px 16px rgba(57, 169, 0, 0.15);
    --error-color: #ff8080;
}

.error-message {
    color: #ff8080;
    font-size: 0.9rem;
    margin-top: 0.5rem;
    text-align: center;
    margin-bottom: 1rem;
    padding: 10px;
    background-color: #fff0f0;
    border-radius: 8px;
    border: 1px solid #ffcccc;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

@font-face {
    font-family: 'Poppins';
    src: url('../fonts/Poppins-Bold.ttf');
}

@font-face {
    font-family: 'Poppins light';
    src: url('../fonts/Poppins-Light.ttf');
}

@font-face {
    font-family: 'Poppins semiBold';
    src: url('../fonts/Poppins-SemiBold.ttf');
}

body {
    display: flex;
    flex-direction: row;
    width: 100%;
    min-height: 100vh;
    font-family: 'Poppins light';
    color: rgb(42, 42, 42);
    display: flex;
    justify-content: center;
    align-items: center;
}

a {
    text-decoration: none;
}

.login-container {
    width: 100%;
    max-width: 1300px;
    min-height: 650px;
    background-color: #ffffff;
    box-shadow: 2px 2px 10px 3px rgb(216, 216, 216);
    border-radius: 10px;
    display: flex;
    align-items: center;
    opacity: 0;
    animation: fadeInSlide 0.8s ease-out forwards;
    animation-delay: 0.2s;
}


@keyframes fadeInSlide {
    from {
        opacity: 0;
        transform: translateY(40px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.banner {
    background-image: url('../img/fotobanner.webp');
    width: 70%;
    height: 650px;
    background-repeat: no-repeat !important;
    background-position: center;
    background-size: cover;
    display: flex;
    justify-content: start;
    flex-direction: column;
    border-radius: 10px;
    padding: 56px;
    gap: 270px;
}

.texto {
    font-family: 'Poppins semiBold';
}

.texto h1 {
    font-size: 45px;
}

.light {
    color: #ffffff;
}

.green {
    color: #001b3c;
    margin-top: -20px;
}

.texto p {
    font-weight: 500;
    font-family: 'Poppins light';
    color: #ffffff;
    margin-left: 5px;
    margin-top: -10px;
}

.btn-banner {
    background: linear-gradient(135deg, #e3eee45c 0%, #afb7af80 100%);
    border: 2px solid rgba(255, 255, 255, 0.718);
    border-radius: 20px;
    padding: 5px 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    position: relative;
    width: 220px;
    overflow: hidden;
    margin-left: 10px;
}

.btn-banner:hover {
    border-radius: 15px;
    padding: 7px;
    background: linear-gradient(135deg, #d8e2d8a7 0%, #eef7eebe 100%);
    transform: scale(1.03);
}

.btn-banner img {
    width: 22px;
    height: 22px;
    transition-duration: 0.3s;
}

.btn-banner:hover img {
    transform: rotate(-180deg);
}

.btn-banner p {
    color: white;
    font-size: 17px;
    font-weight: 600;
}

.btn-banner::before {
    content: '';
    position: absolute;
    width: 30px;
    height: 200%;
    top: -10px;
    left: -30px;
    background: rgba(255, 255, 255, 0.203);
    animation: liquid 1.5s ease-in-out infinite;
    transform: rotate(25deg);
}

@keyframes liquid {
    0% {
        left: -30px;
        /* inicia fuera a la izquierda */
    }

    100% {
        left: calc(100%);
        /* se mueve hasta fuera a la derecha */
    }
}

.form-container {
    display: flex;
    flex-direction: column;
    width: 35%;
    min-width: 400px;
    height: 100%;
    justify-content: center;
}


.logo {
    display: flex;
    justify-content: start;
    margin-left: 30px;
    align-items: end;
    color: #01AC07;
    font-size: 12px;
    gap: 10px;
    margin-right: 30px;
    font-size: 10px;
}



form {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 10px;
    width: 300px;
    height: auto;
    border-radius: 10px;
    margin-top: 30px;
}

.input-icon {
    position: relative;
    display: inline-block;
    width: 200px;
}

.input-icon select {
    width: 100%;
    padding: 10px 40px 10px 10px;
    /* Deja espacio para el ícono */
    appearance: none;
}

.input-icon .icon {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    /* El ícono no bloquea el click */
    font-size: 14px;
}


.content {
    display: flex;
    align-items: center;
    position: relative;
}

.content i {
    position: absolute;
    left: 3.5%;
    bottom: 5%;
}

.content i img {
    width: 19px;
    height: 19px;
    opacity: 10;
}


input,
select {
    background-color: #ffffff00;
    border-radius: 20px;
    border: 1px solid #a1a1a1;
    width: 350px;
    padding: 10px 40px 10px 10px;
    font-family: 'Poppins light';
}

input,
select {
    padding: 10px 10px 10px 37px;
}

input:focus,
select:focus {
    outline-color: rgb(97, 161, 97);
    outline-style: groove;
}

select {
    color: #a1a1a1;
    appearance: none;
    cursor: pointer;
    /* background: url('../icons/flecha-select.png') no-repeat right 13px center; */
    background-image: url('../icons/flecha-select.png');
    background-repeat: no-repeat;
    background-position: right 13px center;
    background-size: 15px;
    /* Tamaño de la flecha */

}

/* Estilos para los options */
select option {
    padding: 10px;
    background-color: #ffffff;
    color: #333333;
    font-size: 14px;
    font-weight: 400;
}

/* Option cuando está seleccionado/hover */
select option:hover,
select option:focus,
select option:checked {
    background-color: green;
    color: #ff1010;
}

/* Options deshabilitados */
select option:disabled {
    color: #999999;
    background-color: #f5f5f5;
    cursor: not-allowed;
}

form button {
    width: 350px;
    padding: 7px;
    border: none;
    border-radius: 20px;
    background-color: #39A900;
    color: white;
    font-family: 'Poppins';
    font-size: 17px;
    cursor: pointer;
    /* margin-top: 10px; */
}

input::placeholder,
select {
    font-size: 15px;
    color: #a7a7a7;
}


form button:hover {
    background-color: #318606;
}



hr {
    width: 200px;
    height: 1px;
    margin-top: 10px;
    margin-bottom: 10px;
    background-color: rgb(227, 227, 227);
}

.font-small {
    font-size: 13px;
}

.password-config {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 350px;
    padding: 10px;
}

.password-config a {
    color: #2f7a00;
}

.remember {
    display: flex;
    width: 90px;
    gap: 5px;
}

.remember input[type='checkbox'] {
    accent-color: #01AC07;
    /* changes checkbox color in modern browsers */
    cursor: pointer;
    width: 13px;
}

.remember input[type='checkbox']:focus {
    outline: none
}

.color-green {
    color: #2f7a00;
}

.color-green:hover {
    color: #3bc33f;
}

.login-container,
.banner,
.texto h1,
.btn-banner {
    transition: all 0.4s ease;
}

/* ===================== RESPONSIVE ===================== */
@media (max-width: 1428px) {

    .login-container {
        max-width: 1100px;
    }

    .banner {
        padding: 40px;
        gap: 200px;
        width: 60%;
        background-image: linear-gradient( 
            rgba(0, 0, 0, 0.30),
            rgba(0, 0, 0, 0.30)
        ), url(../img/fotobannermedio.webp);
        border-radius: 0px;
        gap: 290px;
    }

    .texto h1 {
        font-size: 38px;
    }

    .btn-banner {
        width: 240px;
        padding: 5px 8px;
    }

    .form-container {
        padding-right: 10px;
        justify-content: center;
        align-items: center;
        margin-left: 30px;
    }
}
@media (max-width: 1024px) {
.banner {
        padding: 40px;
        gap: 200px;
        width: 60%;
        background-image: linear-gradient( 
            rgba(0, 0, 0, 0.30),
            rgba(0, 0, 0, 0.30)
        ), url(../img/fotobannermedio.webp);
        border-radius: 0px;
        gap: 290px;
    }
}
@media (max-width: 1280px) {

    .login-container {
        max-width: 1000px;
        margin: 30px;
    }

    .banner {
        padding: 30px;
        gap: 290px;
    }

    .texto h1 {
        font-size: 40px;
    }

    .btn-banner {
        font-size: 14px;
    }

    form {
        max-width: 320px;
    }
}

@media (max-width: 1024px) {

    .login-container {
        max-width: 900px;
    }

    .banner {
        padding: 25px;
        gap: 300px;
    }

    .texto h1 {
        font-size: 35px;
    }

    .green{
        margin-top: -15px;
    }

    .form-container {
        width: 45%;
    }

    .banner {
        width: 55%;
    }
}

@media (max-width: 953px) {

    .login-container {
        flex-direction: column;
        margin: 30px;
        width: 700px;

    }

    .texto{
        margin-top: 5px;
    }

    .banner {
        width: 100%;
        height: 220px;
        padding: 20px;
        background-image: linear-gradient( 
            rgba(0, 0, 0, 0.30),
            rgba(0, 0, 0, 0.30)
        ), url(../img/fotobannermovil.webp);
                gap: 10px;
    }

    .texto h1 {
        font-size: 34px;
    }

    .btn-banner{
        width: 250px;
        padding: 5px;
        margin-left: 0px;
        border-radius: 20px;
        height: 40px;
    }

    .green{
        margin-top: -15px;
        margin-bottom: 7px;
        color: rgb(25, 187, 63);
    }

    .form-container {
        padding: 30px 0;
        align-items: center;
        justify-content: center;
        margin: 0;
    }

    .logo {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 768px) {
     .banner {
        width: 100%;
        height: 220px;
        padding: 20px;
        background-image: linear-gradient( 
            rgba(0, 0, 0, 0.30),
            rgba(0, 0, 0, 0.30)
        ), url(../img/fotobannermovil.webp);
        gap: 10px;
        
    }
}
@media (max-width: 488px) {
    .btn-banner{
        padding: 10px;
    }
    .texto h1 {
        font-size: 33px;
    }
}

@media (max-width: 485px) and (min-width: 320px) {

    .login-container{
        margin: 20px;
        /* box-shadow: none; */
        width: 100%;
        margin: 0px;
        height: 100vh;
    }

    .banner {
        background-image: none;
        background-color: green;
        width: 100%;
    }

    .btn-banner{
        height: 40px;
    }

    .texto{
        margin-top: 10px;
    }

    .texto h1 {
        font-size: 31px;
    }

    .logo{
        margin-bottom: 30px;
    }

    form {
        margin-top: 0;
    }

    .password-config {
        flex-direction: column;
        gap: 8px;
        align-items: flex-start;
    }
}   