﻿/* ===============================
   HERO / ESTRUTURA GERAL
================================*/
.hero-cadastro {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    padding: 110px 36px 60px;
    box-sizing: border-box;
    display: grid;
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    gap: 40px;
    align-items: stretch;
}

    .hero-cadastro .hero-esquerda {
        justify-content: flex-start;
        gap: 24px;
        min-width: 0;
    }

    .hero-cadastro .hero-conteudo {
        gap: 14px;
    }

.hero-direita {
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    min-width: 0;
}

/* ===============================
   TOPO / ALINHAMENTO
================================*/
.topo,
.hero {
    width: 100%;
    max-width: 1380px;
    margin: 0 auto;
    box-sizing: border-box;
}

.topo {
    padding: 24px 36px 14px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    position: fixed;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    z-index: 30;
    background: transparent;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: none;
}

.hero {
    padding-top: 110px;
}

/* ===============================
   PAINEL
================================*/
.painel-cadastro {
    width: 100%;
    max-width: 560px;
    margin: 0;
    margin-left: auto;
    padding: 24px;
    border-radius: 30px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.06);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    box-sizing: border-box;
}

/* ===============================
   FORM
================================*/
.form-cadastro {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin-top: 4px;
}

.linha-dupla {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

.campo-cadastro {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

    .campo-cadastro label {
        color: #eefaf4;
        font-size: 0.95rem;
        font-weight: 700;
    }

    .campo-cadastro input,
    .campo-cadastro select,
    .campo-cadastro textarea {
        width: 100%;
        border: 1px solid rgba(255, 255, 255, 0.08);
        background: rgba(255, 255, 255, 0.035);
        color: #ffffff;
        border-radius: 18px;
        padding: 0 16px;
        outline: none;
        transition: all 0.25s ease;
        backdrop-filter: blur(10px);
        box-sizing: border-box;
    }

    .campo-cadastro input,
    .campo-cadastro select {
        height: 52px;
    }

    .campo-cadastro textarea {
        min-height: 110px;
        padding: 14px 16px;
        resize: vertical;
    }

        .campo-cadastro input::placeholder,
        .campo-cadastro textarea::placeholder {
            color: rgba(255, 255, 255, 0.42);
        }

        .campo-cadastro input:focus,
        .campo-cadastro select:focus,
        .campo-cadastro textarea:focus {
            border-color: rgba(56, 189, 248, 0.35);
            box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.08);
            background: rgba(255, 255, 255, 0.05);
        }

    .campo-cadastro select {
        appearance: none;
        cursor: pointer;
    }

/* ===============================
   CHECKBOX
================================*/
.check-termos {
    display: grid;
    grid-template-columns: 22px 1fr;
    align-items: center;
    column-gap: 12px;
    margin-top: 10px;
    cursor: pointer;
    position: relative;
    user-select: none;
}

    .check-termos input {
        position: absolute;
        opacity: 0;
        pointer-events: none;
    }

.check-box-visual {
    width: 20px;
    height: 20px;
    border-radius: 6px;
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.04);
    transition: all 0.25s ease;
    position: relative;
}

.check-termos:hover .check-box-visual {
    border-color: rgba(56, 189, 248, 0.5);
    background: rgba(255, 255, 255, 0.06);
}

.check-termos input:checked + .check-box-visual {
    background: linear-gradient(135deg, #22c55e, #38bdf8);
    border: none;
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.08);
}

    .check-termos input:checked + .check-box-visual::after {
        content: "";
        position: absolute;
        left: 6px;
        top: 2px;
        width: 5px;
        height: 10px;
        border: solid #ffffff;
        border-width: 0 2px 2px 0;
        transform: rotate(45deg);
    }

.check-termos input:focus-visible + .check-box-visual {
    box-shadow: 0 0 0 4px rgba(56, 189, 248, 0.15);
}

.check-texto {
    font-size: 0.92rem;
    color: var(--cor-texto-suave);
    line-height: 1.4;
}

    .check-texto a {
        color: #38bdf8;
        text-decoration: none;
        font-weight: 600;
    }

        .check-texto a:hover {
            text-decoration: underline;
        }

/* ===============================
   BOTÕES
================================*/
.acoes-cadastro {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 12px;
    margin-top: 8px;
}

.btn-cadastro-principal,
.btn-cadastro-secundario {
    min-height: 52px;
    height: 52px;
    border-radius: 18px;
    font-size: 0.96rem;
    font-weight: 800;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
    transition: all 0.25s ease;
    width: 100%;
    padding: 0 18px;
    white-space: nowrap;
    box-sizing: border-box;
}

