* {
    box-sizing: border-box;
}

body {
    margin: 0;
    min-height: 100vh;
    background:
        radial-gradient(circle at top left, rgba(37, 99, 235, 0.14), transparent 34%),
        radial-gradient(circle at bottom right, rgba(249, 115, 22, 0.10), transparent 32%),
        #f3f6fb;
    color: #172033;
    font-family: Arial, Helvetica, sans-serif;
}

.cadastro-wrap {
    width: min(980px, calc(100% - 24px));
    margin: 28px auto 45px;
}

.cadastro-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 18px;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.10);
    padding: 22px;
}

.cadastro-topo {
    text-align: center;
    margin-bottom: 20px;
}

.logo {
    width: 58px;
    height: 58px;
    margin: 0 auto 10px;
    border-radius: 18px;
    background: #2563eb;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    font-weight: 900;
}

.cadastro-topo h1 {
    margin: 0;
    color: #2563eb;
    font-size: 28px;
}

.cadastro-topo p {
    margin: 7px 0 0;
    color: #64748b;
    font-size: 14px;
}

.alerta {
    margin-bottom: 14px;
    padding: 12px 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 800;
}

.alerta.erro {
    background: #fee2e2;
    color: #991b1b;
    border: 1px solid #fecaca;
}

.alerta.sucesso {
    background: #dcfce7;
    color: #166534;
    border: 1px solid #86efac;
}

.form-cadastro {
    display: grid;
    gap: 16px;
}

.secao {
    border: 1px solid #edf1f7;
    border-radius: 14px;
    padding: 15px;
    background: #fbfdff;
}

.secao h2 {
    margin: 0 0 12px;
    color: #1e293b;
    font-size: 18px;
}

.grid-2,
.grid-3,
.grid-4 {
    display: grid;
    gap: 12px;
    margin-bottom: 12px;
}

.grid-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
}

.campo {
    display: grid;
    gap: 6px;
}

.campo-maior {
    grid-column: span 1;
}

.campo-uf {
    max-width: 90px;
}

label {
    color: #263244;
    font-size: 13px;
    font-weight: 800;
}

input {
    width: 100%;
    min-height: 42px;
    padding: 10px 11px;
    border: 1px solid #d9e2ef;
    border-radius: 12px;
    outline: none;
    background: #ffffff;
    color: #172033;
    font-size: 14px;
    font-family: inherit;
}

input:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.12);
}

small {
    color: #64748b;
    font-size: 12px;
}

.js-senha-6 {
    letter-spacing: 0.32em;
    text-align: center;
    font-size: 18px;
    font-weight: 900;
}

.acoes {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.acoes button {
    min-height: 44px;
    padding: 10px 18px;
    border: 0;
    border-radius: 12px;
    background: #2563eb;
    color: #ffffff;
    font-size: 15px;
    font-weight: 900;
    cursor: pointer;
}

.acoes button:hover {
    background: #1d4ed8;
}

.acoes a {
    color: #2563eb;
    font-size: 14px;
    font-weight: 800;
    text-decoration: none;
}

@media (max-width: 760px) {
    .grid-2,
    .grid-3,
    .grid-4 {
        grid-template-columns: 1fr;
    }

    .campo-uf {
        max-width: none;
    }

    .acoes {
        display: grid;
    }

    .acoes button,
    .acoes a {
        width: 100%;
        text-align: center;
    }
}