/**
 * ============================================================================
 * ESTILOS PÚBLICOS - SISTEMA DE CADASTRO MOEBLE
 * ============================================================================
 * 
 * Este arquivo contém todos os estilos visuais do formulário de cadastro.
 * 
 * COMO USAR ESTE ARQUIVO:
 * -----------------------
 * 1. Para mudar cores: edite as variáveis na seção :root abaixo
 * 2. Para mudar tamanhos: procure a classe desejada e altere
 * 3. Para mobile: use o arquivo moeble-responsive.css
 * 4. Para animações: use o arquivo moeble-animations.css
 * 
 * DOCUMENTAÇÃO COMPLETA: Veja a pasta /docs/
 * 
 * @package MoebleCadastro
 * @version 2.0.0
 */

/* ============================================================================
   VARIÁVEIS CSS - ALTERE AQUI PARA MUDAR AS CORES DO SISTEMA
   ============================================================================
   
   INSTRUÇÃO: Para mudar uma cor, altere apenas o valor hexadecimal (#000000)
   Exemplo: Para fundo azul, mude --mc-bg-page: #000000; para --mc-bg-page: #0a1628;
*/
:root {
    /* ========================================
       CORES DE FUNDO (BACKGROUNDS)
       ======================================== */
    --mc-bg-page: #000000;          /* Cor de fundo da página inteira */
    --mc-bg-card: #000000;          /* Cor de fundo do card/formulário */
    --mc-bg-input: transparent;     /* Fundo dos campos de texto */
    --mc-bg-button: #1a1a1a;        /* Fundo dos botões */
    --mc-bg-button-hover: #2a2a2a;  /* Fundo do botão ao passar o mouse */
    
    /* ========================================
       CORES DE TEXTO
       ======================================== */
    --mc-text-primary: #FFFFFF;     /* Texto principal (títulos, inputs) */
    --mc-text-secondary: #FFFFFF;   /* Texto secundário (subtítulos) - BRANCO */
    --mc-text-muted: #CCCCCC;       /* Texto apagado (dicas, placeholders) - MAIS CLARO */
    --mc-text-button: #FFFFFF;      /* Texto dentro dos botões - BRANCO */
    
    /* ========================================
       CORES DE BORDA
       ======================================== */
    --mc-border: #333333;           /* Borda padrão */
    --mc-border-focus: #FFFFFF;     /* Borda quando campo está em foco */
    --mc-border-input: #444444;     /* Borda dos inputs */
    
    /* ========================================
       CORES DE STATUS (Sucesso, Erro, Aviso)
       Recomendado: não alterar estas cores
       ======================================== */
    --mc-success: #22C55E;          /* Verde - sucesso/validação ok */
    --mc-error: #EF4444;            /* Vermelho - erro/validação falha */
    --mc-warning: #F59E0B;          /* Amarelo - avisos/atenção */
    
    /* ========================================
       CONFIGURAÇÕES GERAIS
       ======================================== */
    --mc-radius: 12px;              /* Arredondamento padrão */
    --mc-radius-sm: 8px;            /* Arredondamento pequeno */
    --mc-radius-lg: 16px;           /* Arredondamento grande */
    --mc-transition: all 0.2s ease; /* Velocidade das animações */
    --mc-font: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

/* ==========================================================================
   Reset & Base
   ========================================================================== */
.moeble-cadastro-container *,
.moeble-cadastro-container *::before,
.moeble-cadastro-container *::after {
    box-sizing: border-box;
}

/* ==========================================================================
   Base Container
   ========================================================================== */
.moeble-cadastro-container {
    font-family: var(--mc-font);
    background: var(--mc-bg-page);
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.moeble-cadastro-wrapper {
    width: 100%;
    max-width: 480px;
}

/* Wrapper específico da página de login - largura levemente maior */
.moeble-login-wrapper {
    max-width: 620px; /* 520px + 100px = 620px */
}

/* ==========================================================================
   Form Card - FUNDO PRETO
   ========================================================================== */
.moeble-cadastro-card {
    background: var(--mc-bg-card);
    border-radius: var(--mc-radius);
    padding: 40px 32px;
    overflow: hidden;
}

/* Borda no card de cadastro - APENAS DESKTOP */
@media (min-width: 769px) {
    .moeble-cadastro-card {
        border: 1px solid rgba(255, 255, 255, 0.1);
        border-radius: 5px;
    }
}

/* Card de login: contorno branco e raio menor, estilo painel Apple */
.moeble-login-card {
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 5px;
}

@media (max-width: 480px) {
    .moeble-cadastro-card {
        padding: 32px 20px;
    }
}

.moeble-cadastro-header {
    text-align: center;
    margin-bottom: 40px;
}

.moeble-cadastro-logo {
    display: none;  /* Logo removida conforme solicitado */
}

.moeble-cadastro-title {
    font-size: 20px;
    font-weight: 600;
    color: var(--mc-text-primary);
    margin: 0 0 8px 0;
    line-height: 1.2;
    word-wrap: break-word;
    overflow-wrap: break-word;
}

/* Título específico do login - 30% maior e peso 600 */
.moeble-login-card .moeble-cadastro-title {
    font-size: 32px;
    font-weight: 600;
}

.moeble-cadastro-subtitle {
    font-size: 15px;
    color: #FFFFFF;
    margin: 0;
    line-height: 1.5;
}

/* Subtítulo do cadastro - mesmo tamanho */
.moeble-registration-form .moeble-cadastro-subtitle {
    font-size: 15px;
    color: #FFFFFF;
}

/* ==========================================================================
   Progress Bar - ESCONDIDA NO CADASTRO
   ========================================================================== */
.moeble-progress {
    display: none;  /* Removida conforme solicitado */
}

.moeble-progress-bar {
    height: 3px;
    background: var(--mc-border);
    border-radius: 2px;
    overflow: hidden;
}

.moeble-progress-fill {
    height: 100%;
    background: var(--mc-text-primary);
    border-radius: 2px;
    transition: width 0.4s ease;
}

/* ==========================================================================
   Steps - Base (animações definidas em moeble-animations.css)
   ========================================================================== */
.moeble-step {
    display: none;
}

/* A classe .active e animações estão em moeble-animations.css
   para evitar conflitos e garantir transições suaves */

/* ==========================================================================
   Form Fields - ESTILO NUBANK/APPLE
   ========================================================================== */
.moeble-field {
    margin-bottom: 28px;
}

.moeble-field-label {
    display: block;
    font-size: 15px;  /* Aumentado 2px */
    font-weight: 400;  /* Peso normal, não bold */
    color: #FFFFFF;  /* BRANCO */
    margin-bottom: 8px;
    text-transform: none;
    letter-spacing: 0;
}

/* Esconder label "Como podemos te ajudar?" no cadastro (step 0) */
.moeble-step[data-step="0"] .moeble-field-label {
    display: none;
}

/* Esconder botão continuar no step 0 (cards já avançam automaticamente) */
.moeble-step[data-step="0"] + .moeble-form-nav .moeble-btn-primary {
    display: none;
}

/* Removido o asterisco visual dos labels no cadastro para deixar os textos
   mais limpos. A obrigatoriedade continua sendo tratada na validação. */
.moeble-field-label::after {
    content: '';
}

/* No login não exibimos o asterisco nos labels Email/Senha */
.moeble-login-form .moeble-field-label::after {
    content: '';
}

/* ==========================================================================
   INPUTS DO CADASTRO - EXATAMENTE IGUAL AO LOGIN
   ========================================================================== */

/* Input do cadastro com estilo shell (igual ao login) */
.moeble-registration-form .moeble-field-input {
    width: 100%;
    height: 56px;
    padding: 0 24px !important;
    border: 1px solid #6e6e73 !important;
    border-radius: 28px !important;
    background-color: hsla(0, 0%, 100%, 0.04) !important;
    font-size: 17px !important;
    font-weight: 400 !important;
    color: var(--mc-text-primary) !important;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif !important;
    box-sizing: border-box !important;
    transition: all 0.3s ease !important;
    outline: none !important;
}

/* Placeholder */
.moeble-registration-form .moeble-field-input::placeholder {
    color: #a1a1aa !important; /* Cinza claro, levemente mais escuro que o branco do label */
    opacity: 1 !important;
}

/* Foco */
.moeble-registration-form .moeble-field-input:focus {
    border: 1px solid #86868b !important;
    background-color: hsla(0, 0%, 100%, 0.08) !important;
}

/* Select e Textarea (sem shell) */
.moeble-field-select {
    width: 100%;
    padding: 0 24px;
    height: 56px;
    font-size: 17px;
    font-weight: 400;
    color: var(--mc-text-primary);
    background: transparent;
    border: 1px solid #6e6e73;
    border-radius: 28px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
    box-sizing: border-box;
}

.moeble-field-textarea {
    width: 100%;
    min-height: 120px;
    padding: 18px 24px;
    font-size: 17px;
    font-weight: 400;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif;
    color: var(--mc-text-primary);
    background: transparent;
    border: 1px solid #6e6e73;
    border-radius: 28px;
    resize: vertical;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.moeble-field-select:focus,
.moeble-field-textarea:focus {
    outline: none;
    border: 1px solid #86868b;
    background-color: hsla(0, 0%, 100%, 0.08);
}

/* Campos de login no estilo iCloud (dentro do shell) */
.moeble-login-form .moeble-field {
    margin-bottom: 18px;
}

/* Inputs dentro do login COM shell não têm borda própria (usamos apenas a borda do shell) */
.moeble-login-form .moeble-field-shell .moeble-field-input {
    border: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    background: transparent !important;
    height: 100% !important;
}

/* Inputs de login SEM shell (ex: redefinição de senha) - Estilo shell aplicado diretamente */
/* Fallback para navegadores sem suporte a :has() */
.moeble-login-form .moeble-field > .moeble-field-input:not([type="hidden"]) {
    width: 100% !important;
    height: 56px !important;
    padding: 0 24px !important;
    border: 1px solid #6e6e73 !important;
    border-radius: 28px !important; /* Pill shape */
    background-color: hsla(0, 0%, 100%, 0.04) !important;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif !important;
    font-size: 17px !important;
    font-weight: 400 !important;
    color: #FFFFFF !important;
    box-sizing: border-box !important;
    transition: all 0.3s ease !important;
    outline: none !important;
}

/* Versão com suporte a :has() (sobrescreve o fallback em navegadores modernos) */
@supports selector(:has(*)) {
    .moeble-login-form .moeble-field:not(:has(.moeble-field-shell)) .moeble-field-input {
        width: 100% !important;
        height: 56px !important;
        padding: 0 24px !important;
        border: 1px solid #6e6e73 !important;
        border-radius: 28px !important;
        background-color: hsla(0, 0%, 100%, 0.04) !important;
        font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif !important;
        font-size: 17px !important;
        font-weight: 400 !important;
        color: #FFFFFF !important;
        box-sizing: border-box !important;
        transition: all 0.3s ease !important;
        outline: none !important;
    }
}

/* Placeholder para inputs sem shell */
.moeble-login-form .moeble-field > .moeble-field-input::placeholder {
    color: #a1a1aa !important;
    opacity: 1 !important;
}

/* Foco para inputs sem shell */
.moeble-login-form .moeble-field > .moeble-field-input:focus {
    border: 1px solid #86868b !important;
    background-color: hsla(0, 0%, 100%, 0.08) !important;
}

/* Wrapper do input estilo iCloud (equivalente ao .apple-input-wrapper) */
.moeble-field-shell {
    position: relative !important;
    display: flex !important;
    align-items: center !important;
    width: 100% !important;
    height: 56px !important; /* Altura exata do input Apple */
    padding: 0 56px 0 24px !important; /* Padding direito para botão, esquerdo 24px */
    border-radius: 28px !important; /* Pill shape: metade da altura */
    border: 1px solid #6e6e73 !important; /* Borda Apple */
    background-color: hsla(0, 0%, 100%, 0.04) !important; /* Fundo Apple */
    box-sizing: border-box !important;
    /* Resetar bordas individuais para evitar sobreposição */
    border-top: 1px solid #6e6e73 !important;
    border-right: 1px solid #6e6e73 !important;
    border-bottom: 1px solid #6e6e73 !important;
    border-left: 1px solid #6e6e73 !important;
}

.moeble-field-shell .moeble-field-input {
    flex: 1 !important;
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    margin: 0 !important;
    height: 100% !important;
    font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', sans-serif !important;
    font-size: 17px !important; /* Tamanho Apple */
    font-weight: 400 !important;
    color: #FFFFFF !important;
    text-align: left !important;
    box-shadow: none !important;
    outline: none !important;
}

/* Bloquear cor de fundo do autocomplete do Chrome/Safari */
.moeble-field-input:-webkit-autofill,
.moeble-field-input:-webkit-autofill:hover,
.moeble-field-input:-webkit-autofill:focus,
.moeble-field-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #1a1a1a inset !important;
    -webkit-text-fill-color: #FFFFFF !important;
    transition: background-color 5000s ease-in-out 0s !important;
    caret-color: #FFFFFF !important;
}

.moeble-field-shell .moeble-field-input:-webkit-autofill,
.moeble-field-shell .moeble-field-input:-webkit-autofill:hover,
.moeble-field-shell .moeble-field-input:-webkit-autofill:focus,
.moeble-field-shell .moeble-field-input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px transparent inset !important;
    -webkit-text-fill-color: #FFFFFF !important;
    transition: background-color 5000s ease-in-out 0s !important;
    caret-color: #FFFFFF !important;
}

.moeble-login-form .moeble-field-input::placeholder {
    color: #6e6e73;
    opacity: 1;
}

/* Estado de foco: atua no shell quando qualquer input interno tem foco */
.moeble-login-form .moeble-field-shell:focus-within {
    border: 1px solid #86868b !important;
    border-top: 1px solid #86868b !important;
    border-right: 1px solid #86868b !important;
    border-bottom: 1px solid #86868b !important;
    border-left: 1px solid #86868b !important;
    background-color: hsla(0, 0%, 100%, 0.08) !important;
}

.moeble-field-shell .moeble-field-input:focus {
    border: none !important;
    box-shadow: none !important;
    outline: none !important;
    background: transparent !important;
}

/* Botão "prosseguir" dentro do campo de email (equivalente ao .apple-input-btn) */
.moeble-login-field-action {
    position: absolute;
    right: 8px;
    top: 50%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    background-color: transparent;
    border: 1.5px solid #6e6e73;
    border-radius: 50%;
    color: #6e6e73;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.moeble-login-field-action:hover {
    border-color: #86868b;
    color: #86868b;
    background-color: hsla(0, 0%, 100%, 0.04);
}

.moeble-login-field-action:active {
    transform: translateY(-50%) scale(0.96);
}

/* Quando o input tem valor, botão mais visível (equivalente a .apple-input:not(:placeholder-shown) + .apple-input-btn) */
.moeble-field-shell .moeble-field-input:not(:placeholder-shown) + .moeble-login-field-action {
    border-color: #FFFFFF;
    color: #FFFFFF;
}

.moeble-field-select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23888888' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    padding-right: 40px;
}

