:root {
    --brand-green: #296048;
    --brand-green-hover: #1e4534;
    --form-bg: #ffffff;
    --input-bg: #f8f9fa;
    --text-footer: #6e6e6e;
    --border-radius: 40px;
    --border-radius-mobile: 25px;
}

body, html {
    height: 100%;
    margin: 0;
    font-family: 'Rubik', sans-serif;
    /* Se a imagem falhar, o fundo mantém o tom verde-água do projeto */
    background-color: #d1e5e0;
    background-image: url('/login/imgs/bg-login.jpeg');
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    display: flex;
    flex-direction: column;
}

/* Container Principal */
.main-container {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    /* Espaço para o footer não encostar no card em telas pequenas */
    padding-bottom: 100px;
}

/* Card de Login */
.login-card {
    background-color: var(--form-bg);
    border-radius: var(--border-radius);
    overflow: hidden;
    width: 100%;
    max-width: 900px;
    display: flex;
    box-shadow: 0 15px 35px rgba(0,0,0,0.2);
    min-height: 500px;
    border: none;
}

/* Lado Esquerdo - Marca */
.brand-section {
    background-color: var(--brand-green);
    color: #ffffff;
    flex: 1;
    padding: 60px 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    /* Curva interna característica no Desktop */
    border-top-right-radius: var(--border-radius);
    border-bottom-right-radius: var(--border-radius);
}

.brand-logo {
    width: 100%;
    max-width: 220px;
    height: auto;
    margin-bottom: 20px;
}

.brand-subtitle {
    font-size: 1.1rem;
    font-weight: 400;
    opacity: 0.85;
}

/* Lado Direito - Formulário */
.form-section {
    flex: 1.2;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.form-header {
    margin-bottom: 30px;
    color: var(--brand-green);
}

/* Estilização dos Inputs */
.input-group-text {
    background-color: var(--input-bg);
    border: 1px solid #dee2e6;
    color: var(--brand-green);
}

.form-control {
    background-color: var(--input-bg);
    border: 1px solid #dee2e6;
    padding: 12px;
}

.form-control:focus {
    box-shadow: none;
    border-color: var(--brand-green);
    background-color: #fff;
}

/* Ajuste específico para o campo de senha com olho */
.input-password-field {
    border-right: none;
}

.toggle-password {
    background-color: var(--input-bg);
    border-left: none;
    cursor: pointer;
    transition: color 0.3s;
}

.toggle-password:hover {
    color: var(--brand-green);
}

/* Botão Entrar */
.btn-login {
    background-color: var(--brand-green);
    color: white;
    padding: 12px;
    font-weight: 600;
    border-radius: 10px;
    border: none;
    transition: all 0.3s;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.btn-login:hover {
    background-color: var(--brand-green-hover);
    color: white;
}

/* Rodapé */
.footer-bar {
    position: fixed;
    bottom: 0;
    width: 100%;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(5px);
    padding: 12px 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 15px;
    font-size: 0.8rem;
    color: var(--text-footer);
    border-top: 1px solid rgba(0,0,0,0.1);
    z-index: 1000;
}

.footer-logo {
    height: 22px;
    width: auto;
}

/* Responsividade (Mobile) */
@media (max-width: 768px) {
    .login-card {
        flex-direction: column;
        max-width: 450px;
        min-height: auto;
        border-radius: var(--border-radius-mobile);
    }

    .brand-section {
        padding: 25px 20px;
        border-radius: 0;
        /* Inverte a curva para a parte de baixo no mobile */
        border-bottom-left-radius: var(--border-radius-mobile);
        border-bottom-right-radius: var(--border-radius-mobile);
        order: 1; 
    }

    .form-section {
        padding: 30px 25px;
        order: 2;
    }

    .brand-logo {
        max-width: 150px;
    }

    .footer-bar {
        flex-direction: column;
        text-align: center;
        gap: 5px;
        padding: 15px;
    }
    
    .footer-bar {
        display: none;
    }
}