.painel_content {
    width: 90%;
    max-width: 1200px;
    height: auto;
    margin: 30px auto;
    display: flex;
    border-radius: 25px;
    overflow: hidden;
    background: #f0f7ff;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* PAINEL ESQUERDO */
.p_left {
    width: 50%;
    padding: 65px;
    background: #d0e7ff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    border-top-left-radius: 25px;
    border-bottom-left-radius: 25px;
    overflow: hidden;
}

.logo-block {
    text-align: center;
    margin-top: 0;
}

.logo-block img {
    max-width: 70%;
    height: auto;
    display: block;
    margin: 0 auto;
    margin-left: -65px;
    margin-bottom: -65px;
}

/* PAINEL DIREITO */
.p_right {
    width: 50%;
    background: white;
    padding: 40px 50px;
    color: #6a32d4;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-top-right-radius: 25px;
    border-bottom-right-radius: 25px;
}

.p_right h2 {
    font-size: 40px;
    margin-bottom: 35px;
}

/* FORMULÁRIO */
.p_right form {
    width: 100%;
    max-width: 450px;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.p_right .form-row {
    display: flex;
    flex-wrap: wrap;
    margin-right: -5px;
    margin-left: -5px;
    width: 100%;
}

.p_right .form-row .col-md-6 {
    padding-right: 5px;
    padding-left: 5px;
}

.p_right .form-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 5px;
    width: 100%;
}

.p_right label {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 6px;
    color: #333 !important;
}

.p_right .form-control {
    width: 100% !important;
    height: 48px !important;
    border-radius: 30px !important;
    border: 1px solid #dcdcdc !important;
    padding: 0 20px !important;
    font-size: 15px !important;
    box-sizing: border-box;
    background-color: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.p_right .form-control:focus {
    border-color: #6a32d4 !important;
    box-shadow: 0 0 0 0.2rem rgba(106, 50, 212, 0.15) !important;
    outline: none;
}

.p_right .btn-purple {
    background: #6a32d4 !important;
    color: white !important;
    border: none !important;
    height: 45px;
    padding: 0 35px;
    border-radius: 30px !important;
    font-size: 16px;
    font-weight: bold;
    cursor: pointer;
    align-self: flex-start;
    margin-top: 10px;
    transition: background 0.2s;
}

.p_right .btn-purple:hover {
    background: #5325a6 !important;
}

.invalid-feedback {
    font-size: 12px;
    margin-top: 4px;
    margin-left: 15px;
}

.signup {
    text-align: center;
    color: #6a32d4;
    text-decoration: underline;
    font-size: 14px;
}

/* RESPONSIVIDADE (MOBILE) */
@media (max-width: 768px) {
    .painel_content {
        flex-direction: column;
        width: 95%;
        margin: 20px auto;
    }

    .p_left,
    .p_right {
        width: 100%;
        padding: 30px 20px;
    }

    .p_left {
        padding: 30px 20px 0 20px;
        align-items: center;
        text-align: center;
    }

    .logo-block img {
        max-width: 60%;
        display: block;
        margin-bottom: 0 auto;
    }

    .form-row {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .p_right h2 {
        font-size: 28px;
        margin-bottom: 20px;
    }
}

/* ACCORDION */
.custom-accordion .accordion-item {
    background-color: transparent;
    margin-bottom: 5px;
    position: relative;
    border-radius: 0px;
    overflow: hidden;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}

.custom-accordion .accordion-item .btn-link {
    display: block;
    width: 100%;
    padding: 18px 0;
    text-decoration: none;
    text-align: left;
    color: #333;
    border: none;
    padding-left: 40px;
    border-radius: 0;
    position: relative;
    background: transparent;
    transition: color 0.2s ease;
}

.custom-accordion .accordion-item .btn-link:before {
    font-family: 'icomoon' !important;
    content: "\f067";
    position: absolute;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    left: 15px;
}

.custom-accordion .accordion-item .btn-link[aria-expanded="true"] {
    font-weight: 700;
    color: #333;
}

.custom-accordion .accordion-item .btn-link[aria-expanded="true"]:before {
    font-family: 'icomoon' !important;
    content: "\f068";
    position: absolute;
    color: #333;
    top: 50%;
    -webkit-transform: translateY(-50%);
    -ms-transform: translateY(-50%);
    transform: translateY(-50%);
    left: 15px;
}

.custom-accordion .accordion-item.active {
    z-index: 2;
}

.custom-accordion .accordion-item .accordion-body {
    padding: 10px 20px 25px 40px;
    color: #555;
}

.custom-accordion .accordion-body ul {
    padding-left: 15px;
    margin-bottom: 0;
}

.custom-accordion .accordion-body li {
    margin-bottom: 8px;
}


/* ==============================================
   MODO ESCURO (DARK MODE)
   ============================================== */
body.dark-mode {
    background-color: #121212;
    /* Ajuste a cor de fundo do seu body geral se necessário */
}

/* Painel Principal */
body.dark-mode .painel_content {
    background: #1e1e1e;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5);
}

/* Painel Esquerdo (Lado do Logo) */
body.dark-mode .p_left {
    background: #142334;
    /* Um azul bem escuro para contrastar mantendo a identidade */
}

/* Painel Direito (Lado do Formulário) */
body.dark-mode .p_right {
    background: #1e1e1e;
    color: #a77ffc;
    /* Roxo mais claro para melhor legibilidade no escuro */
}

body.dark-mode .signup {
    color: #a77ffc;
}

/* Formulários e Inputs */
body.dark-mode .p_right label {
    color: #e0e0e0 !important;
}

body.dark-mode .p_right .form-control {
    background-color: #2d2d2d !important;
    border-color: #444444 !important;
    color: #ffffff !important;
}

body.dark-mode .p_right .form-control:focus {
    border-color: #a77ffc !important;
    box-shadow: 0 0 0 0.2rem rgba(167, 127, 252, 0.25) !important;
}

/* Botão Roxo no Dark Mode (Ajuste leve de tom e hover) */
body.dark-mode .p_right .btn-purple {
    background: #7a3ee8 !important;
}

body.dark-mode .p_right .btn-purple:hover {
    background: #6a32d4 !important;
}

/* Custom Accordion */
body.dark-mode .custom-accordion .accordion-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.dark-mode .custom-accordion .accordion-item .btn-link {
    color: #e0e0e0;
}

body.dark-mode .custom-accordion .accordion-item .btn-link[aria-expanded="true"] {
    color: #a77ffc;
}

body.dark-mode .custom-accordion .accordion-item .btn-link:before,
body.dark-mode .custom-accordion .accordion-item .btn-link[aria-expanded="true"]:before {
    color: #e0e0e0;
}

body.dark-mode .custom-accordion .accordion-item .accordion-body {
    color: #b0b0b0;
}

/* --- CORREÇÕES GERAIS / CORES CUSTOMIZADAS --- */
.text-purple {
    color: #6a32d4 !important;
}

.btn-purple {
    background: #6a32d4 !important;
    color: white !important;
    border: none !important;
    border-radius: 30px !important;
    padding: 10px 35px;
    font-weight: bold;
    transition: background 0.2s;
}

.btn-purple:hover {
    background: #5325a6 !important;
}

.text-orange {
    color: #ff7a00 !important;
}

/* --- MODO ESCURO APLICADO (Via JavaScript body.dark-mode) --- */
body.dark-mode {
    background-color: #121212 !important;
}

body.dark-mode .navbar {
    background-color: #1e1e1e !important;
    border-bottom: 1px solid #2d2d2d !important;
}

body.dark-mode .navbar .nav-link,
body.dark-mode .navbar .bi-person {
    color: #e0e0e0 !important;
}

body.dark-mode .painel_content {
    background: #1e1e1e !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5) !important;
}

body.dark-mode .p_left {
    background: #142334 !important;
    /* Azul escuro naval para manter o padrão da marca */
}

body.dark-mode .p_left h1 {
    color: #ffffff !important;
}

body.dark-mode .p_right {
    background: #1e1e1e !important;
}

/* Ajuste de contraste para textos no Modo Escuro */
body.dark-mode .p_right h2 {
    color: #a77ffc !important;
    /* Roxo mais claro para leitura no escuro */
}

body.dark-mode .container-dados p {
    color: #e0e0e0 !important;
}

body.dark-mode .container-dados strong {
    color: #ffffff !important;
}

body.dark-mode .btn-purple {
    background: #7a3ee8 !important;
}

body.dark-mode .btn-purple:hover {
    background: #6a32d4 !important;
}