.moeble-field-textarea {
    min-height: 100px;
    resize: vertical;
}

/* Field Error State */
.moeble-field-input.error,
.moeble-field-select.error {
    border-color: var(--mc-error);
}

.moeble-field-error {
    display: block;
    font-size: 13px;
    color: var(--mc-error);
    margin-top: 8px;
}

/* Mensagem de sucesso (CPF verificado, etc) */
.moeble-field-success {
    display: none;
    font-size: 13px;
    color: #1a5f4a;  /* Verde petróleo */
    margin-top: 8px;
    font-weight: 500;
    line-height: 1.5;
}

.moeble-field-success.visible {
    display: block;
    animation: moebleFadeIn 0.3s ease-out;
}

/* Estado de warning (registro não encontrado mas pode continuar) */
.moeble-field-input.warning {
    border-color: #8b5a2b !important;  /* Âmbar */
}

.moeble-field-input.warning:focus {
    border-color: #7c5e2a !important;  /* Dourado queimado */
}

/* Field Valid State */
.moeble-field-input.valid {
    border-color: var(--mc-success);
}

/* Field Loading */
.moeble-field-loading {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 0;
    font-size: 13px;
    color: var(--mc-text-secondary);
}

.moeble-spinner-small {
    display: inline-block;
    width: 14px;
    height: 14px;
    border: 2px solid var(--mc-border);
    border-top-color: var(--mc-text-primary);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

.moeble-field-input.loading {
    opacity: 0.6;
    pointer-events: none;
}

/* ==========================================================================
   Choice Cards (Radio/Checkbox) - ESTILO SHELL VERTICAL
   ========================================================================== */
.moeble-choices {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}

.moeble-choice {
    position: relative;
    width: 100%;
}

.moeble-choice-input {
    position: absolute;
    opacity: 0;
    width: 100%;
    height: 100%;
    cursor: pointer;
    z-index: 2;
}

/* Label com estilo shell (igual aos inputs do login) */
.moeble-choice-label {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 16px;
    width: 100%;
    height: 56px;
    padding: 0 24px;
    
    /* Estilo shell igual aos inputs */
    border-radius: 28px !important;
    border: 1px solid #6e6e73 !important;
    background-color: hsla(0, 0%, 100%, 0.04) !important;
    
    color: #FFFFFF;  /* BRANCO para melhor legibilidade */
    font-size: 15px;  /* Aumentado 2px */
    font-weight: 400;
    text-transform: none;  /* SEM UPPERCASE */
    letter-spacing: 0;
    text-align: left;
    cursor: pointer;
    transition: all 0.3s ease;  /* Transição suave */
    box-sizing: border-box;
}

/* Estado checked (selecionado) - MUITO MAIS CLARO */
.moeble-choice-input:checked + .moeble-choice-label {
    border: 1px solid #FFFFFF !important;
    background-color: hsla(0, 0%, 100%, 0.18) !important;  /* Bem mais claro */
    color: var(--mc-text-primary);
    box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.2);  /* Brilho extra */
}

