/* =========================================
   CONFIGURAÇÕES GERAIS
========================================= */

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

:root {

    --verde: #35a66f;
    --verde-escuro: #217b51;
    --verde-claro: #e8f7ef;

    --rosa: #e86b9b;
    --rosa-escuro: #c94e7d;
    --rosa-claro: #fff0f5;

    --branco: #ffffff;
    --fundo: #f7faf8;

    --texto: #26352e;
    --texto-claro: #718078;

    --borda: #e2ebe6;

    --erro: #d94b5b;

    --sombra:
        0 20px 60px rgba(36, 100, 70, 0.12);
}

body {

    font-family: "Poppins", sans-serif;

    background:
        linear-gradient(
            135deg,
            #f4fbf7,
            #fff7fa
        );

    min-height: 100vh;

    color: var(--texto);
}


/* =========================================
   CONTAINER PRINCIPAL
========================================= */

.cadastro-container {

    width: 94%;

    max-width: 1250px;

    min-height: 850px;

    margin: 30px auto;

    background: var(--branco);

    border-radius: 30px;

    overflow: hidden;

    display: grid;

    grid-template-columns: 42% 58%;

    box-shadow: var(--sombra);
}


/* =========================================
   BANNER
========================================= */

.cadastro-banner {

    position: relative;

    padding: 50px;

    overflow: hidden;

    background:
        linear-gradient(
            145deg,
            #227e52,
            #35a66f 55%,
            #e86b9b
        );

    color: white;

    display: flex;

    flex-direction: column;

    justify-content: space-between;
}


/* círculos decorativos */

.cadastro-banner::before {

    content: "";

    position: absolute;

    width: 350px;

    height: 350px;

    border-radius: 50%;

    background: rgba(255,255,255,0.08);

    top: -100px;

    right: -120px;
}

.cadastro-banner::after {

    content: "";

    position: absolute;

    width: 300px;

    height: 300px;

    border-radius: 50%;

    background: rgba(255,255,255,0.08);

    bottom: -130px;

    left: -100px;
}


/* =========================================
   LOGO
========================================= */

.logo {

    position: relative;

    z-index: 2;

    display: flex;

    align-items: center;

    gap: 12px;
}

.logo img {

    width: 70px;

    height: 70px;

    object-fit: contain;
}

.logo div {

    font-size: 30px;

    font-weight: 700;
}

.logo .eco {

    color: white;
}

.logo .lotus {

    color: #ffd2e2;

    margin-left: 3px;
}


/* =========================================
   CONTEÚDO DO BANNER
========================================= */

.banner-content {

    position: relative;

    z-index: 2;

    max-width: 450px;
}

.tag {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    background: rgba(255,255,255,0.15);

    border: 1px solid rgba(255,255,255,0.25);

    padding: 8px 15px;

    border-radius: 30px;

    font-size: 13px;

    margin-bottom: 25px;
}

.banner-content h1 {

    font-size: 45px;

    line-height: 1.15;

    margin-bottom: 25px;

    font-weight: 500;
}

.banner-content h1 strong {

    color: #ffd2e2;

    font-weight: 700;
}

.banner-content p {

    font-size: 16px;

    line-height: 1.8;

    color: rgba(255,255,255,0.9);

    margin-bottom: 35px;
}


/* =========================================
   BENEFÍCIOS
========================================= */

.beneficios {

    display: flex;

    gap: 12px;
}

.beneficios div {

    display: flex;

    align-items: center;

    gap: 8px;

    background: rgba(255,255,255,0.12);

    border-radius: 15px;

    padding: 12px 15px;

    font-size: 13px;
}

.beneficios i {

    color: #ffd3e2;

    font-size: 17px;
}


/* =========================================
   ÁREA DO FORMULÁRIO
========================================= */

.cadastro-form-area {

    padding: 45px 55px;

    overflow-y: auto;

    max-height: 900px;
}


/* =========================================
   HEADER
========================================= */

.form-header {

    margin-bottom: 30px;
}

.voltar {

    display: inline-flex;

    align-items: center;

    gap: 8px;

    text-decoration: none;

    color: var(--texto-claro);

    font-size: 14px;

    transition: 0.3s;

    margin-bottom: 25px;
}

.voltar:hover {

    color: var(--verde);

    transform: translateX(-3px);
}

.form-title {

    display: flex;

    align-items: center;

    gap: 15px;
}

