/**
 * Telas de entrada do onboarding (registro e continuar): palco da marca + formulário.
 * Identidade: mesma do painel (roxo #6b3c90, laranja #f18d05, favos).
 */
.reg-layout {
    display: flex;
    min-height: 100vh;
    background: #fff;
}

/* ---------- palco ---------- */
.reg-palco {
    display: none;
    position: relative;
    overflow: hidden;
    flex-direction: column;
    justify-content: space-between;
    width: 56%;
    padding: 40px 56px;
    color: #fff;
    isolation: isolate;
    background: radial-gradient(120% 90% at 0% 0%, #7d49a6 0%, #6b3c90 38%, #401b5d 100%);
}

@media (min-width: 1024px) {
    .reg-palco {
        display: flex;
    }
}

.reg-favos {
    position: absolute;
    inset: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
    opacity: .5;
    pointer-events: none;
}

.reg-favos polygon {
    fill: none;
    stroke: rgba(255, 255, 255, .13);
    stroke-width: 1.2;
}

.reg-favos polygon.on {
    fill: rgba(255, 138, 0, .16);
    stroke: rgba(255, 190, 110, .55);
    animation: reg-pulso 5.5s ease-in-out infinite;
}

@keyframes reg-pulso {

    0%,
    100% {
        opacity: .35;
    }

    50% {
        opacity: 1;
    }
}

.reg-brilho {
    position: absolute;
    z-index: -1;
    width: 520px;
    height: 520px;
    right: -180px;
    bottom: -200px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 138, 0, .38), rgba(255, 138, 0, 0) 68%);
    filter: blur(10px);
}

.reg-palco-topo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.reg-palco-topo img {
    height: 36px;
    width: auto;
}

.reg-selo {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    padding: 5px 12px;
    border: 1px solid rgba(255, 255, 255, .35);
    border-radius: 999px;
    color: rgba(255, 255, 255, .92);
}

.reg-palco-centro {
    max-width: 540px;
}

.reg-palco-centro h2 {
    font-size: clamp(30px, 3.2vw, 44px);
    line-height: 1.1;
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 14px;
}

.reg-lead {
    font-size: 17px;
    line-height: 1.55;
    color: rgba(255, 255, 255, .85);
    margin-bottom: 30px;
    max-width: 470px;
}

.reg-linha-tempo {
    list-style: none;
    display: grid;
    gap: 0;
    position: relative;
}

.reg-linha-tempo li {
    position: relative;
    display: flex;
    gap: 16px;
    padding-bottom: 22px;
}

.reg-linha-tempo li:last-child {
    padding-bottom: 0;
}

.reg-linha-tempo li:not(:last-child)::before {
    content: "";
    position: absolute;
    left: 15px;
    top: 34px;
    bottom: 2px;
    width: 2px;
    background: rgba(255, 255, 255, .25);
}

.reg-num {
    flex: 0 0 32px;
    height: 32px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-weight: 800;
    font-size: 14px;
    background: rgba(255, 255, 255, .16);
    border: 1.5px solid rgba(255, 255, 255, .4);
}

.reg-linha-tempo li.atual .reg-num {
    background: #f18d05;
    border-color: #f18d05;
    box-shadow: 0 0 0 5px rgba(241, 141, 5, .25);
}

.reg-linha-tempo b {
    display: block;
    font-size: 16px;
    font-weight: 700;
}

.reg-linha-tempo small {
    display: block;
    font-size: 14px;
    color: rgba(255, 255, 255, .78);
    margin-top: 2px;
}

.reg-palco-rodape {
    font-size: 13px;
    color: rgba(255, 255, 255, .7);
}

/* ---------- lado do formulário ---------- */
.reg-lado {
    flex: 1;
    display: flex;
    justify-content: center;
    padding: 0 20px;
    min-width: 0;
}

.reg-caixa {
    width: 100%;
    max-width: 480px;
    margin: auto;
    padding: 40px 0 48px;
}

.reg-mobile-topo {
    text-align: center;
    margin-bottom: 20px;
}

.reg-mobile-topo img {
    height: 40px;
    width: auto;
}

@media (min-width: 1024px) {
    .reg-mobile-topo {
        display: none;
    }
}

.reg-ola {
    font-size: 13.5px;
    font-weight: 800;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: #f18d05;
    margin-bottom: 8px;
}

.reg-caixa h1 {
    font-size: 32px;
    line-height: 1.15;
    font-weight: 800;
    letter-spacing: -.02em;
    margin-bottom: 8px;
}

.reg-sub {
    color: #6b7280;
    font-size: 16px;
    margin-bottom: 18px;
}

/* requisitos da API Oficial */
.req {
    margin-bottom: 20px;
    border: 1px solid #e3d3f0;
    border-radius: 12px;
    background: #f6f0fa;
    font-size: 14.5px;
}

.req summary {
    list-style: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    font-weight: 700;
    color: #401b5d;
}

.req summary::-webkit-details-marker {
    display: none;
}

