/* ==========================================================
   CICLORECYCLE
   CADASTRO + ACESSO ADMINISTRATIVO
========================================================== */


/* ==========================================================
   VARIÁVEIS
========================================================== */

:root {

    --verde-principal: #2d8748;
    --verde-escuro: #1f6638;
    --verde-claro: #edf7f0;
    --verde-suave: #f6fbf7;

    --rosa-principal: #e96b97;
    --rosa-escuro: #c94f7b;
    --rosa-claro: #fff0f5;

    --azul-admin: #315d8a;
    --azul-admin-claro: #eef5fb;

    --vermelho: #c62828;
    --vermelho-claro: #fff1f1;

    --texto: #293d30;
    --texto-secundario: #66736a;
    --texto-claro: #89958d;

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

    --sombra:
        0 20px 50px
        rgba(22, 67, 35, 0.13);

}


/* ==========================================================
   RESET
========================================================== */

* {

    margin: 0;
    padding: 0;

    box-sizing: border-box;

}


html {

    scroll-behavior: smooth;

}


body {

    min-height: 100vh;

    padding:
        40px
        20px;

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

    color:
        var(--texto);

    background:

        radial-gradient(
            circle at 10% 10%,
            rgba(255, 255, 255, 0.10),
            transparent 25%
        ),

        radial-gradient(
            circle at 90% 85%,
            rgba(233, 107, 151, 0.10),
            transparent 25%
        ),

        linear-gradient(
            135deg,
            #1f6638,
            #2d8748,
            #62af72
        );

}


button,
input,
select {

    font-family: inherit;

}


button {

    cursor: pointer;

}


[hidden] {

    display: none !important;

}


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

.container {

    width: 100%;

    display: flex;

    justify-content: center;

    align-items: flex-start;

}


/* ==========================================================
   CAIXA PRINCIPAL
========================================================== */

.cadastro-box {

    width: 100%;

    max-width: 780px;

    padding:
        38px
        40px
        40px;

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

    border-radius: 28px;

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

    box-shadow:
        var(--sombra);

    animation:
        entrada
        0.45s
        ease;

}


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

.logo {

    margin-bottom: 3px;

    display: flex;

    justify-content: center;

}


.logo img {

    width: 165px;

    height: auto;

    object-fit: contain;

}


/* ==========================================================
   TÍTULOS
========================================================== */

h1 {

    margin-bottom: 7px;

    color:
        var(--verde-escuro);

    text-align: center;

    font-size:
        clamp(
            1.7rem,
            4vw,
            2.15rem
        );

    font-weight: 700;

    letter-spacing:
        -0.03em;

}


.subtitle {

    max-width: 520px;

    margin:
        0
        auto
        30px;

    color:
        var(--texto-secundario);

    text-align: center;

    font-size: 0.9rem;

    line-height: 1.6;

}


.form-section-title {

    margin:
        31px
        0
        18px;

    padding-bottom: 10px;

    border-bottom:
        1px solid
        var(--borda);

    color:
        var(--verde-escuro);

    font-size: 1.08rem;

    font-weight: 650;

}


/* ==========================================================
   FORMULÁRIO
========================================================== */

form {

    width: 100%;

}


.form-grid {

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 18px;

}


.input-group {

    margin-bottom: 18px;

}


.input-group > label {

    display: block;

    margin-bottom: 8px;

    color:
        #314d39;

    font-size: 0.88rem;

    font-weight: 600;

}


input,
select {

    width: 100%;

    min-height: 50px;

    padding:
        12px
        15px;

    border:
        1.5px solid
        #dce6df;

    border-radius: 12px;

    outline: none;

    color:
        #304138;

    background:
        var(--branco);

    font-size: 0.92rem;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;

}


input::placeholder {

    color: #a3ada6;

}


input:hover,
select:hover {

    border-color:
        #c5d5c9;

}


input:focus,
select:focus {

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

    box-shadow:
        0 0 0 4px
        rgba(45, 135, 72, 0.11);

}


input:disabled,
select:disabled {

    cursor: not-allowed;

    color: #89958d;

    background: #f4f6f4;

}


/* ==========================================================
   E-MAIL PRINCIPAL
========================================================== */

