body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    margin: 0;
}

.fundo {
    background-color: #00000069;
    width: 100%;
    height: 100vh;
    position: fixed;
}

.login-container,
.welcome-container {
    background: #ffffffc2;
    position: fixed;
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0, 0, 0, 2);
}

a {
    text-decoration: none;
    color: #000;
}

h2 {
    margin-top: 0;
}

label {
    display: block;
    margin-bottom: 5px;
}

input {
    width: 90%;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 5px;
}

button {
    background: #007bff;
    color: #fff;
    border: none;
    padding: 10px;
    border-radius: 5px;
    cursor: pointer;
    width: 100%;
}

button:hover {
    background: #0056b3;
}

.error {
    color: red;
    margin-top: 10px;
}

.register-container {
    width: 300px;
}

#label {
    font-size: .8em;
    line-height: 4em;
    text-transform: uppercase;
    color: #000000;
    transition: all .3s ease-in;
    opacity: 0;
    cursor: pointer;
}

.inner:before,
.inner:after {
    margin-left: 10px;
    position: absolute;
    content: '';
    height: 1px;
    width: 50px;
    background: #FFC107;
    left: 0;
    transition: all .5s ease-in;
}

.inner:before {
    top: 50%;
    transform: rotate(45deg);
}

.inner:after {
    bottom: 50%;
    transform: rotate(-45deg);
}

.outer:hover #label {
    opacity: 1;
}

.outer:hover .inner:before,
.outer:hover .inner:after {
    transform: rotate(0);
}

.outer:hover .inner:before {
    top: 0;
}

.outer:hover .inner:after {
    bottom: 0;
}

.fechar {
    color: #ffffff;
    transition: all .5s ease-in;
}

.fechar:hover {
    color: #FFC107;
}


/* Layout geral para a página */

body {
    font-family: Arial, sans-serif;
    background-color: #f4f4f9;
    margin: 0;
    padding: 0;
}


/* Layout do formulário */

#form-container {
    padding: 20px;
    background-color: #fff;
    box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
    border-radius: 8px;
}

form label {
    font-size: 16px;
    margin: 10px 0;
    display: block;
}

form input {
    width: 99%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}

form select {
    width: 100%;
    padding: 8px;
    margin-bottom: 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
}


/* Modal de pré-visualização */

#modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100vh;
    background-color: #0000006e;
    z-index: 2;
    overflow: auto;
    display: none;
    align-items: center;
    justify-content: center;
}

#dentromodal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    width: 90%;
    margin-left: 5%;
    height: 80vh;
    margin-top: 10vh;
    padding: 30px 30px;
    border-radius: 8px;
    background-color: #fff;
    z-index: 3;
    overflow: auto;
    align-items: center;
    justify-content: center;
}

#modal-content {
    background-color: white;
    padding: 20px;
    border-radius: 8px;
    width: 80%;
    max-width: 700px;
    overflow-y: auto;
    max-height: 80vh;
}


/* Layout A4 para a pré-visualização e impressão */

#preview-content {
    width: 100%;
    font-size: 14px;
    line-height: 1.6;
}

#preview-content h3 {
    margin-top: 20px;
    font-size: 18px;
    color: #333;
    padding-bottom: 5px;
}

#preview-content pre {
    white-space: pre-wrap;
    /* Quebra de linha para texto longo */
    word-wrap: break-word;
    /* Evita overflow de palavras longas */
}


/* Estilos para impressão em A4 */

@media print {
    body * {
        visibility: hidden;
    }
    #modal,
    #modal * {
        visibility: visible;
    }
    #modal {
        position: static;
        width: auto;
        height: auto;
        background-color: #fff;
    }
    #modal-content {
        width: 210mm;
        height: 297mm;
        margin: auto;
        box-shadow: none;
        padding: 20mm;
        font-size: 12px;
    }
}


/* Estilos para o conteúdo em PDF e visualização */

@media print {
    #preview-content {
        font-size: 12px;
        padding: 0;
    }
    #modal-content {
        width: 100%;
        max-width: 210mm;
        height: 297mm;
        padding: 30mm;
    }
}