/* Extraído de partials/register.php: manter idêntico ao PHP. */
/* =========================================
   ESTILOS DO CADASTRO - IDENTIDADE IGNIS
   ========================================= */

/* Zera os "buracos" do layout antigo na força bruta */
.site-content { padding-bottom: 0 !important; }
.site-footer-modern, .site-footer-minimal, footer { margin-top: 0 !important; }

.ignis-register-wrapper {
    position: relative;
    width: 100%;
    max-width: 100%;
    margin-left: 0;
    margin-bottom: -30px !important; /* Engole o padding residual do container */
    
    min-height: calc(100vh - 65px);
    display: flex;
    align-items: center;
    justify-content: center;
    
/* BACKGROUND ESPECÍFICO DESTA PÁGINA */
    background-color: #0b4aed; 
    background-image: url('https://globalfire.space/partials/bgglobalignis.jpeg');
    background-size: cover; /* Alterado para cobrir a tela toda sem falhas */
    background-position: bottom;
    background-repeat: no-repeat;
    background-attachment: fixed; /* Trava a imagem no fundo */
    
    padding: 20px;
    box-sizing: border-box;
    font-family: monospace, sans-serif;
    overflow: hidden;
}

/* --- Card do Formulário --- */
.ignis-register-card {
    background-color: #fff;
    border: 4px solid #000;
    box-shadow: 12px 12px 0px #000;
    padding: 40px;
    width: 100%;
    max-width: 800px;
    position: relative;
    z-index: 2; 
    animation: popIn 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275) backwards;
    color: #000;
}