#grupoEmailPrincipal {

    position: relative;

}


#grupoEmailPrincipal input {

    padding-right: 44px;

}


/* ==========================================================
   TIPO DE CONTA
========================================================== */

.tipo-conta {

    margin-bottom: 25px;

    border: 0;

}


.tipo-conta legend {

    margin-bottom: 15px;

    color:
        #314d39;

    font-size: 0.91rem;

    font-weight: 600;

}


.tipo-conta-grid {

    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 15px;

}


/* ==========================================================
   CARDS DE PERFIL
========================================================== */

.perfil-card {

    position: relative;

    min-height: 155px;

    padding: 21px;

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    border:
        1.5px solid
        #e0e7e2;

    border-radius: 17px;

    background:
        var(--branco);

    cursor: pointer;

    transition:
        transform 0.2s ease,
        border-color 0.2s ease,
        background 0.2s ease,
        box-shadow 0.2s ease;

}


.perfil-card:hover {

    transform:
        translateY(-2px);

    border-color:
        #8dc39b;

    box-shadow:
        0 7px 20px
        rgba(45, 135, 72, 0.07);

}


.perfil-card input {

    position: absolute;

    top: 15px;
    right: 15px;

    width: 18px;
    height: 18px;

    min-height: auto;

    padding: 0;

    accent-color:
        var(--verde-principal);

}


.perfil-card:has(input:checked) {

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

    background:
        var(--verde-claro);

    box-shadow:
        0 0 0 3px
        rgba(45, 135, 72, 0.09);

}


.perfil-icon {

    margin-bottom: 8px;

    font-size: 1.75rem;

}


.perfil-card strong {

    margin-bottom: 5px;

    color:
        var(--verde-escuro);

    font-size: 0.91rem;

}


.perfil-card small {

    padding-right: 10px;

    color:
        var(--texto-secundario);

    font-size: 0.76rem;

    line-height: 1.55;

}


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

.dados-empresa {

    margin-bottom: 20px;

    padding:
        5px
        20px
        20px;

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

    border-radius: 18px;

    background:
        var(--verde-suave);

}


.dados-empresa[hidden] {

    display: none !important;

}


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

.password-area {

    position: relative;

    display: flex;

    align-items: center;

}


.password-area input {

    padding-right: 92px;

}


.mostrar-senha {

    position: absolute;

    right: 8px;

    min-height: 35px;

    padding:
        5px
        10px;

    border: 0;

    border-radius: 8px;

    color:
        var(--verde-escuro);

    background:
        var(--verde-claro);

    font-size: 0.75rem;

    font-weight: 650;

    transition:
        background 0.2s ease,
        color 0.2s ease;

}


.mostrar-senha:hover {

    color:
        var(--rosa-escuro);

    background:
        var(--rosa-claro);

}


.ajuda {

    display: block;

    margin-top: 6px;

    color:
        var(--texto-claro);

    font-size: 0.75rem;

}


/* ==========================================================
   ACESSO ADMINISTRATIVO
========================================================== */

.aviso-admin {

    position: relative;

    margin:
        5px
        0
        22px;

    padding: 17px;

    display: flex;

    align-items: flex-start;

    gap: 13px;

    overflow: hidden;

    border:
        1px solid
        #d4e2ee;

    border-radius: 15px;

    background:
        linear-gradient(
            135deg,
            #f5f9fd,
            var(--azul-admin-claro)
        );

    animation:
        aparecerAdmin
        0.28s
        ease;

}


.aviso-admin::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;

    width: 4px;
    height: 100%;

    background:
        var(--azul-admin);

}


.aviso-admin-icone {

    width: 39px;
    height: 39px;

    min-width: 39px;

    display: grid;

    place-items: center;

    border-radius: 11px;

    background:
        rgba(49, 93, 138, 0.10);

    font-size: 1rem;

}


.aviso-admin strong {

    display: block;

    margin-bottom: 4px;

    color:
        #294e73;

    font-size: 0.84rem;

}


.aviso-admin p {

    color: #61778b;

    font-size: 0.76rem;

    line-height: 1.6;

}


/* ==========================================================
   MODO ADMIN

   O cadastro.js poderá colocar a classe "modo-admin"
   no .cadastro-box.
========================================================== */

