/* public/assets/css/cadastro.css */

/* =========================================
   ESTRUTURA GERAL DA PÁGINA
   ========================================= */

/* Fundo e Centralização Geral */
.account-main {
    display: flex;
    justify-content: center;
    align-items: flex-start; 
    background-color: #f8f9fa;
    padding: 40px 20px;
    min-height: 80vh;
}

/* O Cartão do Formulário */
.account-card {
    width: 100%;
    max-width: 650px; 
    background: #fff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.06);
    margin: 0 auto;
    height: auto !important;
    overflow: visible !important;
}

/* Cabeçalho */
.account-header {
    text-align: center;
    margin-bottom: 40px; /* Aumentei um pouco aqui também */
    border-bottom: 1px solid #eee;
    padding-bottom: 20px;
}
.account-header h1 {
    font-size: 24px;
    color: #333;
    margin-bottom: 10px;
    font-weight: 800;
}
.account-header p { color: #666; font-size: 14px; }

/* =========================================
   BLOCOS E SEÇÕES (Ajuste de Espaçamento)
   ========================================= */

.account-form { display: block !important; }

/* AQUI: Aumentei para 50px para separar bem os grupos */
.account-block { 
    margin-bottom: 50px; 
}

.account-block h2 {
    font-size: 16px;
    color: #555;
    margin-bottom: 15px;
    border-left: 4px solid #800080;
    padding-left: 10px;
    text-transform: uppercase;
    font-weight: 700;
}

/* Caixa de Indicação (Roxa) */
.referral-box { 
    background: #fdf2ff; 
    padding: 20px; 
    border: 1px dashed #800080; 
    border-radius: 8px; 
    margin-bottom: 40px; /* Afastei um pouco do primeiro bloco */
    text-align: center;
}
.referral-box label { color: #800080; font-weight: bold; font-size: 14px; display: block; margin-bottom: 8px;}
.referral-box input { border-color: #e0b0ff; text-align: center; font-weight: bold; letter-spacing: 1px; }

/* =========================================
   CHECKBOXES
   ========================================= */
.field-check {
    display: flex;
    align-items: center;
    margin-bottom: 12px;
    padding-left: 4px;
}

.field-check input[type="checkbox"] {
    width: 20px !important;
    height: 20px !important;
    margin: 0 10px 0 0 !important;
    flex-shrink: 0;
    cursor: pointer;
    accent-color: #800080;
}

.field-check label {
    margin: 0;
    font-size: 14px;
    color: #555;
    cursor: pointer;
    line-height: 1.4;
    display: inline-block;
    width: auto;
    font-weight: normal;
}

.field-check a {
    color: #800080;
    text-decoration: underline;
    font-weight: 600;
}

/* Responsivo Geral */
@media(max-width: 600px){
    .account-card { padding: 20px; }
}

/* =========================================
   INPUTS, GRIDS E BOTÕES
   ========================================= */

/* Estilo dos Containers de Campo */
.field {
    /* AQUI: Diminuí para 12px para agrupar os campos */
    margin-bottom: 12px; 
    display: block;
}

.field label {
    display: block;
    font-size: 14px;
    font-weight: 600;
    color: #444;
    /* Aproximei o label do input */
    margin-bottom: 5px; 
}

/* Estilo Visual dos Inputs */
.field input[type="text"],
.field input[type="email"],
.field input[type="password"],
.field input[type="tel"],
.field input[type="date"],
.field select {
    width: 100%;
    padding: 8px 15px;
    font-size: 15px;
    border: 1px solid #ddd;
    border-radius: 6px;
    background-color: #fff;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.field input:focus,
.field select:focus {
    border-color: #800080;
    outline: none;
    box-shadow: 0 0 0 3px rgba(128, 0, 128, 0.1);
}

/* Grids (Lado a Lado) */
.grid-2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    /* gap: vertical(12px) horizontal(20px) */
    gap: 12px 20px; 
}

.grid-3 {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr; 
    gap: 12px 20px;
}

.span-2 {
    grid-column: span 2;
}

/* Responsividade do Grid */
@media(max-width: 768px){
    .grid-2, .grid-3 {
        grid-template-columns: 1fr;
    }
    .span-2 { grid-column: auto; }
}

/* Botões do rodapé */
.account-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 40px;
    border-top: 1px solid #eee;
    padding-top: 20px;
}

.btn {
    padding: 12px 30px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    font-size: 16px;
    border: none;
    transition: 0.3s;
}

.btn.primary {
    background-color: #800080;
    color: white;
}
.btn.primary:hover {
    background-color: #5a005a;
}

.btn.ghost {
    background-color: transparent;
    color: #666;
}
.btn.ghost:hover {
    color: #333;
    text-decoration: underline;
}