.req summary .fa-chevron-down {
    margin-left: auto;
    font-size: 12px;
    transition: transform .2s;
}

.req[open] summary .fa-chevron-down {
    transform: rotate(180deg);
}

.req-corpo {
    padding: 0 14px 14px;
    color: #374151;
}

.req-corpo ul {
    list-style: none;
    display: grid;
    gap: 7px;
    margin: 8px 0 10px;
}

.req-corpo li {
    display: flex;
    gap: 8px;
}

.req-corpo li::before {
    content: "\2713";
    color: #16a34a;
    font-weight: 800;
}

.req-corpo a {
    color: #6b3c90;
    font-weight: 700;
    text-decoration: underline;
}

.req-prazo {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #fff;
    border: 1px solid #e3d3f0;
    border-radius: 999px;
    padding: 2px 10px;
    font-size: 13px;
    font-weight: 700;
}

/* campos */
.reg-caixa .form-field label {
    font-size: 15px;
    font-weight: 700;
}

.reg-caixa .form-input {
    height: 52px;
    font-size: 16.5px;
    border-radius: 10px;
}

.reg-caixa .error-message {
    font-size: 13.5px;
}

.login-resumo {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
    margin: -4px 0 16px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #f6f7f9;
    font-size: 14.5px;
    color: #4b5563;
}

.login-resumo b {
    color: #1f2937;
    word-break: break-all;
}

.login-resumo button {
    color: #6b3c90;
    font-weight: 700;
    text-decoration: underline;
    background: none;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.login-resumo .login-status {
    margin-left: auto;
}

.senha-dica {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 8px;
    font-size: 14px;
    color: #6b7280;
}

.senha-dica i {
    color: #cbd0d8;
}

.senha-dica.ok {
    color: #16a34a;
}

.senha-dica.ok i {
    color: #16a34a;
}

.aviso-continuar {
    margin-top: 8px;
    padding: 10px 12px;
    border-radius: 10px;
    background: #fff7ed;
    border: 1px solid #fed7aa;
    font-size: 14px;
    color: #7a4e00;
}

.aviso-continuar .acoes {
    display: flex;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 6px;
}

.aviso-continuar button,
.aviso-continuar a {
    color: #6b3c90;
    font-weight: 700;
    text-decoration: underline;
    background: none;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-weight: 700;
}

.aceite-reg {
    display: flex;
    gap: 10px;
    align-items: flex-start;
    margin: 4px 0 6px;
    font-size: 14px;
    color: #4b5563;
    cursor: pointer;
}

.aceite-reg input {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: #6b3c90;
    flex: none;
}

.aceite-reg a {
    color: #6b3c90;
    font-weight: 700;
    text-decoration: underline;
}

.reg-caixa .btn-primary {
    height: 56px;
    font-size: 17px;
    border-radius: 10px;
    margin-top: 12px;
}

.reg-links {
    display: grid;
    gap: 8px;
    margin-top: 18px;
    text-align: center;
    font-size: 14.5px;
    color: #6b7280;
}

.reg-links a {
    color: #6b3c90;
    font-weight: 700;
}

.reg-seguro {
    margin-top: 14px;
    text-align: center;
    font-size: 13.5px;
    color: #6b7280;
}

.progress-label {
    text-align: center;
    margin-top: 10px;
    font-size: 14px;
    color: #6b7280;
}

.progress-label b {
    color: #6b3c90;
}

/* ---------- campos novos do registro ---------- */
.banner-demo {
    display: flex;
    gap: 12px;
    align-items: flex-start;
    margin-bottom: 16px;
    padding: 12px 14px;
    border-radius: 12px;
    background: #ecfdf3;
    border: 1px solid #b6e5d1;
    color: #14532d;
    font-size: 14.5px;
}

.banner-demo[hidden] {
    display: none;
}

.banner-demo i {
    color: #16a34a;
    margin-top: 3px;
}

.banner-seg {
    display: block;
    margin-top: 4px;
    font-weight: 700;
}

.wa-wrap {
    display: flex;
    align-items: stretch;
    position: relative;
}

.wa-pref {
    display: flex;
    align-items: center;
    padding: 0 12px;
    border: 1px solid var(--border-color, #e5e7eb);
    border-right: 0;
    border-radius: 10px 0 0 10px;
    background: #f6f7f9;
    font-weight: 700;
    color: #4b5563;
    font-size: 16px;
}

.wa-wrap .form-input {
    border-radius: 0 10px 10px 0;
    padding-right: 38px;
}

.wa-ok {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: #16a34a;
}

.wa-ok[hidden] {
    display: none;
}

.campo-ajuda {
    display: block;
    margin-top: 6px;
    font-size: 13.5px;
    color: #6b7280;
}

.login-resumo[hidden],
#loginCampo[hidden] {
    display: none;
}

.login-resumo {
    margin-top: 0;
}

.reg-palco.reg-palco-60 {
    width: 60%;
}