.mini-logo {

    width: 50px;

    height: 50px;

    border-radius: 15px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--verde-claro);

    font-size: 24px;
}

.form-title h2 {

    font-size: 28px;

    margin-bottom: 3px;
}

.form-title p {

    color: var(--texto-claro);

    font-size: 13px;
}


/* =========================================
   PERFIL
========================================= */

.perfil-area {

    margin-bottom: 30px;
}

.perfil-area > label {

    display: block;

    font-size: 14px;

    font-weight: 600;

    margin-bottom: 12px;
}

.perfil-options {

    display: grid;

    grid-template-columns: repeat(3, 1fr);

    gap: 10px;
}

.perfil-option {

    border: 2px solid var(--borda);

    background: white;

    border-radius: 15px;

    padding: 15px 10px;

    cursor: pointer;

    display: flex;

    align-items: center;

    gap: 10px;

    text-align: left;

    color: var(--texto);

    transition: 0.3s;

    font-family: inherit;
}

.perfil-option i {

    width: 35px;

    height: 35px;

    border-radius: 10px;

    display: flex;

    align-items: center;

    justify-content: center;

    background: var(--verde-claro);

    color: var(--verde);

    flex-shrink: 0;
}

.perfil-option span {

    display: flex;

    flex-direction: column;

    gap: 2px;
}

.perfil-option strong {

    font-size: 12px;
}

.perfil-option small {

    font-size: 9px;

    color: var(--texto-claro);
}

.perfil-option:hover {

    border-color: var(--verde);
}

.perfil-option.active {

    border-color: var(--rosa);

    background: var(--rosa-claro);

    box-shadow:
        0 5px 15px rgba(232,107,155,0.12);
}

.perfil-option.active i {

    background: var(--rosa);

    color: white;
}


/* =========================================
   CAMPOS
========================================= */

.campo {

    margin-bottom: 18px;
}

.campo label {

    display: block;

    font-size: 13px;

    font-weight: 600;

    margin-bottom: 7px;
}

.input-box {

    height: 50px;

    border: 1.5px solid var(--borda);

    border-radius: 12px;

    display: flex;

    align-items: center;

    padding: 0 15px;

    gap: 10px;

    transition: 0.3s;

    background: #fff;
}

.input-box:focus-within {

    border-color: var(--verde);

    box-shadow:
        0 0 0 4px rgba(53,166,111,0.08);
}

.input-box > i {

    color: var(--verde);

    width: 18px;

    text-align: center;
}

.input-box input {

    border: none;

    outline: none;

    width: 100%;

    height: 100%;

    font-family: inherit;

    font-size: 13px;

    color: var(--texto);

    background: transparent;
}

.input-box input::placeholder {

    color: #a3aea8;
}


/* =========================================
   MOSTRAR SENHA
========================================= */

.mostrar-senha {

    border: none;

    background: transparent;

    cursor: pointer;

    color: #9ba6a0;

    font-size: 16px;

    transition: 0.2s;
}

.mostrar-senha:hover {

    color: var(--rosa);
}


/* =========================================
   CIDADE + BAIRRO
========================================= */

.duplo {

    display: grid;

    grid-template-columns: 1fr 1fr;

    gap: 15px;
}


/* =========================================
   EMPRESA
========================================= */

.empresa-box {

    background:
        linear-gradient(
            135deg,
            #f0faf5,
            #fff2f7
        );

    border: 1px solid #dceee4;

    border-radius: 18px;

    padding: 20px;

    margin-bottom: 22px;

    animation: aparecer 0.3s ease;
}

.empresa-titulo {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom: 18px;
}

.empresa-titulo > i {

    width: 40px;

    height: 40px;

    border-radius: 12px;

    background: var(--rosa);

    color: white;

    display: flex;

    align-items: center;

    justify-content: center;
}

.empresa-titulo div {

    display: flex;

    flex-direction: column;
}

.empresa-titulo strong {

    font-size: 14px;
}

.empresa-titulo span {

    color: var(--texto-claro);

    font-size: 11px;
}

.hidden {

    display: none;
}

@keyframes aparecer {

    from {

        opacity: 0;

        transform: translateY(-5px);
    }

    to {

        opacity: 1;

        transform: translateY(0);
    }
}


/* =========================================
   REGRAS DA SENHA
========================================= */

.senha-regras {

    display: flex;

    flex-wrap: wrap;

    gap: 10px;

    margin-top: 8px;
}

