html {
    height: 100%; /* Ensure html takes full height */
}

body {
    margin: 0;
    font-family: 'Roboto', sans-serif;
    background-color: #f0f2f5;
    color: #1c1e21;
    display: flex; /* Use flexbox for body */
    flex-direction: column; /* Stack children vertically */
    min-height: 100vh; /* Ensure body takes at least full viewport height */
}

.body-wrapper {
    display: flex;
    flex-direction: column;
    flex: 1; /* Allow wrapper to grow and push footer down */
}

.login-container {
    width: 100%;
    /* height: 100vh; Removed, let flexbox handle height */
    display: flex;
    flex: 1; /* Allow login container to grow */
}

.login-split {
    display: flex;
    width: 100%;
    /* height: 100%; Removed, let flexbox handle height */
    background-color: #ffffff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Prevent content overflow */
}

.login-form-section {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px;
    background-color: #ffffff;
    overflow-y: auto; /* Add scroll if content overflows */
}

.form-wrapper {
    max-width: 400px;
    width: 100%;
    text-align: center;
}

.logo {
    max-width: 250px; /* Ajuste conforme necessário */
    height: auto;
    margin-bottom: 30px;
}

h2 {
    color: #003b6f; /* Azul escuro do logo */
    margin-bottom: 10px;
    font-weight: 500;
    font-size: 1.8em;
}

p {
    color: #606770;
    font-size: 1em;
    margin-bottom: 30px;
}

.input-group {
    margin-bottom: 20px;
    text-align: left;
}

.input-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 500;
    font-size: 0.9em;
    color: #4b4f56;
}

.input-group input {
    width: 100%;
    padding: 14px 16px;
    border: 1px solid #ccd0d5;
    border-radius: 6px;
    box-sizing: border-box;
    font-family: 'Roboto', sans-serif;
    font-size: 1em;
}

.input-group input:focus {
    outline: none;
    border-color: #1877f2; /* Azul padrão para foco */
    box-shadow: 0 0 0 2px rgba(24, 119, 242, 0.2);
}

.options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.9em;
}

.remember-me {
    display: flex;
    align-items: center;
    color: #4b4f56;
    cursor: pointer;
}

.remember-me input[type="checkbox"] {
    margin-right: 8px;
    accent-color: #005f56; /* Verde do logo */
    cursor: pointer;
}

.forgot-password {
    color: #005f56; /* Verde do logo */
    text-decoration: none;
}

.forgot-password:hover {
    text-decoration: underline;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background-color: #e41e2a; /* Vermelho do logo */
    color: white;
    border: none;
    border-radius: 6px;
    font-family: 'Roboto', sans-serif;
    font-size: 1.1em;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.btn-login:hover {
    background-color: #c3131f; /* Vermelho mais escuro */
}

.support-link {
    margin-top: 30px;
    font-size: 0.9em;
    color: #606770;
}

.support-link a {
    color: #005f56;
    text-decoration: none;
    font-weight: 500;
}

.support-link a:hover {
    text-decoration: underline;
}

.login-image-section {
    flex: 1;
    background-image: url('../../images/login/background.png');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    text-align: center;
}

.image-overlay {
    background-color: rgba(0, 95, 86, 0.7); /* Overlay verde escuro semi-transparente */
    padding: 40px;
    border-radius: 10px;
    max-width: 80%;
}

.image-overlay h3 {
    font-size: 2em;
    margin-bottom: 15px;
    font-weight: 700;
}

.image-overlay p {
    font-size: 1.1em;
    color: #e0f2f1; /* Tom claro para contraste */
    margin-bottom: 0;
}

/* Responsividade */
@media (max-width: 991px) {
    .login-container {
        height: auto; /* Adjust height for smaller screens */
    }
    .login-split {
        flex-direction: column;
        height: auto;
    }

    .login-image-section {
       display: none; /* Oculta a imagem em telas menores */
    }

    .login-form-section {
        flex: auto; /* Ocupa toda a largura */
        min-height: calc(100vh - 100px); /* Adjust height considering footer */
        padding: 40px 20px; /* Adjust padding */
    }

    .form-wrapper {
        max-width: none;
        /* padding: 0 20px; Removed, padding is on parent */
    }
}

@media (max-width: 480px) {
     .login-form-section {
        padding: 30px 15px;
     }
    .form-wrapper {
        /* padding: 0 15px; Removed, padding is on parent */
    }

    h2 {
        font-size: 1.6em;
    }

    .logo {
        max-width: 200px;
    }

    .options {
        flex-direction: column;
        align-items: flex-start;
    }

    .forgot-password {
        margin-top: 10px;
    }
}

/* Footer Styles */
.login-footer {
    background-color: #e9ecef; /* Light grey background */
    padding: 20px 0;
    /* margin-top: auto; Removed, flexbox handles positioning */
    width: 100%;
    border-top: 1px solid #dee2e6;
    flex-shrink: 0; /* Prevent footer from shrinking */
}

.footer-content {
    max-width: 1140px; /* Adjust as needed */
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    flex-direction: column; /* Stack items vertically on small screens */
    align-items: center;
    text-align: center;
}

.footer-logo {
    max-height: 40px; /* Adjust size */
    margin-bottom: 15px;
    filter: grayscale(100%) brightness(30%); /* Make logo black/dark grey */
}

.footer-text {
    font-size: 0.9em;
    color: #6c757d; /* Grey text color */
    margin-bottom: 15px;
}

.social-links {
    display: flex;
    gap: 15px; /* Space between icons */
}

.social-icon {
    color: #005f56; /* Use theme color (green) */
    font-size: 1.4em;
    transition: color 0.3s ease;
}

.social-icon:hover {
    color: #e41e2a; /* Use theme color (red) on hover */
}

/* Footer Responsiveness */
@media (min-width: 768px) {
    .footer-content {
        flex-direction: row; /* Align items horizontally on larger screens */
        justify-content: space-between;
        text-align: left;
    }

    .footer-logo {
        margin-bottom: 0;
    }

    .footer-text {
        margin-bottom: 0;
        margin-left: 20px; /* Add space between logo and text */
        margin-right: auto; /* Push social links to the right */
    }
}