/* Hover - cinza levemente mais claro com transição suave */
.moeble-choice-input:hover + .moeble-choice-label {
    border: 1px solid #86868b !important;
    background-color: hsla(0, 0%, 100%, 0.08) !important;
    transition: all 0.3s ease;
}

/* Choice Icons - SVG (menor e na esquerda) */
.moeble-choice-icon {
    width: 20px;
    height: 20px;
    color: #a3a3a3; /* Ícones mais claros para melhor contraste */
    flex-shrink: 0;
}

.moeble-choice-input:checked + .moeble-choice-label .moeble-choice-icon {
    color: var(--mc-text-primary);
}

.moeble-choice-input:hover + .moeble-choice-label .moeble-choice-icon {
    color: #86868b;
}

/* ==========================================================================
   Buttons - ESTILO CINZA ESCURO
   ========================================================================== */
.moeble-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 18px 24px;
    font-size: 14px;
    font-weight: 500;
    font-family: inherit;
    letter-spacing: 0.02em;
    border: none;
    border-radius: 50px; /* Pill shape como no print */
    cursor: pointer;
    transition: var(--mc-transition);
    text-decoration: none;
    text-align: center;
}

.moeble-btn-primary {
    /* CORES */
    background-color: #ffffff !important;
    color: #000000 !important;
    
    /* FORMATO */
    border-style: none !important;
    border-radius: 20px !important;
    
    /* ESPAÇAMENTO */
    padding: 10px 40px !important;
    
    /* TIPOGRAFIA */
    font-size: 13px !important;  /* Padronizado em 13px */
    font-weight: 500 !important;
    letter-spacing: 0 !important;  /* Sem letter-spacing */
    text-transform: none !important;  /* SEM UPPERCASE */
}