.btn-cadastro-principal {
    border: none;
    cursor: pointer;
    color: #ffffff;
    background: linear-gradient(135deg, #22c55e, #38bdf8);
    box-shadow: 0 10px 30px rgba(34, 197, 94, 0.18);
}

    .btn-cadastro-principal:hover {
        transform: translateY(-1px);
        filter: brightness(1.03);
    }

.btn-cadastro-secundario {
    background: rgba(255, 255, 255, 0.05);
    color: var(--cor-texto);
    border: 1px solid rgba(255, 255, 255, 0.10);
    backdrop-filter: blur(12px);
}

    .btn-cadastro-secundario:hover {
        background: rgba(255, 255, 255, 0.08);
        transform: translateY(-1px);
    }

/* ===============================
   MIDIAS
================================*/
.midias-cadastro {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    width: 100%;
    max-width: 680px;
}

.card-midia {
    overflow: hidden;
    border-radius: 22px;
    padding: 0;
    min-height: 235px;
    display: flex;
    flex-direction: column;
}

.midia-preview {
    position: relative;
    height: 145px;
    overflow: hidden;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    background: rgba(255, 255, 255, 0.03);
}

    .midia-preview img,
    .midia-preview video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.midia-info {
    padding: 14px 16px 16px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

    .midia-info span {
        font-size: 0.78rem;
        font-weight: 700;
        letter-spacing: 0.05em;
        text-transform: uppercase;
        color: var(--cor-primaria-clara);
    }

    .midia-info strong {
        color: #ffffff;
        font-size: 0.96rem;
        line-height: 1.5;
        font-weight: 800;
    }

/* ===============================
   AJUSTES INTERMEDIÁRIOS
================================*/
@media (max-width: 1180px) {
    .hero-cadastro {
        grid-template-columns: 1fr;
        gap: 32px;
        align-items: start;
    }

    .painel-cadastro {
        max-width: 100%;
        margin-left: 0;
    }

    .hero-direita {
        justify-content: flex-start;
    }

    .midias-cadastro {
        max-width: 100%;
    }
}

@media (max-width: 1100px) {
    .topo {
        padding: 22px 18px 12px;
        flex-wrap: wrap;
    }

    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        margin-left: auto;
    }

    .topo-acoes {
        width: 100%;
        display: none;
        flex-direction: column;
        align-items: stretch;
        padding: 12px;
        border-radius: 22px;
    }

        .topo-acoes.ativo {
            display: flex;
        }

    .link-topo,
    .btn-topo-secundario,
    .btn-topo-primario {
        width: 100%;
        justify-content: flex-start;
    }

    .topo-divisor {
        width: 100%;
        height: 1px;
        margin: 4px 0;
    }
}

@media (max-width: 1024px) {
    .midias-cadastro {
        max-width: 100%;
    }
}

/* ===============================
   MOBILE
================================*/
@media (max-width: 768px) {
    .linha-dupla,
    .acoes-cadastro,
    .midias-cadastro {
        grid-template-columns: 1fr;
    }

    .topo,
    .hero,
    .hero-cadastro {
        padding-left: 20px;
        padding-right: 20px;
    }

    .topo {
        padding-top: 18px;
        gap: 16px;
    }

    .topo-acoes {
        position: absolute;
        top: calc(100% + 10px);
        right: 20px;
        left: 20px;
        width: auto;
        background: rgba(10, 25, 34, 0.95);
        backdrop-filter: blur(16px);
        -webkit-backdrop-filter: blur(16px);
        border-radius: 16px;
        padding: 16px;
        gap: 12px;
        border: 1px solid rgba(255, 255, 255, 0.08);
        box-shadow: 0 20px 50px rgba(0, 0, 0, 0.28);
        z-index: 50;
    }

    .hero,
    .hero-cadastro {
        padding-top: 90px;
    }

    .painel-cadastro {
        padding: 18px;
        border-radius: 24px;
    }

    .form-cadastro {
        gap: 12px;
    }

    .campo-cadastro input,
    .campo-cadastro select {
        height: 50px;
    }

    .btn-cadastro-principal,
    .btn-cadastro-secundario {
        width: 100%;
    }

    .check-termos {
        grid-template-columns: 20px 1fr;
        column-gap: 10px;
    }

    .check-texto {
        font-size: 0.9rem;
    }

    .card-midia {
        min-height: 220px;
    }

    .midia-preview {
        height: 150px;
    }

    .hero-direita {
        justify-content: stretch;
    }
}

@media (max-width: 480px) {
    .hero-cadastro {
        gap: 24px;
    }

    .painel-cadastro {
        padding: 16px;
    }
}