.cadastro-box.modo-admin {

    max-width: 520px;

}


.cadastro-box.modo-admin .logo img {

    width: 145px;

}


.cadastro-box.modo-admin h1 {

    color:
        var(--azul-admin);

}


.cadastro-box.modo-admin
#tituloSeguranca {

    margin-top: 20px;

    color:
        var(--azul-admin);

}


.cadastro-box.modo-admin
#grupoEmailPrincipal input {

    border-color:
        #a9bfd3;

    background:
        #f8fbfd;

}


.cadastro-box.modo-admin
#grupoEmailPrincipal input:focus {

    border-color:
        var(--azul-admin);

    box-shadow:
        0 0 0 4px
        rgba(49, 93, 138, 0.10);

}


.cadastro-box.modo-admin
#senha:focus {

    border-color:
        var(--azul-admin);

    box-shadow:
        0 0 0 4px
        rgba(49, 93, 138, 0.10);

}


.cadastro-box.modo-admin
.mostrar-senha {

    color:
        var(--azul-admin);

    background:
        var(--azul-admin-claro);

}


.cadastro-box.modo-admin
.mostrar-senha:hover {

    background: #deebf5;

}


/* ==========================================================
   BOTÃO ADMINISTRATIVO

   cadastro.js poderá adicionar "btn-admin".
========================================================== */

.btn-cadastrar.btn-admin {

    background:
        linear-gradient(
            135deg,
            #315d8a,
            #4278aa
        );

}


.btn-cadastrar.btn-admin:hover {

    box-shadow:
        0 12px 25px
        rgba(49, 93, 138, 0.23);

}


/* ==========================================================
   OBSERVAÇÃO ADMIN
========================================================== */

.observacao-admin {

    margin-top: 13px;

    padding:
        10px
        12px;

    border-radius: 10px;

    color: #708394;

    background: #f5f8fa;

    text-align: center;

    font-size: 0.70rem;

    line-height: 1.5;

}


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

.termos {

    margin:
        25px
        0;

    display: flex;

    align-items: flex-start;

    gap: 10px;

    cursor: pointer;

}


.termos input {

    width: 20px;
    height: 20px;

    min-height: auto;

    margin-top: 3px;

    padding: 0;

    flex-shrink: 0;

    accent-color:
        var(--verde-principal);

}


.termos span {

    color:
        #5f6b62;

    font-size: 0.80rem;

    line-height: 1.6;

}


/* ==========================================================
   MENSAGENS
========================================================== */

.mensagem-form {

    margin-top: 8px;

    padding:
        10px
        12px;

    border:
        1px solid
        #f0cccc;

    border-radius: 9px;

    color:
        var(--vermelho);

    background:
        var(--vermelho-claro);

    font-size: 0.76rem;

    line-height: 1.5;

}


.mensagem-admin {

    margin:
        5px
        0
        15px;

}


.mensagem-form.sucesso {

    border-color: #c9e4d0;

    color:
        var(--verde-escuro);

    background:
        var(--verde-claro);

}


/* ==========================================================
   BOTÃO PRINCIPAL
========================================================== */

.btn-cadastrar {

    width: 100%;

    min-height: 52px;

    padding:
        14px
        18px;

    border: 0;

    border-radius: 50px;

    color:
        var(--branco);

    background:
        linear-gradient(
            90deg,
            var(--verde-principal),
            #4ca95f
        );

    font-size: 0.92rem;

    font-weight: 650;

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        opacity 0.2s ease;

}


.btn-cadastrar:hover {

    transform:
        translateY(-2px);

    box-shadow:
        0 12px 25px
        rgba(45, 135, 72, 0.22);

}


.btn-cadastrar:active {

    transform:
        translateY(0);

}


.btn-cadastrar:disabled {

    cursor: not-allowed;

    opacity: 0.65;

    transform: none;

    box-shadow: none;

}


/* ==========================================================
   ESTADO DE CARREGAMENTO

   cadastro.js poderá adicionar .carregando.
========================================================== */

.btn-cadastrar.carregando {

    position: relative;

    color: transparent;

    pointer-events: none;

}


