@charset "UTF-8";
/* Estilos Gerais (para telas maiores primeiro - mobile-first também é uma ótima abordagem, mas vamos adaptar o seu layout atual) */
body {
    font-family: Arial, sans-serif;
    margin: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 100vh;
    background: #4287f5;
    color: #333;
    box-sizing: border-box; /* Inclui padding e borda na largura/altura */
}

body::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: url('../imagens/catedral_saocarlos.jpg') no-repeat center center;
    background-size: cover;
    opacity: 0.4;
    z-index: -1;
}

form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 900px; /* Largura máxima para o formulário */
    background-color: #fff;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
    overflow: hidden; /* Para garantir que o border-radius funcione bem */
}

.container {
    display: flex;
    width: 100%;
    /* Em telas grandes, os painéis ficam lado a lado */
}

.left-panel,
.right-panel {
    padding: 30px;
    box-sizing: border-box;
    flex: 1; /* Faz com que os painéis ocupem o espaço disponível */
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
}

.left-panel {
    background-color: #007bff; /* Cor para o painel esquerdo */
    color: white;
    padding: 40px; /* Um pouco mais de padding */
}

.left-panel img {
    max-width: 150px; /* Tamanho ajustável da imagem */
    margin-bottom: 20px;
}

.left-panel h1 {
    font-size: 2em;
    margin-bottom: 10px;
}

.left-panel p {
    font-size: 1.1em;
    line-height: 1.5;
}

.right-panel {
    background-color: #fff;
    padding: 40px;
}

.right-panel h2 {
    font-size: 1.8em;
    margin-bottom: 25px;
    color: #007bff;
}

.input-group {
    margin-bottom: 20px;
    width: 100%;
}

.input-group input[type="text"],
.input-group input[type="password"] {
    width: calc(100% - 20px); /* Ajuste para padding */
    padding: 12px 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
}

.input-group input[type="text"]:focus,
.input-group input[type="password"]:focus {
    border-color: #007bff;
    outline: none;
    box-shadow: 0 0 0 0.2rem rgba(0, 123, 255, 0.25);
}

.btn {
    background-color: #007bff;
    color: white;
    padding: 12px 25px;
    border: none;
    border-radius: 5px;
    cursor: pointer;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    width: 100%; /* Botão ocupa a largura total */
}

.btn:hover {
    background-color: #0056b3;
}

.rodape {
    margin-top: 20px;
    padding: 15px;
    text-align: center;
    font-size: 0.9em;
    color: #EDBE9D;
    border-top: 1px solid #CCC;
    background-color: #123456;
    width: 100%;
    box-sizing: border-box;
    display: block;
}

.privacidade {
    margin-top: 10px;
}

.privacidade a {
    color: #EDBE9D;
    text-decoration: none;
    cursor: pointer;
}

.privacidade a:hover {
    color: #0056b3;
}

/* Media Queries para Responsividade */
/* Para telas menores que 768px (tablets e celulares) */
@media (max-width: 768px) {
    .container {
        flex-direction: column; /* Empilha os painéis */
    }

    .left-panel,
    .right-panel {
        width: 100%; /* Ocupa a largura total */
        padding: 25px; /* Reduz o padding um pouco */
    }

    .left-panel {
        border-bottom: 1px solid rgba(255, 255, 255, 0.2); /* Separador visual */
    }

    .left-panel img {
        max-width: 120px; /* Reduz o tamanho da imagem no mobile */
    }

    .left-panel h1 {
        font-size: 1.8em; /* Reduz o tamanho do título */
    }

    .left-panel p {
        font-size: 1em;
    }

    .right-panel h2 {
        font-size: 1.6em;
    }

    .input-group input {
        font-size: 0.95em; /* Ajusta o tamanho da fonte dos inputs */
        padding: 10px 8px;
    }

    .btn {
        padding: 10px 20px;
        font-size: 1em;
    }

    form {
        margin: 20px; /* Adiciona margem ao formulário para não colar nas bordas da tela */
        border-radius: 8px; /* Ajusta o border-radius */
    }
}

/* Para telas muito pequenas (celulares) */
@media (max-width: 480px) {
    .left-panel,
    .right-panel {
        padding: 20px; /* Mais redução de padding */
    }

    .left-panel img {
        max-width: 100px;
    }

    .left-panel h1 {
        font-size: 1.5em;
    }

    .left-panel p {
        font-size: 0.9em;
    }

    .right-panel h2 {
        font-size: 1.4em;
    }

    .input-group {
        margin-bottom: 15px;
    }

    .btn {
        padding: 10px 15px;
        font-size: 0.95em;
    }

    .rodape {
        font-size: 0.8em;
        padding: 10px;
    }
}