* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body, html {
    width: 100%;
    height: 100%;
}

/* deixa o campo invisível por padrão */
#rede-social, label[for="rede-social"] {
    display: none;
}


.main-cadastro {
    display: flex;
    width: 100%;
    min-height: 100vh;
}

.cadastro-container {
    width: 40%;
    background: #fff;
    transform: scale(0.8);
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.cadastro-container * {
    font-weight: 400;
}

.cadastro-imagem {
    position: fixed;
    right: 0;
    top: 0;
    bottom: 0;
    /*position: relative;*/
    width: 60%;
    background: #0857c3;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
    overflow: hidden;
}

.cadastro-imagem img {
    max-width: 70%;
    height: auto;
    display: block;
}

.mockup {
    max-width: 60%;
    height: auto;
    z-index: 3;
    position: relative;
}

.decor-cima,
.decor-baixo {
    position: absolute;
    pointer-events: none;
    max-width: 400px;
}

.decor-cima {
    top: 0;
    z-index: 1;
    right: 0;
    width: 40%;
}

.decor-baixo {
    bottom: 0;
    z-index: 4;
    left: 0;
    width: 40%;
}

.cadastro-titulo {
    text-align: left;
}

.cadastro-titulo h2 {
    font-weight: bold;
    color: #0857c3;
    margin: 0 0 0 0;
}

.cadastro-titulo img {
    max-height: 50%;
    max-width: 140px;
    height: auto;
    margin-bottom: 20px;
}

.cadastro-titulo p strong {
    font-weight: bold;
}

.cadastro-etapa { display: none; }
.cadastro-etapa.active { display: block; }

label {
    display: block;
    margin-bottom: 15px;
}

input {
    background-color: #fefefe;
    width: 100%;
    height: 45px;
    border: 1px solid #c8c8c8;
    border-radius: 10px;
    padding: 0 15px;
    margin-bottom: 20px;
    font-size: 14px;
    box-sizing: border-box;
}

input:hover {
    border: 1px solid #0857c3;
}

.input-group {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
}

.input-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.input-wrapper label {
    margin-bottom: 15px;
}

.input-group .input-wrapper input {
    margin-bottom: 0;
}

input.error {
    border: 1px solid #d93025 !important;
}

input.valid {
    border: 1px solid #34a853 !important;
}

.password-field {
    position: relative;
    display: block;
}

.password-field input {
    padding-right: 46px;
}

/* icone de mostrar/ocultar senha */
.password-field .toggle-password {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    display: block;
    cursor: pointer;
    user-select: none;
    -webkit-user-drag: none;
    object-fit: contain;
    pointer-events: auto;
}

.aviso-link {
    font-size: 14px;
    color: #c8c8c8;
}

select {
    background-color: #fefefe;
    width: 100%;
    height: 45px;
    border: 1px solid #c8c8c8;
    border-radius: 10px;
    padding: 0 40px 0 15px;
    margin-bottom: 20px;
    font-size: 14px;
    box-sizing: border-box;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    background-image: url("data:image/svg+xml;utf8,<svg fill='gray' height='20' viewBox='0 0 24 24' width='20' xmlns='http://www.w3.org/2000/svg'><path d='M7 10l5 5 5-5z'/></svg>");
    background-repeat: no-repeat;
    background-position: right 12px center;
    background-size: 16px;
}

select:hover {
    border: 1px solid #0857c3;
}

select:invalid {
    color: rgba(0,0,0,0.4);
}

select option {
    color: #000;
}

select option[disabled] {
    color: rgba(0,0,0,0.4);
}

.tipo-pessoa {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
}

.btn-voltar {
    background: none;
    border: none;
    color: #0857c3;
    font-size: 16px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 15px;
    font-weight: 600;
    padding: 15px 0 !important;
}

.btn-toggle {
    flex: 1;
    border: 1px solid #0857c3;
    border-radius: 10px;
    background: #fff;
    color: #0857c3;
    /*font-weight: 600;*/
    cursor: pointer;
}

.btn-toggle.active {
    background: #0857c3;
    color: #fff;
}

.form-tipo { display: none; }
.form-tipo.active { display: block; }

.btn-primary {
    width: 100%;
    background: #0857c3;
    color: #fff;
    border: none;
    border-radius: 10px;
    font-size: 16px;
    cursor: pointer;
}

.btn-primary:hover {
    background: #064a9e;
}

button {
    padding: 15px !important;
}

.checkbox-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
}

.checkbox-wrapper input[type="checkbox"] {
    appearance: none;
    -webkit-appearance: none;
    -moz-appearance: none;
    position: relative;
    width: 16px;
    height: 16px;
    border: 1px solid #0857c3;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
    margin: 0;
    flex-shrink: 0;
}

.checkbox-wrapper input[type="checkbox"]:hover {
    box-shadow: 0 0 0 3px rgba(8, 87, 195, 0.12);
}

.checkbox-wrapper input[type="checkbox"]:focus {
    outline: 2px solid rgba(8, 87, 195, 0.35);
    outline-offset: 2px;
}

.checkbox-wrapper input[type="checkbox"]:checked {
    background: #0857c3;
    border-color: #0857c3;
}

.checkbox-wrapper input[type="checkbox"]:checked::after {
    content: "";
    position: absolute;
    left: 4px;
    top: 1px;
    width: 4px;
    height: 8px;
    border: 2px solid #fff;
    border-top: 0;
    border-left: 0;
    transform: rotate(45deg);
}

.checkbox-wrapper label {
    margin: 0;
    font-size: 14px;
    font-weight: 400;
    line-height: 1.4;
}

.checkbox-wrapper a {
    color: #0857c3;
    text-decoration: none;
}

.checkbox-wrapper a:hover {
    text-decoration: underline;
}

#recaptcha-cadastro {
    display: flex;
    margin: 25px 0 35px 0;
    justify-content: center;
    width: 110%;
}

@media (max-width: 817px) {
    .main-cadastro {
        flex-direction: column;
    }

    .cadastro-container,
    .cadastro-imagem {
        width: 100%;
    }

    .cadastro-imagem {
        display: none;
    }
}

@media (min-width: 817px) and  (max-width: 1500px) {
    .cadastro-container {
        width: 50%;
    }

    .cadastro-imagem {
        width: 50%;
    }

    .cadastro-imagem img {
        max-width: 80%;
    }
}