.moeble-btn-primary:hover {
    background-color: #f5f5f5 !important;
    color: #000000 !important;
    border-style: none !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.2) !important;
}

.moeble-btn-secondary {
    background: transparent;
    color: var(--mc-text-primary);
    border: 1px solid var(--mc-border);
}

.moeble-btn-secondary:hover {
    background: var(--mc-bg-button);
    border-color: var(--mc-text-muted);
}

.moeble-btn-text {
    background: transparent;
    color: var(--mc-text-secondary);
    border: none;
    padding: 8px 0;
    font-weight: 400;
}

.moeble-btn-text:hover {
    color: var(--mc-text-primary);
}

.moeble-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ==========================================================================
   Primeiro Acesso - Botões Isolados (prefixo moeble-pa-)
   ========================================================================== */
.moeble-pa-buttons {
    display: flex !important;
    gap: 12px !important;
    margin-top: 24px !important;
    width: 100% !important;
}

/* Botão Voltar */
.moeble-pa-btn-voltar {
    all: unset !important; /* Reset total */
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    height: 48px !important;
    padding: 0 20px !important;
    background: transparent !important;
    color: #888888 !important;
    border: 1px solid #333333 !important;
    border-radius: 10px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.moeble-pa-btn-voltar:hover {
    background: #1a1a1a !important;
    border-color: #444444 !important;
    color: #FFFFFF !important;
}

/* Botão Criar Senha */
.moeble-pa-btn-criar {
    all: unset !important; /* Reset total */
    flex: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    height: 48px !important;
    padding: 0 20px !important;
    background: #FFFFFF !important;
    color: #000000 !important;
    border: none !important;
    border-radius: 10px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    box-sizing: border-box !important;
}

.moeble-pa-btn-criar:hover:not(:disabled) {
    background: #f0f0f0 !important;
    transform: translateY(-1px) !important;
    box-shadow: 0 4px 12px rgba(255, 255, 255, 0.15) !important;
}

.moeble-pa-btn-criar:disabled {
    background: #333333 !important;
    color: #666666 !important;
    cursor: not-allowed !important;
}

.moeble-pa-btn-criar svg {
    flex-shrink: 0 !important;
}

/* ==========================================================================
   Form Navigation - Botões Lado a Lado
   ========================================================================== */
.moeble-form-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 32px;
}