.ignis-register-card h1 { font-size: 2.2rem; margin-bottom: 5px; text-transform: uppercase; font-weight: bold; text-align: center; margin-top: 0; }
.ignis-subtitle { text-align: center; font-weight: bold; margin-bottom: 30px; color: #333; }

/* --- Grids --- */
.ignis-grid-1 { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 20px; }
.ignis-grid-2 { display: grid; grid-template-columns: 1fr; gap: 20px; margin-bottom: 20px; }

/* GRID ESPECÍFICO DO TELEFONE PARA CORRIGIR ESPAÇO */
.ignis-phone-group {
    display: grid;
    grid-template-columns: 130px 1fr; /* Trava o botão país e libera o resto */
    gap: 15px;
    margin-bottom: 0;
}

@media (min-width: 768px) { 
    .ignis-grid-2 { grid-template-columns: 1fr 1fr; } 
    .ignis-phone-group { grid-template-columns: 140px 1fr; }
}

/* --- Inputs Base --- */
.ignis-input-group { position: relative; display: flex; flex-direction: column; }
.ignis-label { display: block; font-size: 0.85rem; font-weight: bold; margin-bottom: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.ignis-input,
#phone_country {
    width: 100% !important;
    padding: 12px 15px !important;
    border: 3px solid #000 !important;
    font-family: monospace, sans-serif !important;
    font-size: 1rem !important;
    box-sizing: border-box !important;
    background-color: #fff !important;
    color: #000 !important; 
    -webkit-text-fill-color: #000 !important;
    outline: none !important;
    transition: background-color 0.2s !important;
    border-radius: 0 !important; 
    box-shadow: none !important; 
}

.ignis-input:focus { background-color: #f0f0f0 !important; border-color: #000 !important; box-shadow: inset 0 0 0 2px #000 !important; }
.ignis-input::placeholder { color: #666 !important; opacity: 1 !important; -webkit-text-fill-color: #666 !important; }
.hint { font-size: 0.8rem; color: #555; margin-top: 6px; font-weight: bold; }

/* --- Botões embutidos no Input --- */
.ignis-btn-inside {
    position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
    background: #000; color: #DFFF00; border: 2px solid #000; padding: 6px 12px;
    font-family: monospace, sans-serif; font-weight: bold; cursor: pointer;
    font-size: 0.8rem; text-transform: uppercase; transition: all 0.2s;
    display: flex; align-items: center; justify-content: center;
}
.ignis-btn-inside:hover { background: #222; }
.ignis-btn-inside svg { fill: none; stroke: currentColor; stroke-width: 2; width: 16px; height: 16px; }

.password-wrapper .ignis-input { padding-right: 90px !important; }
.date-input-wrapper .ignis-input { padding-right: 60px !important; }
.password-mismatch .ignis-input { border-color: #e11d48 !important; background-color: #ffe6eb !important; }

/* --- Checkboxes --- */
.ignis-check-wrap { border: 3px solid #000; padding: 15px; margin-bottom: 20px; background-color: #f9f9f9; }
.ignis-check-title { font-weight: bold; padding: 0 5px; text-transform: uppercase; }
.ignis-check-item {
    display: flex; align-items: center; gap: 8px; padding: 8px 12px;
    border: 2px solid #000; cursor: pointer; background: #fff; font-weight: bold;
    margin-right: 10px; margin-bottom: 10px; display: inline-flex; color: #000;
}
.ignis-check-item input[type="checkbox"] { width: 18px; height: 18px; accent-color: #000; cursor: pointer; }

/* --- Endereço --- */
.ignis-address-section { border: 4px solid #000; padding: 20px; background-color: #f4f4f4; margin-bottom: 25px; margin-top: 10px; }
.ignis-address-title { font-size: 1.5rem; margin-top: 0; margin-bottom: 20px; text-transform: uppercase; }

/* --- Ações --- */
.ignis-actions { display: flex; flex-direction: column; align-items: center; gap: 15px; margin-top: 10px; }
.ignis-btn-submit {
    display: flex; align-items: center; justify-content: center;
    background-color: #DFFF00; color: #000; border: 3px solid #000;
    width: 100%; max-width: 300px; padding: 15px; font-size: 1.2rem;
    font-weight: bold; font-family: monospace, sans-serif; text-transform: uppercase;
    cursor: pointer; box-shadow: 4px 4px 0px #000; transition: all 0.2s ease;
}
.ignis-btn-submit:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0px #000; }
.ignis-btn-submit:active { transform: translate(2px, 2px); box-shadow: 0px 0px 0px #000; }
.ignis-link { color: #000; font-weight: bold; text-decoration: underline; font-size: 1rem; }
.ignis-link:hover { color: #3b2cd7; }

/* =========================================
   COMPONENTES JS (Country Picker e Calendar)
   ========================================= */
#phone_country { position:absolute !important; opacity:0 !important; pointer-events:none !important; width:1px !important; height:1px !important; }
.country-picker { position:relative; width:100%; }

.country-picker-button {
    width: 100%; min-height: 50px; background: #fff; border: 3px solid #000; color: #000;
    padding: 10px 25px 10px 10px; text-align: left; font-family: monospace, sans-serif; font-size: 1rem;
    font-weight: bold; cursor: pointer; display: flex; align-items: center; gap: 5px; position: relative; border-radius: 0;
}
.country-picker-button:after {
    content:""; position:absolute; right:12px; top:50%; width:8px; height:8px;
    border-right: 3px solid #000; border-bottom: 3px solid #000; transform:translateY(-70%) rotate(45deg);
}
.country-picker-button:focus { outline:none; background:#f0f0f0; }

.country-picker-list {
    position:absolute; z-index:50; left:0; right:-80px; top:calc(100% + 5px); max-height:280px; overflow:auto;
    background:#fff; border:3px solid #000; box-shadow:6px 6px 0px #000; padding:6px; display:none; min-width: 250px;
}
.country-picker.open .country-picker-list { display:block; }

.country-picker-option {
    width:100%; min-height:40px; border:0; background:#fff; color:#000; padding:8px 10px;
    text-align:left; font-family: monospace, sans-serif; font-size: 0.9rem; font-weight: bold;
    cursor:pointer; display:flex; align-items:center; gap:8px;
}
.country-picker-option:hover, .country-picker-option.is-selected { background:#DFFF00; border: 2px solid #000; padding: 6px 8px; }
.country-code-box { font-weight:bold; background:#000; color:#DFFF00; padding: 2px 6px; font-size:0.8rem; }
.country-name { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }

.cal-popover {
    position: fixed; z-index: 10000; left: 0; top: 0; display:none; background:#fff; color:#000; width:min(92vw,350px);
    border: 4px solid #000; padding:15px; box-shadow:8px 8px 0px #000; font-family: monospace, sans-serif;
}
.cal-head { display:flex; align-items:center; justify-content:space-between; margin-bottom:15px; }
.cal-title { display:flex; align-items:center; gap:10px; font-weight:bold; font-size: 1.1rem; }
.cal-title select { padding:4px; border:2px solid #000; font-family: monospace, sans-serif; font-weight: bold; background:#fff; outline:none; color:#000; }
.cal-nav { width:35px; height:35px; border:3px solid #000; background:#DFFF00; font-size:1.2rem; font-weight: bold; cursor:pointer; color:#000; }
.cal-nav:active { background: #000; color: #DFFF00; }
.cal-grid { display:grid; grid-template-columns:repeat(7,1fr); gap:6px; }
.cal-weekday { text-align:center; font-weight:bold; padding:5px 0; border-bottom: 2px solid #000; margin-bottom: 5px; color:#000; }
#cal_days { display:contents; }
.cal-day { display:flex; align-items:center; justify-content:center; height:35px; border:2px solid transparent; background:#fff; cursor:pointer; font-family: monospace, sans-serif; font-weight: bold; color:#000; }
.cal-day:hover { background:#eee; border-color: #000; }
.cal-day[aria-disabled="true"] { opacity:0.3; pointer-events:none; }
.cal-day.is-today { border-bottom: 3px solid #000; }
.cal-day.is-selected { background:#000; color:#DFFF00; border-color:#000; }
.cal-actions { display:flex; justify-content:flex-end; margin-top:15px; border-top: 2px solid #000; padding-top: 15px; }
.cal-actions .cancel { background:#fff; border:2px solid #000; font-weight: bold; font-family: monospace, sans-serif; padding:6px 12px; cursor:pointer; color:#000; }
.cal-actions .cancel:hover { background: #000; color: #fff; }

/* Animações */
@keyframes popIn { 0% { opacity: 0; transform: scale(0.9) translateY(20px); } 100% { opacity: 1; transform: scale(1) translateY(0); } }

@media (max-width: 640px) {
    .ignis-register-card { padding: 30px 15px; box-shadow: 6px 6px 0px #000; }
    .ignis-register-card h1 { font-size: 1.8rem; }
    .ignis-address-section { padding: 15px; }
}
