/* css/index.css */
:root {
    /* Cor Verde Institucional baseada no padrão mencionado */
    --primary-green: #006837; 
    --primary-green-dark: #004d29;
    --primary-green-light: #008f4c;
    --text-color: #333;
    --bg-color: #f4f6f9;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--bg-color);
    margin: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/* Logotipo centralizado fora da caixa */
.logo-container {
    margin-bottom: 25px;
    text-align: center;
}

.main-logo {
    max-height: 100px; /* Ajuste conforme necessário */
    width: auto;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.1));
}

/* Container Principal */
.login-wrapper {
    display: flex;
    width: 900px;
    max-width: 90%;
    background: white;
    box-shadow: 0 10px 30px rgba(0,0,0,0.15);
    border-radius: 12px;
    overflow: hidden;
    min-height: 500px;
}

/* Área de Login (Esquerda) */
.login-area {
    width: 50%;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.system-title {
    text-align: center;
    color: var(--primary-green);
    margin-bottom: 30px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.system-title h2 {
    margin: 0;
    font-size: 28px;
    font-weight: 700;
}

.system-title p {
    margin: 5px 0 0;
    color: #666;
    font-size: 14px;
}

/* Formulário */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: flex;
    align-items: center;
    margin-bottom: 8px;
    color: #555;
    font-weight: 600;
    font-size: 14px;
}

.form-group label i {
    margin-left: 8px; /* Ícone ao lado da palavra */
    color: var(--primary-green);
    font-size: 16px;
}

.form-group input {
    width: 100%;
    padding: 12px 15px;
    border: 2px solid #e1e1e1;
    border-radius: 6px;
    font-size: 15px;
    transition: border-color 0.3s;
    box-sizing: border-box; /* Garante que o padding não estoure a largura */
}

.form-group input:focus {
    border-color: var(--primary-green);
    outline: none;
}

.btn-login {
    width: 100%;
    padding: 14px;
    background-color: var(--primary-green);
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.1s;
    margin-top: 10px;
}

.btn-login:hover {
    background-color: var(--primary-green-dark);
}

.error-msg {
    background-color: #ffebee;
    color: #c62828;
    padding: 10px;
    border-radius: 4px;
    margin-bottom: 20px;
    text-align: center;
    font-size: 14px;
    border: 1px solid #ffcdd2;
}

/* Área de Notícias (Direita) - Verde */
.news-area {
    width: 50%;
    background: linear-gradient(135deg, var(--primary-green), var(--primary-green-dark));
    color: white;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
}

.news-area h3 {
    border-bottom: 2px solid rgba(255,255,255,0.3);
    padding-bottom: 10px;
    margin-top: 0;
}

.news-item {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(5px);
    padding: 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    border-left: 4px solid rgba(255,255,255,0.5);
}

.news-item h4 {
    margin: 0 0 5px 0;
    font-size: 16px;
}

.news-item p {
    margin: 0;
    font-size: 13px;
    opacity: 0.9;
    line-height: 1.4;
}

/* Responsividade para celular */
@media (max-width: 768px) {
    .login-wrapper {
        flex-direction: column;
        width: 90%;
        height: auto;
    }
    .login-area, .news-area {
        width: 100%;
        padding: 30px;
    }
}