/* Botão Voltar - Classe específica para evitar conflito com WP */
.mc-back-link,
a.mc-back-link {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    padding: 10px 18px !important;
    background: #000000 !important;
    border: 1px solid #FFFFFF !important;
    border-radius: 10px !important;
    color: #FFFFFF !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    text-decoration: none !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
    flex: 0 0 auto !important;
    line-height: 1 !important;
    box-sizing: border-box !important;
}

.mc-back-link:hover,
a.mc-back-link:hover {
    background: #1a1a1a !important;
    border-color: #FFFFFF !important;
    color: #FFFFFF !important;
    transform: translateY(-1px) !important;
    text-decoration: none !important;
}

.mc-back-link svg {
    width: 12px !important;
    height: 12px !important;
    flex-shrink: 0 !important;
}

/* Botão Continuar ocupa espaço restante */
.moeble-form-nav .moeble-btn {
    flex: 1 1 auto;
}

/* ==========================================================================
   Links - BRANCOS, NÃO ROXOS
   ========================================================================== */
.moeble-login-links {
    text-align: center;
    margin-top: 32px;
}

.moeble-login-links a {
    color: #ffffff !important;  /* Branco puro */
    font-size: 13px;  /* Padronizado */
    font-weight: 400;
    text-decoration: none;   /* sem sublinhado */
    transition: var(--mc-transition);
}

