/* =====================================
   MATERIAL DE APOIO ECODIFFUSORE
===================================== */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    min-height: 100%;
}

body {
    background: #f5f8f2;
    color: #202124;
    font-family: Arial, Helvetica, sans-serif;
}

a {
    text-decoration: none;
}

a:hover {
    text-decoration: none;
}


/* =====================================
   ESTRUTURA
===================================== */

.apoio {
    min-height: 100vh;
    padding: 65px 20px;
}

.container {
    width: 100%;
    max-width: 950px;
    margin: 0 auto;
}


/* =====================================
   CABEÇALHO
===================================== */

.apoio-header {
    text-align: center;
    margin-bottom: 42px;
}

.apoio-header h1 {
    color: #202124;
    font-size: 34px;
    font-weight: 500;
    line-height: 1.15;
}

.apoio-header h1::after {
    content: "";
    display: block;

    width: 55px;
    height: 4px;

    margin: 14px auto 0;

    background: #86c33a;

    border-radius: 10px;
}


/* =====================================
   GRID DOS CARDS
===================================== */

.apoio-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 345px));

    justify-content: center;

    gap: 30px;
}


/* =====================================
   CARD
===================================== */

.apoio-card {
    position: relative;

    min-height: 225px;

    padding: 28px 25px;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    text-align: center;

    background: #ffffff;

    border: 1px solid #d8ded3;
    border-radius: 22px;

    box-shadow:
        0 8px 22px rgba(45, 70, 35, .07);

    overflow: hidden;

    transition:
        transform .25s ease,
        box-shadow .25s ease,
        border-color .25s ease;
}

.apoio-card::before {
    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 4px;

    background: #86c33a;

    transform: scaleX(0);

    transform-origin: center;

    transition: transform .25s ease;
}

.apoio-card:hover {
    transform: translateY(-7px);

    border-color: #a5d477;

    box-shadow:
        0 16px 34px rgba(45, 70, 35, .13);
}

.apoio-card:hover::before {
    transform: scaleX(1);
}


/* =====================================
   ÍCONE
===================================== */

.apoio-icone {
    width: 60px;
    height: 60px;

    margin-bottom: 19px;

    display: flex;
    align-items: center;
    justify-content: center;

    border-radius: 50%;

    background:
        linear-gradient(
            145deg,
            #a5d96d,
            #86c33a
        );

    color: #ffffff;

    font-size: 39px;
    font-weight: 400;

    line-height: 1;

    box-shadow:
        0 7px 16px rgba(134, 195, 58, .25);

    transition:
        transform .25s ease,
        box-shadow .25s ease;
}

.apoio-card:hover .apoio-icone {
    transform: scale(1.08);

    box-shadow:
        0 10px 22px rgba(134, 195, 58, .32);
}

.apoio-icone span {
    display: block;

    margin-top: -6px;

    color: #ffffff;
}


/* =====================================
   TEXTO DOS CARDS
===================================== */

.apoio-card h2 {
    margin: 0;

    color: #22252a;

    font-size: 30px;
    font-weight: 400;

    line-height: 1.18;
}


/* =====================================
   LISTA DE MATERIAIS
===================================== */

.lista-materiais {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
}

.material-item {
    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 20px;

    padding: 18px 22px;
    margin-bottom: 12px;

    background: #ffffff;

    border: 1px solid #d8ded3;
    border-radius: 12px;

    box-shadow:
        0 4px 12px rgba(45, 70, 35, .04);

    transition:
        border-color .2s ease,
        box-shadow .2s ease,
        transform .2s ease;
}

.material-item:hover {
    transform: translateY(-2px);

    border-color: #a5d477;

    box-shadow:
        0 8px 20px rgba(45, 70, 35, .08);
}


/* =====================================
   NOME DO MATERIAL
===================================== */

.material-nome {
    min-width: 0;

    color: #30343a;

    font-size: 17px;
    line-height: 1.4;

    word-break: break-word;
}


/* =====================================
   BOTÃO DOWNLOAD
===================================== */

