/* ── Cadastro de Responsável ── */

.cadastro-wrapper {
    display: flex;
    min-height: calc(100vh - 56px);
}

/* ── PAINEL ESQUERDO ── */
.cadastro-panel-esq {
    flex: 1;
    background: linear-gradient(145deg, #1A3A9E 0%, #2451C8 55%, #1e4bc0 100%);
    display: flex;
    align-items: stretch;
    position: relative;
    overflow: hidden;
}

/* padrão geométrico de fundo */
.cadastro-panel-esq::before {
    content: "";
    position: absolute; inset: 0;
    background-image:
        radial-gradient(circle at 80% 20%, rgba(255,255,255,.07) 0%, transparent 50%),
        radial-gradient(circle at 10% 80%, rgba(255,255,255,.05) 0%, transparent 40%);
    pointer-events: none;
}

.esq-inner {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 36px;
    padding: 52px 52px 40px;
    width: 100%;
}

/* logo */
.esq-logo {
    display: flex; align-items: center; gap: 10px;
    text-decoration: none;
}
.logo-mark {
    width: 34px; height: 34px; border-radius: 9px;
    background: rgba(255,255,255,.18);
    display: flex; align-items: center; justify-content: center;
    font-size: 16px; font-weight: 900; color: #fff;
}
.logo-text { font-size: 18px; font-weight: 800; color: #fff; letter-spacing: -.3px; }

/* headline */
.esq-headline h1 {
    font-size: 34px; font-weight: 800; line-height: 1.15;
    color: #fff; margin: 0 0 14px; letter-spacing: -.5px;
}
.esq-headline p {
    font-size: 16px; color: rgba(255,255,255,.72); line-height: 1.55; margin: 0;
}

/* benefícios */
.esq-beneficios {
    list-style: none; margin: 0; padding: 0;
    display: flex; flex-direction: column; gap: 22px;
}
.esq-beneficios li {
    display: flex; align-items: flex-start; gap: 14px;
}
.beneficio-icon {
    width: 40px; height: 40px; flex-shrink: 0;
    background: rgba(255,255,255,.12);
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 12px;
    display: flex; align-items: center; justify-content: center;
    color: #fff;
}
.esq-beneficios li strong {
    display: block;
    font-size: 14px; font-weight: 700; color: #fff; margin-bottom: 3px;
}
.esq-beneficios li span {
    font-size: 13px; color: rgba(255,255,255,.65); line-height: 1.5;
}

/* CTA visual */
.esq-cta {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 13px; font-weight: 700;
    color: rgba(255,255,255,.55);
    padding: 10px 0;
    margin-top: auto;
}

/* rodapé */
.esq-rodape {
    display: flex; align-items: center; gap: 6px;
    font-size: 11px; color: rgba(255,255,255,.38);
    font-weight: 600; letter-spacing: .3px;
}

/* ── PAINEL DIREITO ── */
.cadastro-panel-dir {
    flex: 1;
    background: var(--bg-page);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 48px 40px;
}

.form-card {
    width: 100%;
    max-width: 460px;
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* cabeçalho do form */
.form-header { display: flex; flex-direction: column; gap: 4px; }
.form-header h2 {
    font-size: 26px; font-weight: 800;
    color: var(--text-main); margin: 0; letter-spacing: -.4px;
}
.form-header p { font-size: 14px; color: var(--text-muted); margin: 0; }
.form-header a { color: var(--primary); font-weight: 600; text-decoration: none; }
.form-header a:hover { text-decoration: underline; }

/* campos */
.form-fields { display: flex; flex-direction: column; gap: 16px; }
.form-group { display: flex; flex-direction: column; gap: 5px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.form-group label {
    font-size: 12px; font-weight: 700;
    color: var(--text-main); letter-spacing: .1px;
}
.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="tel"],
.form-group input[type="password"] {
    height: 46px;
    border: 1.5px solid var(--border-card);
    border-radius: 12px;
    padding: 0 14px;
    font-family: inherit; font-size: 14px;
    color: var(--text-main); background: #fff;
    outline: none; transition: border-color .15s, box-shadow .15s;
}
.form-group input:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(36,81,200,.1);
}
.form-group input::placeholder { color: #C0C8DC; }

/* senha */
.senha-wrapper { position: relative; }
.senha-wrapper input { width: 100%; padding-right: 44px; }
.senha-wrapper input[type="password"]::-ms-reveal,
.senha-wrapper input[type="password"]::-ms-clear { display: none; }
.senha-wrapper input[type="password"]::-webkit-credentials-auto-fill-button { display: none; }
.btn-olhinho {
    position: absolute; right: 12px; top: 50%; transform: translateY(-50%);
    background: none; border: none; -webkit-appearance: none; appearance: none; cursor: pointer; padding: 0;
    color: #B0B8D0; display: flex; align-items: center; transition: color .15s;
}
.btn-olhinho:hover { color: var(--primary); }

/* checkboxes */
.checkboxes { display: flex; flex-direction: column; gap: 10px; }
.checkbox-row {
    display: flex; align-items: flex-start; gap: 10px;
    font-size: 13px; color: var(--text-muted);
    cursor: pointer; line-height: 1.45;
}
.checkbox-row input[type="checkbox"] {
    width: 16px; height: 16px; flex-shrink: 0; margin-top: 2px;
    accent-color: var(--primary); cursor: pointer;
}
.checkbox-row a {
    color: var(--primary); font-weight: 600; text-decoration: none;
}
.checkbox-row a:hover { text-decoration: underline; }

/* botão */
.btn-cadastrar {
    width: 100%; height: 50px;
    background: var(--primary); color: #fff;
    border: none; border-radius: 13px;
    font-family: inherit; font-size: 15px; font-weight: 700;
    cursor: pointer; transition: background .15s, transform .1s;
    box-shadow: 0 4px 14px rgba(36,81,200,.28);
    margin-top: 4px;
}
.btn-cadastrar:hover { background: var(--primary-dark); }
.btn-cadastrar:active { transform: scale(.98); }

/* lgpd */
.lgpd-note {
    display: flex; align-items: center; justify-content: center; gap: 6px;
    font-size: 11px; font-weight: 600;
    color: var(--text-muted); letter-spacing: .2px;
}

/* erros */
.field-validation-error { font-size: 11px; color: var(--coral); }
.alerta-erro {
    background: #FEF2F2; border: 1px solid #FECACA;
    border-radius: 12px; padding: 12px 16px;
    font-size: 13px; color: #B91C1C; line-height: 1.5;
}

/* ── RESPONSIVO ── */
@media (max-width: 1024px) {
    .cadastro-panel-esq { display: none; }
    .cadastro-panel-dir { padding: 32px 20px; }
}

@media (max-width: 640px) {
    .cadastro-wrapper { min-height: 100dvh; }
    .cadastro-panel-dir { padding: 24px 16px; align-items: flex-start; padding-top: 40px; }
    .form-card { max-width: 100%; }
    .form-row { grid-template-columns: 1fr; }
}