.moeble-login-links a:hover {
    opacity: 0.8;  /* Levemente transparente no hover */
    color: #ffffff !important;
}

.moeble-divider {
    display: flex;
    align-items: center;
    gap: 16px;
    margin: 24px 0;
    color: var(--mc-text-muted);
    font-size: 13px;
}

.moeble-divider::before,
.moeble-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--mc-border);
}

/* ==========================================================================
   Address Grid
   ========================================================================== */
.moeble-address-grid {
    display: grid;
    gap: 16px;
}

.moeble-address-row-2 {
    grid-template-columns: 1fr 1fr;
}

.moeble-address-row-3 {
    grid-template-columns: 2fr 1fr;
}

@media (max-width: 400px) {
    .moeble-address-row-2,
    .moeble-address-row-3 {
        grid-template-columns: 1fr;
    }
}

/* ==========================================================================
   Loading Overlay
   ========================================================================== */
.moeble-loading {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    gap: 16px;
}

.moeble-loading.active {
    display: flex;
}

.moeble-spinner {
    width: 40px;
    height: 40px;
    border: 2px solid var(--mc-border);
    border-top-color: var(--mc-text-primary);
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

.moeble-loading-text {
    color: var(--mc-text-primary);
    font-size: 13px;  /* Padronizado */
}

/* ==========================================================================
   Messages
   ========================================================================== */
.moeble-message {
    padding: 16px;
    border-radius: var(--mc-radius-sm);
    margin-bottom: 24px;
    font-size: 13px;  /* Padronizado */
}

.moeble-message-success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid var(--mc-success);
    color: var(--mc-success);
}

.moeble-message-error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid var(--mc-error);
    color: var(--mc-error);
}

.moeble-message-warning {
    background: rgba(245, 158, 11, 0.1);
    border: 1px solid var(--mc-warning);
    color: var(--mc-warning);
}

.moeble-message-info {
    background: rgba(59, 130, 246, 0.1);
    border: 1px solid #3B82F6;
    color: #3B82F6;
}

/* ==========================================================================
   Login Form
   ========================================================================== */
.moeble-login-form {
    margin-top: 32px;
}

.moeble-toggle-password {
    position: absolute !important;
    right: 18px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    color: var(--mc-text-muted) !important;
    cursor: pointer !important;
    padding: 0 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    transition: color 0.2s ease !important;
    box-shadow: none !important;
    outline: none !important;
    width: auto !important;
    height: auto !important;
}

.moeble-toggle-password:hover {
    color: var(--mc-text-primary) !important;
    background: transparent !important;
    background-color: transparent !important;
    box-shadow: none !important;
}

.moeble-toggle-password svg {
    width: 20px !important;
    height: 20px !important;
    display: block !important;
}

/* ==========================================================================
   Analysis Page
   ========================================================================== */
.moeble-analysis-page {
    text-align: center;
    padding: 20px 0;
}

.moeble-analysis-icon {
    width: 48px;  /* Reduzido de 64px */
    height: 48px;  /* Reduzido de 64px */
    margin: 0 auto 20px;
    color: var(--mc-text-muted);
}

.moeble-analysis-icon.approved {
    color: var(--mc-success);
}

.moeble-analysis-icon.rejected {
    color: var(--mc-error);
}

.moeble-analysis-icon svg {
    width: 100%;
    height: 100%;
}

.moeble-analysis-title {
    font-size: 18px;  /* Reduzido de 20-24px */
    font-weight: 600;
    color: var(--mc-text-primary);
    margin: 0 0 12px 0;
}

.moeble-analysis-description {
    font-size: 13px;  /* Reduzido de 15px */
    color: var(--mc-text-secondary);
    line-height: 1.5;
    margin: 0 0 20px 0;
}

.moeble-analysis-info {
    background: var(--mc-bg-button);
    border-radius: var(--mc-radius-sm);
    padding: 20px;
    margin-top: 24px;
    text-align: left;
}

.moeble-analysis-info h3 {
    font-size: 13px;  /* Reduzido de 14px */
    font-weight: 600;
    color: var(--mc-text-primary);
    margin: 0 0 10px 0;
}

.moeble-analysis-info ul {
    margin: 0;
    padding-left: 20px;
}

