/* Reset básico e variáveis de cor oficiais */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

:root {
    --vermelho-oficial: #972a2a;
    --azul-oficial: #2a176f;
    --cinza-fundo: #f4f6f9;
    --cinza-texto: #333333;
    --cinza-borda: #cccccc;
}

body {
    background-color: var(--cinza-fundo);
    color: var(--cinza-texto);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

/* Layout em duas colunas responsivo */
.container {
    display: flex;
    width: 100%;
    max-width: 1000px;
    background: #ffffff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    min-height: 600px;
}

/* Seção de Login (Esquerda) */
.login-section {
    flex: 1;
    padding: 50px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.header-oficial {
    text-align: center;
    margin-bottom: 30px;
}

.logo-placeholder {
    font-size: 40px;
    margin-bottom: 10px;
}

.header-oficial h1 {
    font-size: 22px;
    color: var(--azul-oficial);
    font-weight: 700;
}

.header-oficial h2 {
    font-size: 14px;
    color: #666666;
    margin-top: 5px;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Formulário */
.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--cinza-texto);
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--cinza-borda);
    border-radius: 6px;
    font-size: 16px;
    transition: border-color 0.2s;
}

.form-group input:focus {
    outline: none;
    border-color: var(--azul-oficial);
}

.btn-submit {
    width: 100%;
    padding: 14px;
    background-color: var(--azul-oficial);
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background-color 0.2s;
}

.btn-submit:hover {
    background-color: #1e1052;
}

/* Alertas */
.alert-error {
    background-color: #fce8e6;
    color: #a8071a;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #f5222d;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}

.login-footer {
    margin-top: 40px;
    text-align: center;
    font-size: 12px;
    color: #888888;
    line-height: 1.5;
}

/* Seção do Munícipe (Direita) */
.citizen-section {
    flex: 1;
    background-color: var(--vermelho-oficial);
    color: #ffffff;
    padding: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

/* Detalhe estético simulando a bandeira nacional/regional com azul na lateral */
.citizen-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 8px;
    height: 100%;
    background-color: var(--azul-oficial);
}

.citizen-card {
    text-align: center;
    max-width: 360px;
}

.citizen-card h3 {
    font-size: 26px;
    margin-bottom: 20px;
    font-weight: 700;
}

.citizen-card p {
    font-size: 15px;
    line-height: 1.6;
    margin-bottom: 20px;
    opacity: 0.95;
}

.btn-citizen {
    display: inline-block;
    width: 100%;
    padding: 14px;
    background-color: #ffffff;
    color: var(--vermelho-oficial);
    text-decoration: none;
    border-radius: 6px;
    font-size: 15px;
    font-weight: 700;
    transition: background-color 0.2s, transform 0.2s;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.btn-citizen:hover {
    background-color: var(--cinza-fundo);
    transform: translateY(-1px);
}

/* Responsividade para telas de celulares e tablets verticais */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        min-height: auto;
        margin: 20px;
    }
    
    .login-section {
        padding: 30px 20px;
    }

    .citizen-section {
        padding: 40px 20px;
    }

    .citizen-section::before {
        width: 100%;
        height: 8px;
    }
}

.alert-success-login {
    background-color: #e6f7ff;
    color: #1890ff;
    padding: 12px;
    border-radius: 6px;
    border: 1px solid #91d5ff;
    margin-bottom: 20px;
    font-size: 14px;
    text-align: center;
}