.material-download {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    flex-shrink: 0;

    padding: 10px 18px;

    background: #86c33a;
    color: #ffffff;

    border-radius: 8px;

    font-size: 14px;
    font-weight: 700;

    box-shadow:
        0 5px 12px rgba(134, 195, 58, .18);

    transition:
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.material-download:hover {
    background: #78b330;
    color: #ffffff;

    transform: translateY(-1px);

    box-shadow:
        0 8px 16px rgba(134, 195, 58, .24);
}


/* =====================================
   NENHUM ARQUIVO
===================================== */

.nenhum-arquivo {
    padding: 35px 20px;

    text-align: center;

    color: #73787d;

    font-size: 16px;

    background: #ffffff;

    border: 1px solid #d8ded3;
    border-radius: 12px;
}


/* =====================================
   VOLTAR
===================================== */

.voltar {
    margin-top: 32px;

    text-align: center;
}

.voltar a {
    color: #78b330;

    font-size: 15px;
    font-weight: 700;

    transition: color .2s ease;
}

.voltar a:hover {
    color: #5f9425;
}


/* =====================================
   LOGIN
===================================== */

.login-box {
    width: 100%;
    max-width: 430px;

    margin: 65px auto 0;
    padding: 42px 36px;

    background: #ffffff;

    border: 1px solid #d8ded3;
    border-radius: 22px;

    box-shadow:
        0 14px 38px rgba(45, 70, 35, .09);

    text-align: center;
}

.login-logo {
    margin-bottom: 22px;
}

.login-logo img {
    width: 190px;
    max-width: 80%;
    height: auto;
}

.login-box h1 {
    margin-bottom: 8px;

    color: #202124;

    font-size: 30px;
    font-weight: 500;
}

.login-subtitulo {
    margin-bottom: 28px;

    color: #73787d;

    font-size: 15px;
    line-height: 1.5;
}

.login-box form {
    text-align: left;
}

.login-box label {
    display: block;

    margin-bottom: 8px;

    color: #30343a;

    font-size: 14px;
    font-weight: 600;
}

.login-box input {
    width: 100%;

    padding: 14px 15px;
    margin-bottom: 18px;

    background: #ffffff;

    border: 1px solid #c8cdd1;
    border-radius: 10px;

    color: #202124;

    font-size: 16px;

    outline: none;

    transition:
        border-color .2s ease,
        box-shadow .2s ease;
}

.login-box input:focus {
    border-color: #86c33a;

    box-shadow:
        0 0 0 3px rgba(134, 195, 58, .15);
}

.login-box button {
    width: 100%;

    padding: 14px 18px;

    border: none;
    border-radius: 10px;

    background: #86c33a;
    color: #ffffff;

    font-size: 16px;
    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 6px 15px rgba(134, 195, 58, .18);

    transition:
        background .2s ease,
        transform .2s ease,
        box-shadow .2s ease;
}

.login-box button:hover {
    background: #78b330;

    transform: translateY(-1px);

    box-shadow:
        0 9px 18px rgba(134, 195, 58, .24);
}

.login-erro {
    margin-bottom: 18px;
    padding: 12px 14px;

    border-radius: 9px;

    background: #fff1f1;

    border: 1px solid #efc4c4;

    color: #a33a3a;

    font-size: 14px;
}


/* =====================================
   RODAPÉ
===================================== */

.apoio-footer {
    margin-top: 45px;

    text-align: center;

    color: #8a8f94;

    font-size: 13px;
}


/* =====================================
   TABLET
===================================== */

@media (max-width: 760px) {

    .apoio {
        padding: 50px 16px;
    }

    .apoio-header {
        margin-bottom: 32px;
    }

    .apoio-header h1 {
        font-size: 30px;
    }

    .apoio-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));

        gap: 22px;
    }

    .apoio-card {
        min-height: 210px;
    }

    .apoio-card h2 {
        font-size: 26px;
    }

}


/* =====================================
   CELULAR
===================================== */

@media (max-width: 560px) {

    .apoio {
        padding: 38px 15px;
    }

    .apoio-header {
        margin-bottom: 28px;
    }

    .apoio-header h1 {
        font-size: 27px;
    }

    .apoio-grid {
        grid-template-columns: 1fr;

        max-width: 360px;

        margin: 0 auto;

        gap: 20px;
    }

    .apoio-card {
        min-height: 195px;

        padding: 24px 20px;
    }

    .apoio-icone {
        width: 54px;
        height: 54px;

        margin-bottom: 16px;

        font-size: 35px;
    }

    .apoio-card h2 {
        font-size: 25px;
    }

    .material-item {
        flex-direction: column;

        align-items: stretch;

        gap: 14px;

        padding: 17px;
    }

    .material-nome {
        width: 100%;

        font-size: 16px;
    }

    .material-download {
        width: 100%;
    }

    .voltar {
        margin-top: 26px;
    }

    .apoio-footer {
        margin-top: 32px;
    }

    .login-box {
        margin-top: 20px;

        padding: 32px 22px;

        border-radius: 18px;
    }

    .login-box h1 {
        font-size: 27px;
    }

    .login-logo img {
        width: 170px;
    }

}

/* =====================================
   TOPO / SAIR
===================================== */

.apoio-topo {
    display: flex;
    justify-content: flex-end;

    margin-bottom: 10px;
}

.btn-sair {
    display: inline-flex;

    align-items: center;
    justify-content: center;

    padding: 8px 16px;

    border: 1px solid #d4d7da;
    border-radius: 8px;

    background: #ffffff;
    color: #6f7479;

    font-size: 13px;
    font-weight: 700;

    transition:
        background .2s ease,
        color .2s ease,
        border-color .2s ease;
}

.btn-sair:hover {
    background: #f4f4f4;

    border-color: #bfc4c8;

    color: #3f4449;
}


/* =====================================
   MOBILE
===================================== */

@media (max-width: 560px) {

    .apoio-topo {
        margin-bottom: 5px;
    }

    .btn-sair {
        padding: 7px 14px;
        font-size: 12px;
    }

}