body {
    margin: 0;
    padding: 0;
    font-family: 'Roboto', sans-serif;
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100vw;
    height: 100vh;
    overflow: hidden;
    background-color: #f4f4f4;
}

.login {
    display: flex;
    width: 100%;
    height: 100%;
    background-color: white;
    flex-direction: row;
}

.login-section {
    flex: 1;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: #f4f4f4;
    transition: transform 0.5s ease-in-out, opacity 0.5s ease;
    opacity: 1;
}

.login-section:nth-child(2) {
    max-height: 100vh;
    overflow-y: auto;
    padding-top: 20px;
    padding-bottom: 20px;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
}

.login-section h1 {
    margin-top: 0;
    padding-top: 0;
    text-align: center;
    font-size: 36px;
    color: black !important;
}

.login-section:nth-child(2) .form-group {
    margin-top: 10px;
}

hr.login {
    width: 60%;
    background-color: #25412B;
    height: 0;
    margin: 20px;
}

.form-group {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin-bottom: 15px;
}

.form-group input[type="text"],
.form-group input[type="password"],
.form-group input[type="email"] {
    width: 100%;
    border-radius: 5px;
    border: none;
    background-color: #3A5A40;
    color: #DAEAFF;
    font-size: 16px;
    padding: 10px;
    height: 45px;
    box-shadow: inset 0 0 3px rgba(0, 0, 0, 0.2);
    appearance: none;
}

.form-group i {
    position: absolute;
    right: -10px;
    top: 50%;
    transform: translateY(-50%);
    color: #DAEAFF;
    font-size: 1.2em;
}

.form-group label {
    color: #DAEAFF;
    font-weight: normal;
    margin-bottom: 5px;
    display: block;
}

.form-group button {
    width: 150px;
    padding: 10px;
    border: none;
    border-radius: 5px;
    background-color: #3A5A40;
    color: #ffffff;
    font-size: 14px;
    cursor: pointer;
    display: block;
    margin: 20px auto 0 auto;
    box-shadow: 0px 2px 4px rgba(0, 0, 0, 0.2);
}

.form-group button:hover {
    background-color: #25412B;
    transform: scale(1.05);
    transition: transform 0.2s ease-in-out, background-color 0.3s ease;
}

.center {
    text-align: center;
    margin-top: 15px;
}

.center a {
    color: #000000;
    text-decoration: none;
    transition: color 0.3s ease, transform 0.2s ease;
}

.center a:hover {
    color: #3A5A40;
    text-decoration: underline;
    transform: scale(1.1);
}

.image-section {
    flex: 1;
    background-image: url('../img/capa.png');
    background-size: cover;
    background-position: center;
    display: block;
    height: 100%;
    animation: fadeInImage 1s ease-out;
}

input:-webkit-autofill {
    box-shadow: 0 0 0 34px #3A5A40 inset !important;
    -webkit-text-fill-color: #DAEAFF !important;
}

@keyframes fadeInImage {
    0% {
        opacity: 0;
    }
    100% {
        opacity: 1;
    }
}

@media (max-width: 767px) {
    .image-section {
        display: none;
    }

    .login-section {
        width: 100%;
        padding: 20px;
        background-color: #ffffff;
        animation: fadeIn 1s ease-out;
    }

    .login-section h1 {
        font-size: 28px;
    }

    .form-group input,
    .form-group button {
        width: 90%;
    }
}