.moeble-analysis-info li {
    font-size: 13px;  /* Reduzido de 14px */
    color: var(--mc-text-secondary);
    line-height: 1.6;
}

/* Botões menores na página de análise */
.moeble-analysis-page .moeble-btn {
    font-size: 13px !important;
    padding: 10px 20px !important;
    min-height: 40px !important;
}

/* ==========================================================================
   Modal
   ========================================================================== */
.moeble-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

.moeble-modal.active {
    display: flex;
}

.moeble-modal-content {
    background: var(--mc-bg-page);
    border: 1px solid var(--mc-border);
    border-radius: var(--mc-radius);
    padding: 32px;
    max-width: 400px;
    width: 100%;
    position: relative;
}

.moeble-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    background: none;
    border: none;
    color: var(--mc-text-muted);
    font-size: 24px;
    cursor: pointer;
    padding: 4px;
    line-height: 1;
}

.moeble-modal-close:hover {
    color: var(--mc-text-primary);
}

/* ==========================================================================
   Checkbox LGPD
   ========================================================================== */
.moeble-checkbox-field {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.moeble-checkbox-field input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--mc-text-primary);
    flex-shrink: 0;
}

.moeble-checkbox-label {
    font-size: 13px;
    color: var(--mc-text-secondary);
    line-height: 1.5;
}

.moeble-checkbox-label a {
    color: var(--mc-text-primary);
    text-decoration: underline;
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 480px) {
    .moeble-cadastro-container {
        padding: 16px;
    }
    
    .moeble-cadastro-card {
        padding: 24px 16px;
    }
    
    .moeble-choices {
        grid-template-columns: 1fr;
    }
    
    .moeble-btn {
        padding: 16px 20px;
    }
}

/* ==========================================================================
   Animations
   ========================================================================== */
@keyframes slideDown {
    from {
        opacity: 0;
        max-height: 0;
    }
    to {
        opacity: 1;
        max-height: 200px;
    }
}

@keyframes slideUp {
    from {
        opacity: 1;
        max-height: 200px;
    }
    to {
        opacity: 0;
        max-height: 0;
    }
}

@keyframes shake {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-5px); }
    75% { transform: translateX(5px); }
}

.shake {
    animation: shake 0.3s ease;
}

/* ==========================================================================
   Termos de Uso - Checkbox e Links (classe isolada)
   ========================================================================== */
.mc-terms-checkbox {
    display: flex !important;
    align-items: flex-start !important;
    gap: 12px !important;
}

.mc-terms-text {
    margin: 0 !important;
    padding: 0 !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    color: var(--mc-text-secondary) !important;
    line-height: 1.5 !important;
    display: inline !important;
}

.mc-terms-link {
    color: #FFFFFF !important;
    text-decoration: underline !important;
    font-size: 13px !important;
    font-weight: 400 !important;
    cursor: pointer !important;
    transition: opacity 0.2s ease !important;
}

.mc-terms-link:hover {
    opacity: 0.8 !important;
    color: #FFFFFF !important;
}

/* ==========================================================================
   Modal Grande (Termos/Política)
   ========================================================================== */
.moeble-modal-large {
    max-width: 600px !important;
    max-height: 80vh !important;
}

.moeble-modal-scroll {
    max-height: 50vh;
    overflow-y: auto;
    padding-right: 10px;
}

.moeble-modal-scroll::-webkit-scrollbar {
    width: 6px;
}

.moeble-modal-scroll::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.1);
    border-radius: 3px;
}

.moeble-modal-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.3);
    border-radius: 3px;
}

.moeble-modal-scroll h3 {
    font-size: 14px;
    font-weight: 600;
    color: #FFFFFF;
    margin: 20px 0 8px 0;
}

.moeble-modal-scroll h3:first-child {
    margin-top: 0;
}

.moeble-modal-scroll p {
    font-size: 13px;
    color: var(--mc-text-secondary);
    line-height: 1.6;
    margin: 0 0 12px 0;
}

