/* ============================================== */
/* === FLUXEDGE - ONBOARDING / WIZARD         === */
/* ============================================== */

@import url('login.css'); /* Herda as cores e botões base */

/* ============================================== */
/* === TRAVA DE TELA (SCROLL SÓ NO FORMULÁRIO)=== */
/* ============================================== */
html, body {
    margin: 0;
    padding: 0;
    height: 100vh; /* Exatos 100% da tela, nem um pixel a mais */
    overflow: hidden !important; /* Proíbe a página inteira de rolar */
}

.flux-wizard-body {
    font-family: 'Inter', sans-serif;
    background-color: var(--flux-fundo);
    color: var(--flux-texto-forte);
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
    padding: 20px;
    box-sizing: border-box;
    /* Efeito suave ao trocar de tema */
    transition: background-color 0.4s ease, color 0.4s ease;
    background-image: radial-gradient(circle at top right, rgba(37, 99, 235, 0.05), transparent 40%),
                      radial-gradient(circle at bottom left, rgba(56, 189, 248, 0.05), transparent 40%);
}

.flux-wizard-container {
    background: var(--flux-card-bg);
    border-radius: 16px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.05), 0 5px 15px rgba(0,0,0,0.02);
    width: 100%;
    max-width: 550px; 
    border: 1px solid var(--flux-borda);
    
    /* A Mágica do Cabeçalho Fixo está aqui: */
    display: flex;
    flex-direction: column;
    max-height: 85vh; /* Segura o tamanho do card na tela */
    overflow: hidden;
}

.flux-wizard-header {
    flex-shrink: 0; /* Impede o cabeçalho de encolher */
    z-index: 10;
    padding: 35px 30px;
    background: linear-gradient(135deg, var(--flux-azul-primario), #1E3A8A);
    color: #FFF;
    text-align: center;
    position: relative;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1); /* Dá uma sombrinha embaixo do cabeçalho */
}

.flux-wizard-form {
    padding: 30px 40px;
    overflow-y: auto; /* Cria a barra de rolagem SÓ no formulário */
}

/* Scrollbar Customizada (Estilo Mac/Premium) */
.flux-wizard-form::-webkit-scrollbar { width: 6px; }
.flux-wizard-form::-webkit-scrollbar-track { background: transparent; }
.flux-wizard-form::-webkit-scrollbar-thumb { background: var(--flux-borda); border-radius: 10px; }
.flux-wizard-form::-webkit-scrollbar-thumb:hover { background: var(--flux-texto-suave); }

.flux-wizard-logo {
    max-width: 150px;
    margin-bottom: 15px;
}

.flux-wizard-header h1 {
    margin: 0 0 8px 0;
    font-size: 1.6em;
    font-weight: 700;
}

.flux-wizard-header p {
    margin: 0;
    opacity: 0.85;
    font-size: 0.95em;
}

/* Indicador de Passos (Bolinhas) */
.flux-step-indicator {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 25px;
    gap: 15px;
}

.step-dot {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255,255,255,0.2);
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 0.9em;
    transition: all 0.3s ease;
}

.step-dot.active {
    background: #FFF;
    color: var(--flux-azul-primario);
    box-shadow: 0 0 10px rgba(255,255,255,0.5);
}

.step-dot.completed {
    background: #10B981; /* Verde sucesso */
    color: #FFF;
}

.step-line {
    height: 2px;
    width: 50px;
    background: rgba(255,255,255,0.3);
}

.flux-wizard-form {
    padding: 35px 40px;
}

.step-title {
    margin-top: 0;
    color: var(--flux-azul-primario);
    margin-bottom: 25px;
    font-size: 1.2em;
    border-bottom: 2px solid var(--flux-input-bg);
    padding-bottom: 10px;
}

.wizard-step {
    display: none;
    animation: fadeIn 0.4s ease;
}

.wizard-step.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

.step-buttons {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
}

.flux-btn-secondary {
    padding: 12px 25px;
    background: var(--flux-input-bg);
    color: var(--flux-texto-forte);
    border: 1px solid var(--flux-borda);
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.flux-btn-secondary:hover {
    background: #E2E8F0;
}

/* Consertando os Selects para ficarem com visual de input */
select {
    width: 100%;
    padding: 12px 15px 12px 42px;
    background-color: var(--flux-input-bg);
    border: 1px solid var(--flux-borda);
    color: var(--flux-texto-forte);
    border-radius: 8px;
    font-size: 0.95rem;
    font-family: inherit;
    box-sizing: border-box;
    appearance: none;
    cursor: pointer;
}
select:focus {
    outline: none;
    border-color: var(--flux-azul-primario);
    box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.toggle-switch {
    position: relative;
    display: inline-block;
    width: 44px;
    height: 22px;
}
.toggle-switch input { opacity: 0; width: 0; height: 0; }
.toggle-switch .slider {
    position: absolute;
    cursor: pointer;
    top: 0; left: 0; right: 0; bottom: 0;
    background-color: #CBD5E1;
    transition: .4s;
    border-radius: 34px;
}
.toggle-switch .slider:before {
    position: absolute;
    content: "";
    height: 16px; width: 16px;
    left: 3px; bottom: 3px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
}
.toggle-switch input:checked + .slider { background-color: var(--flux-azul-primario); }
.toggle-switch input:checked + .slider:before { transform: translateX(22px); }

/* ============================================== */
/* === BOTÃO VISUALIZAR SENHA (OLHINHO)       === */
/* ============================================== */

.flux-eye-icon {
    position: absolute;
    right: 15px; /* Fixa na direita */
    color: var(--flux-texto-suave);
    cursor: pointer;
    font-size: 1.1rem;
    transition: color 0.2s ease;
    z-index: 10;
}

.flux-eye-icon:hover {
    color: var(--flux-azul-primario);
}

/* Dá um recuo extra na direita do input para o texto não ficar embaixo do ícone */
.flux-input-wrapper input[type="password"],
.flux-input-wrapper input.password-visible {
    padding-right: 45px !important;
}

/* ============================================== */
/* === BOTÃO DE SUCESSO E CAMPOS BLOQUEADOS   === */
/* ============================================== */

/* O botão bonitão de Finalizar */
.flux-btn-success {
    background-color: #10B981;
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.2);
    display: flex;
    justify-content: center;
    align-items: center;
}

.flux-btn-success:hover {
    background-color: #059669;
    transform: translateY(-1px);
    box-shadow: 0 6px 12px rgba(16, 185, 129, 0.3);
}

/* Campos apenas leitura (Espelhos) */
.flux-input-readonly {
    background-color: #E2E8F0 !important;
    color: var(--flux-texto-suave) !important;
    cursor: not-allowed;
    border-color: #CBD5E1 !important;
}