.btn-cadastrar.carregando::after {

    content: "";

    position: absolute;

    top: 50%;
    left: 50%;

    width: 19px;
    height: 19px;

    margin:
        -10px
        0
        0
        -10px;

    border:
        2px solid
        rgba(255, 255, 255, 0.35);

    border-top-color:
        var(--branco);

    border-radius: 50%;

    animation:
        girar
        0.7s
        linear
        infinite;

}


/* ==========================================================
   LINKS / VOLTAR
========================================================== */

.voltar {

    width: 100%;

    margin-top: 17px;

    display: block;

    border: 0;

    color:
        var(--verde-principal);

    background: transparent;

    text-align: center;

    text-decoration: none;

    font-size: 0.78rem;

    font-weight: 600;

    transition:
        color 0.2s ease;

}


.voltar:hover {

    color:
        var(--rosa-principal);

}


.botao-link {

    font-family: inherit;

}


/* ==========================================================
   RECUPERAÇÃO
========================================================== */

#areaRecuperacao {

    max-width: 560px;

}


#areaRecuperacao .logo img {

    width: 145px;

}


#areaRecuperacao .subtitle {

    margin-bottom: 25px;

}


/* ==========================================================
   ACESSIBILIDADE
========================================================== */

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible,
.perfil-card:focus-within {

    outline:
        3px solid
        rgba(233, 107, 151, 0.65);

    outline-offset: 3px;

}


/* ==========================================================
   ANIMAÇÕES
========================================================== */

@keyframes entrada {

    from {

        opacity: 0;

        transform:
            translateY(25px);

    }


    to {

        opacity: 1;

        transform:
            translateY(0);

    }

}


@keyframes aparecerAdmin {

    from {

        opacity: 0;

        transform:
            translateY(-5px);

    }


    to {

        opacity: 1;

        transform:
            translateY(0);

    }

}


@keyframes girar {

    to {

        transform:
            rotate(360deg);

    }

}


/* ==========================================================
   TABLET
========================================================== */

@media
(max-width: 700px) {

    body {

        padding:
            20px
            15px;

    }


    .cadastro-box {

        padding:
            30px
            25px;

        border-radius: 22px;

    }


    .form-grid {

        grid-template-columns:
            1fr;

        gap: 0;

    }

}


/* ==========================================================
   CELULAR
========================================================== */

@media
(max-width: 550px) {

    body {

        padding: 0;

        background:
            var(--branco);

    }


    .container {

        min-height: 100vh;

    }


    .cadastro-box,
    .cadastro-box.modo-admin,
    #areaRecuperacao {

        min-height: 100vh;

        max-width: none;

        padding:
            24px
            18px
            35px;

        border: 0;

        border-radius: 0;

        box-shadow: none;

    }


    .logo img,
    .cadastro-box.modo-admin .logo img,
    #areaRecuperacao .logo img {

        width: 135px;

    }


    h1 {

        font-size: 1.65rem;

    }


    .subtitle {

        margin-bottom: 25px;

        font-size: 0.82rem;

    }


    .tipo-conta-grid {

        grid-template-columns:
            1fr;

    }


    .perfil-card {

        min-height: auto;

        padding: 18px;

    }


    .form-section-title {

        font-size: 1rem;

    }


    input,
    select {

        min-height: 49px;

        font-size: 16px;

    }


    .aviso-admin {

        padding: 15px;

    }


    .aviso-admin p {

        font-size: 0.72rem;

    }


    .btn-cadastrar {

        min-height: 50px;

    }

}


/* ==========================================================
   CELULAR PEQUENO
========================================================== */

@media
(max-width: 370px) {

    .cadastro-box,
    .cadastro-box.modo-admin,
    #areaRecuperacao {

        padding-left: 14px;

        padding-right: 14px;

    }


    .aviso-admin {

        gap: 9px;

    }


    .aviso-admin-icone {

        width: 34px;
        height: 34px;

        min-width: 34px;

    }

}


/* ==========================================================
   REDUÇÃO DE MOVIMENTO
========================================================== */

@media
(prefers-reduced-motion: reduce) {

    *,
    *::before,
    *::after {

        scroll-behavior: auto !important;

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        transition-duration:
            0.01ms !important;

    }

}