.moeble-modal-footer {
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.moeble-modal-close-btn {
    min-width: 120px;
}

/* ==========================================================================
   Field Hint (dica abaixo do campo)
   ========================================================================== */
.moeble-field-hint {
    display: block;
    font-size: 13px;  /* Aumentado 2px */
    color: #CCCCCC;  /* Mais claro */
    margin-top: 6px;
    opacity: 1;  /* Sem opacidade */
}

/* ==========================================================================
   Login Inteligente - Duas Etapas
   ========================================================================== */

/* Steps Container */
.moeble-login-step {
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.moeble-login-step-active {
    display: block;
}

/* Greeting (Saudação) */
.moeble-login-greeting {
    font-size: 28px;
    font-weight: 600;
    color: #FFFFFF;
    margin: 0 0 8px 0;
    line-height: 1.2;
}

/* Email Display com botão Trocar */
.moeble-login-email-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    margin-top: 4px;
}

.moeble-login-email-display span {
    font-size: 14px;
    color: #8E8E93;
}

.moeble-login-change-email {
    background: none;
    border: none;
    color: #FFFFFF;
    font-size: 13px;
    font-weight: 500;
    cursor: pointer;
    padding: 4px 8px;
    border-radius: 4px;
    transition: background 0.2s ease;
}

.moeble-login-change-email:hover {
    background: rgba(255, 255, 255, 0.1);
}

/* State Icons (Emojis) */
.moeble-login-state-icon {
    font-size: 48px;
    margin-bottom: 16px;
    line-height: 1;
}

/* Botão Secundário (Voltar) */
.moeble-btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 14px 24px;
    background: transparent;
    color: #FFFFFF;
    border: 1px solid #333333;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.moeble-btn-secondary:hover {
    background: rgba(255, 255, 255, 0.05);
    border-color: #555555;
}

/* Spinner no botão */
.moeble-btn-spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(0, 0, 0, 0.3);
    border-top-color: #000000;
    border-radius: 50%;
    animation: moeble-spin 0.8s linear infinite;
}

.moeble-btn-primary .moeble-btn-spinner {
    border-color: rgba(0, 0, 0, 0.3);
    border-top-color: #000000;
}

.moeble-btn-secondary .moeble-btn-spinner {
    border-color: rgba(255, 255, 255, 0.3);
    border-top-color: #FFFFFF;
}

@keyframes moeble-spin {
    to {
        transform: rotate(360deg);
    }
}

/* Mensagens com animação */
.moeble-message {
    padding: 12px 16px;
    border-radius: 8px;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 16px;
    opacity: 1;
    transform: translateY(0);
    transition: opacity 0.3s ease, transform 0.3s ease;
}

.moeble-message a {
    color: inherit;
}

.moeble-message-error {
    background: rgba(220, 53, 69, 0.15);
    color: #ff6b6b;
    border: 1px solid rgba(220, 53, 69, 0.3);
}

.moeble-message-success {
    background: rgba(40, 167, 69, 0.15);
    color: #69db7c;
    border: 1px solid rgba(40, 167, 69, 0.3);
}

.moeble-message-warning {
    background: rgba(255, 193, 7, 0.15);
    color: #ffd43b;
    border: 1px solid rgba(255, 193, 7, 0.3);
}

.moeble-message-info {
    background: rgba(23, 162, 184, 0.15);
    color: #66d9ef;
    border: 1px solid rgba(23, 162, 184, 0.3);
}

/* Login Links */
.moeble-login-links a {
    color: #8E8E93;
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s ease;
}

.moeble-login-links a:hover {
    color: #FFFFFF;
}

/* Link dentro de mensagens - tamanho consistente */
.moeble-message-link {
    color: #FFFFFF !important;
    text-decoration: underline;
    font-weight: 500;
}

.moeble-message-link:hover {
    opacity: 0.8;
}

/* Botão secundário (Voltar) - mesmo border-radius do primário */
.moeble-btn-secondary {
    border-radius: 12px !important;
}

/* ==========================================================================
   Checkbox Group - Formulário de Indústria
   ========================================================================== */
.moeble-checkbox-group {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    margin-top: 12px;
}

.moeble-checkbox-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px solid var(--mc-border);
    border-radius: var(--mc-radius-sm);
    cursor: pointer;
    transition: var(--mc-transition);
}

.moeble-checkbox-item:hover {
    background: rgba(255, 255, 255, 0.06);
    border-color: rgba(255, 255, 255, 0.2);
}

.moeble-checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--mc-success);
    cursor: pointer;
}

.moeble-checkbox-item .moeble-checkbox-label {
    font-size: 13px;
    color: var(--mc-text-primary);
    flex: 1;
}

.moeble-checkbox-item:has(input:checked) {
    background: rgba(34, 197, 94, 0.1);
    border-color: rgba(34, 197, 94, 0.3);
}

/* Textarea */
.moeble-field-textarea {
    min-height: 100px;
    resize: vertical;
}

/* Address Preview */
.moeble-address-preview {
    padding: 12px 16px;
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    border-radius: var(--mc-radius-sm);
    color: var(--mc-text-primary);
    font-size: 14px;
}

@media (max-width: 480px) {
    .moeble-checkbox-group {
        grid-template-columns: 1fr;
    }
}

/* Link primário (Voltar para login, etc) */
.moeble-link-primary {
    color: #FFFFFF;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: opacity 0.2s ease;
}

.moeble-link-primary:hover {
    opacity: 0.8;
}
