html, body {
    overflow-x: hidden;
}

body {
    font-family: Montserrat;
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    background-color: white;
    min-height: 100vh;
    min-width: 100vw;
}

.container {
    background: url("/static/images/capa2.png") center/cover no-repeat;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 30px;
    height: 655px;
    width: 100vw;
    position: relative;
}


legend{

    margin-bottom: 20px;
    text-align: center;
    height: auto
}



.imagem_size {
    color: white;
    border-radius: 15px;
    margin-top: -1px;
    width: 30vw;
    right: -50px;
    justify-content: center;
    align-items: flex-start;
}

.txt-animado {
    color: #382D22;
    margin-top: 155px;
    font-size: 35px;
    font-weight: 380;
    font-family: Montserrat;
    width: 35vw;
    padding: 1px;
    position: relative;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
}

.txt-animado span {
    position: relative;
    width: 35vw;
}

.txt-animado span::before {
    content: "";
    color: white;
    animation: palavras 20s infinite;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
    width: 35vw;
}

.txt-animado::after {
    content: "";
    position: absolute;
    right: 0;
    height: 60px;
    border-left: 2px solid white;
    animation: cursor1 .8s infinite, digita 20s steps(30) infinite;
    width: 35vw;
    background: linear-gradient(to right, #524233, #C89663);
    background-attachment: fixed;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-block;
}

.h1_animado {
    font-size: 40px;
    font-weight: 380;
    font-family: Montserrat;
    margin: 0;
}

.box {
    margin-top: 5px;
    margin-left: 280px;
    margin-right: 5px;
    color: white;
    background-color: rgba(0, 0, 0, 0.6);
    border-radius: 15px;
    position: relative;
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: #222;
    border-radius: 10px;
    padding-top: 5px;
    padding-bottom: 5px;
    padding-left: 2px;
    padding-right: 2px;
    height: 97%;
    width: 338px;
    box-shadow: 0px 0px 25px rgba(0, 0, 0, 0.5);
}

.box_form {
    position: relative;
    z-index: 2;
}

#formulario {
    background-color: #382D22;
    border-radius: 6px;
    padding: 20px;
    width: 290px;
    font-size: 15px;
    height: 100%;
    padding-top: 58px;
}

.logomarca {
    height: 20%;
    width: 60%;
}

fieldset {
    padding-top: 9px;
    margin-bottom: -8px;
    border: 2px solid #C89663;
    width: 275px;
    position: relative;
    border-radius: 2px;
}

.inputBox {
    position: relative;
}

.inputUser {
    background: none;
    border: none;
    border-bottom: 1px solid white;
    outline: none;
    color: white;
    font-size: 15px;
    width: 100%;
    letter-spacing: 1px;
}

.LabelInput {
    position: absolute;
    top: 0px;
    left: 0px;
    pointer-events: none;
    transition: .5s;
}

.inputUser:focus ~ .LabelInput,
.inputUser:valid ~ .LabelInput {
    top: -20px;
    font-size: 12px;
    color: #C89663;
}

#submit {
    background-image: linear-gradient(to right, #C89663, #524233);
    width: 100%;
    border: none;
    padding: 15px;
    border-radius: 10px;
    color: white;
    cursor: pointer;
    font-size: 16px;
    font-weight: 450;
}

#submit:hover {
    background-image: linear-gradient(to right, #1b1611, #ae7944);
    color: #C89663;
}

.especialidade {
    display: flex;
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.checkbox, .checkbox1, .checkbox2, .checkbox3 {
    position: relative;
    user-select: none;
}

.checkbox input, 
.checkbox1 input, 
.checkbox2 input, 
.checkbox3 input {
    visibility: hidden;
}

.checkbox label, 
.checkbox1 label, 
.checkbox2 label, 
.checkbox3 label {
    display: flex;
    color: #fff;
    padding-left: 35px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
}

.checkbox label::before, 
.checkbox1 label::before, 
.checkbox2 label::before, 
.checkbox3 label::before {
    position: absolute;
    left: 0;
    border: 2px solid white;
    content: "";
    width: 14px;
    height: 14px;
    border-radius: 6px;
    transition: all .2s ease-in-out;
}

.checkbox input:checked ~ label::before,
.checkbox1 input:checked ~ label::before,
.checkbox2 input:checked ~ label::before,
.checkbox3 input:checked ~ label::before {
    border: 2px solid #C89663;
    transform: rotate(40deg);
    border-left-color: transparent;
    border-top-color: transparent;
    border-radius: 0;
    width: 8px;
    height: 19px;
    left: 10px;
}

.checkbox label:hover,
.checkbox1 label:hover,
.checkbox2 label:hover,
.checkbox3 label:hover {
    color: #C89663;
}

.box::before {
    content: "";
    position: absolute;
    top: -200px;
    left: 140px;
    right: 140px;
    bottom: -200px;
    background: linear-gradient(45deg, #C89663, #ae7944);
    z-index: 1;
    border-radius: 15px;
    animation: rotate-border 4s linear infinite;
    clip-path: inset(1px);
}

@keyframes rotate-border {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

@keyframes cursor1 {
    0% { border-left: 2px solid transparent; }
}

@keyframes palavras {
    0%, 20% { content: "realçada com naturalidade."; }
    21%, 40% { content: "refinada com precisão."; }
    41%, 60% { content: "em perfeita harmonia."; }
    61%, 80% { content: "sempre valorizada."; }
    81%, 100% { content: "é o nosso compromisso."; }
}

@keyframes digita {
    10%, 15% { width: 14%; }
    30%, 35% { width: 29%; }
    50%, 55% { width: 29%; }
    70%, 75% { width: 41%; }
    90%, 95% { width: 25%; }
    5%, 20%, 25%, 40%, 45%, 60%, 65%, 80%, 85% { width: 100%; }
}

@media screen and (max-width: 1276px) {
    .imagem_size, .h1_animado, #txt__animado {
        display: none;
    }
    
    .container {
        align-content: center;
        width: auto;
        position: relative;
    }
    
    .box {
        width: 100%;
    }
    
    .box_form {
        align-content: center;
        align-items: center;
        justify-content: center;
    }
    
    fieldset {
        align-content: center;
        align-items: center;
        justify-content: center;
    }
    
    #formulario {
        align-content: center;
        align-items: center;
        justify-content: center;
        height: 80%;
    }
}