.senha-regras span {

    font-size: 10px;

    color: #8b9891;

    display: flex;

    align-items: center;

    gap: 4px;
}

.senha-regras i {

    font-size: 6px;
}

.senha-regras span.ok {

    color: var(--verde);

    font-weight: 500;
}

.senha-regras span.ok i {

    color: var(--verde);
}


/* =========================================
   ERROS
========================================= */

.erro {

    display: block;

    color: var(--erro);

    font-size: 10px;

    margin-top: 5px;

    min-height: 14px;
}

.input-box.erro-input {

    border-color: var(--erro);

    background: #fff7f8;
}


/* =========================================
   TERMOS
========================================= */

.termos {

    margin: 10px 0 20px;
}

.termos label {

    display: flex;

    align-items: flex-start;

    gap: 8px;

    color: var(--texto-claro);

    font-size: 11px;

    line-height: 1.5;

    cursor: pointer;
}

.termos input {

    accent-color: var(--verde);

    margin-top: 3px;
}


/* =========================================
   MENSAGEM
========================================= */

.mensagem {

    display: none;

    border-radius: 10px;

    padding: 12px;

    font-size: 12px;

    margin-bottom: 15px;
}

.mensagem.erro-msg {

    display: block;

    color: #a82e3d;

    background: #fff0f2;

    border: 1px solid #ffd4d9;
}

.mensagem.sucesso-msg {

    display: block;

    color: #217b51;

    background: #ebf9f1;

    border: 1px solid #c9ebd8;
}


/* =========================================
   BOTÃO CADASTRAR
========================================= */

.btn-cadastrar-form {

    width: 100%;

    height: 55px;

    border: none;

    border-radius: 14px;

    background:
        linear-gradient(
            100deg,
            var(--verde),
            #47b87e 50%,
            var(--rosa)
        );

    color: white;

    font-family: inherit;

    font-size: 14px;

    font-weight: 600;

    cursor: pointer;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    transition: 0.3s;

    box-shadow:
        0 8px 20px rgba(53,166,111,0.20);
}

.btn-cadastrar-form:hover {

    transform: translateY(-2px);

    box-shadow:
        0 12px 25px rgba(53,166,111,0.28);
}

.btn-cadastrar-form:active {

    transform: translateY(0);
}


/* =========================================
   LOGIN
========================================= */

.login-link {

    text-align: center;

    margin-top: 20px;

    color: var(--texto-claro);

    font-size: 12px;
}

.login-link a {

    color: var(--rosa-escuro);

    font-weight: 600;

    text-decoration: none;

    margin-left: 4px;
}

.login-link a:hover {

    text-decoration: underline;
}


/* =========================================
   BOTÃO DESLOGAR
========================================= */

.btn-logout {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    width: 100%;

    margin-top: 15px;

    padding: 10px;

    border: none;

    background: transparent;

    color: #a5aea9;

    cursor: pointer;

    font-family: inherit;

    font-size: 11px;

    transition: 0.3s;
}

.btn-logout:hover {

    color: var(--erro);
}


/* =========================================
   RESPONSIVIDADE
========================================= */

@media (max-width: 1050px) {

    .cadastro-container {

        grid-template-columns: 1fr;

        max-width: 750px;
    }

    .cadastro-banner {

        min-height: 350px;

        padding: 35px;
    }

    .banner-content h1 {

        font-size: 35px;
    }

    .cadastro-form-area {

        max-height: none;
    }
}


@media (max-width: 650px) {

    body {

        background: white;
    }

    .cadastro-container {

        width: 100%;

        margin: 0;

        border-radius: 0;

        box-shadow: none;
    }

    .cadastro-banner {

        min-height: 300px;

        padding: 25px;
    }

    .logo img {

        width: 55px;

        height: 55px;
    }

    .logo div {

        font-size: 25px;
    }

    .banner-content h1 {

        font-size: 30px;
    }

    .banner-content p {

        font-size: 13px;
    }

    .beneficios {

        gap: 6px;
    }

    .beneficios div {

        padding: 9px;

        font-size: 10px;
    }

    .cadastro-form-area {

        padding: 30px 20px;
    }

    .perfil-options {

        grid-template-columns: 1fr;
    }

    .perfil-option {

        padding: 12px;
    }

    .duplo {

        grid-template-columns: 1fr;

        gap: 0;
    }

    .form-title h2 {

        font-size: 24px;
    }
}
