:root {
    /* ── awa-b2b-ro — design tokens ─── */
    --awa-b2b-ro-c1: #f7f8fa;
    --awa-b2b-ro-c2: #eef1f5;
    --awa-b2b-ro-c3: #7f1d1d;
    --awa-b2b-ro-c4: #f0fdf4;
    --awa-b2b-ro-c5: #10b981;
    --awa-b2b-ro-c6: #065f46;
    --awa-b2b-ro-c7: #fff;
    --awa-b2b-ro-c8: #b2b;
}

/**
 * AWA B2B Register Form — Override do módulo register.css
 *
 * Repositório de regras CSS que sobrescrevem o register.css do módulo B2B.
 * Este arquivo é carregado APÓS register.css na cascata.
 *
 * CORREÇÃO DE SELETOR (2026-04-09):
 *   O seletor original `html body .page-wrapper .b2b-register-page` nunca
 *   funcionava na página de cadastro porque ela usa page-layout-empty —
 *   que NÃO renderiza .page-wrapper. Substituído por:
 *   `body.b2b-register-index .b2b-register-page` (body-class sempre presente).
 *
 * Regras: melhorias de UX/UI alinhadas com awa-bundle-auth.css
 */

/* =====================================================
   INPUT FIELDS — Melhorias de awa-bundle-auth
   ===================================================== */
body.b2b-register-index .b2b-register-page .field .input-text,
body.b2b-register-index .b2b-register-page .field input[type="text"],
body.b2b-register-index .b2b-register-page .field input[type="email"],
body.b2b-register-index .b2b-register-page .field input[type="tel"],
body.b2b-register-index .b2b-register-page .field input[type="password"],
body.b2b-register-index .b2b-register-page .field select {
    padding: var(--awa-space-3, 12px) var(--awa-space-4, 16px) !important;
    border-color: var(--awa-auth-border-strong, #c7d2e1) !important;
    border-width: 1px !important;
    border-radius: var(--awa-radius-md, 8px) !important;
    font-size: var(--awa-font-md, 15px) !important;
    line-height: 1.5;
    color: var(--awa-auth-text, var(--awa-text, #1a1a1a));
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

body.b2b-register-index .b2b-register-page .field .input-text::placeholder,
body.b2b-register-index .b2b-register-page .field input::placeholder {
    color: var(--awa-text-light, #aaaaaa) !important;
}

/* =====================================================
   FOCUS STATES — Alinhamento com awa-bundle-auth
   ===================================================== */
body.b2b-register-index .b2b-register-page .field .input-text:focus,
body.b2b-register-index .b2b-register-page .field .input-text:focus-visible,
body.b2b-register-index .b2b-register-page .field input:focus,
body.b2b-register-index .b2b-register-page .field input:focus-visible,
body.b2b-register-index .b2b-register-page .field select:focus,
body.b2b-register-index .b2b-register-page .field select:focus-visible {
    border-color: var(--awa-auth-primary, #b73337) !important;
    box-shadow: 0 0 0 3px rgb(183 51 55 / 18%) !important;
    outline: none !important;
}

/* =====================================================
   LABELS — Melhorias de tipografia
   ===================================================== */
body.b2b-register-index .b2b-register-page .field .label {
    font-weight: var(--awa-weight-semibold, 600);
    font-size: var(--awa-font-base, 14px);
    color: var(--awa-auth-text, var(--awa-text, #1a1a1a));
    margin-bottom: var(--awa-space-2, 8px);
    letter-spacing: -0.01em;
    text-align: start;
}

body.b2b-register-index .b2b-register-page .field.required > .label::after {
    content: ' *';
    color: var(--awa-error, #dc2626);
    margin-left: 2px;
}

/* =====================================================
   FIELD ROW LAYOUT — Refine gap e flex
   ===================================================== */
.b2b-register-page .field-row {
    display: flex;
    gap: var(--awa-space-4, 16px) !important;
    flex-wrap: wrap;
}

.b2b-register-page .field-row .field {
    flex: 1 1 auto;
    min-width: 0;
}

.b2b-register-page .field-row .field.field-narrow {
    flex: 0 0 130px;
    max-width: 160px;
}

.b2b-register-page .field-row .field.field-wide {
    flex: 1 1 0%;
    min-width: 0;
}

.b2b-register-page .control--cep {
    display: flex;
    align-items: center;
    gap: var(--awa-space-2, 8px);
}

.b2b-register-page .input-text--cep {
    max-width: 160px;
}

.b2b-register-page .cep-loading {
    display: none;
    font-size: var(--awa-font-sm, 12px);
    color: var(--awa-text-light, var(--b2b-reg-c17, #9ca3af));
}

.b2b-register-page .cep-loading.is-visible {
    display: inline;
}

.b2b-register-page .field-feedback,
.b2b-register-page .cnpj-feedback.field-feedback {
    margin-top: 4px;
    font-size: var(--awa-font-sm, 12px);
}

.b2b-register-page .cnpj-feedback.ok {
    color: var(--awa-success, var(--b2b-reg-c28, #059669));
}

.b2b-register-page .cnpj-feedback.err {
    color: var(--awa-error, var(--b2b-reg-c16, #dc2626));
}

.b2b-register-page .field-row .field.field-uf {
    flex: 0 0 100px;
    max-width: 100px;
}

/* =====================================================
   FORM SECTIONS — Focus/error states
   ===================================================== */
body.b2b-register-index .b2b-register-page .form-section:focus-within {
    border-color: var(--awa-auth-border-strong, #c7d2e1) !important;
    box-shadow: 0 0 0 3px rgb(183 51 55 / 8%), 0 8px 18px rgb(15 23 42 / 6%) !important;
}

body.b2b-register-index .b2b-register-page .form-section.has-errors {
    border-color: var(--awa-error-border, #fecaca) !important;
    box-shadow: 0 0 0 2px rgb(220 38 38 / 6%) !important;
}

/* =====================================================
   ERROR MESSAGES — Melhorias de acessibilidade
   ===================================================== */
body.b2b-register-index .b2b-register-page .mage-error,
body.b2b-register-index .b2b-register-page .field-error .input.mage-error {
    border-color: var(--awa-error, #dc2626) !important;
    box-shadow: 0 0 0 3px rgb(220 38 38 / 10%) !important;
}

body.b2b-register-index .b2b-register-page .mage-error {
    color: var(--awa-error-text, var(--awa-b2b-ro-c3));
    font-size: var(--awa-font-sm, 12px);
    margin-top: 6px;
}

/* =====================================================
   BUTTON — Melhorias de estado
   ===================================================== */
body.b2b-register-index .b2b-register-page .action.primary {
    border-radius: var(--awa-radius-md, 8px);
    font-weight: var(--awa-weight-semibold, 600);
    letter-spacing: -0.01em;
    min-height: var(--awa-btn-h, 44px);
    padding: 0 var(--awa-space-4, 16px);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

body.b2b-register-index .b2b-register-page .action.primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 16px rgb(183 51 55 / 20%);
}

body.b2b-register-index .b2b-register-page .action.primary:focus-visible {
    outline: 2px solid var(--awa-auth-primary, #b73337);
    outline-offset: 2px;
}

/* =====================================================
   PROGRESS STEPS — Refinamentos
   ===================================================== */
.b2b-register-page .progress-step {
    font-size: var(--awa-font-sm, 12px);
    border-radius: var(--awa-radius-step, 10px);
    transition: all 0.2s ease;
}

.b2b-register-page .progress-step:hover {
    border-color: var(--awa-border-strong, #d0d0d0);
    background: var(--awa-bg, var(--awa-b2b-ro-c7));
}

.b2b-register-page .progress-step:focus-visible {
    outline: 2px solid var(--awa-auth-primary, #b73337);
    outline-offset: 2px;
}

/* =====================================================
   RESPONSIVE — Mobile/tablet improvements
   ===================================================== */
@media (max-width: 576px) {
    .b2b-register-page .field-row {
        gap: var(--awa-space-3, 12px) !important;
        flex-direction: column;
    }

    .b2b-register-page .field-row .field.field-narrow {
        flex: 1 1 100%;
        max-width: none;
    }

    body.b2b-register-index .b2b-register-page .field .input-text,
    body.b2b-register-index .b2b-register-page .field input,
    body.b2b-register-index .b2b-register-page .field select {
        min-height: var(--awa-input-h, 44px) !important;
        padding: 0 var(--awa-space-3, 12px) !important;
        font-size: var(--awa-font-lg, 16px) !important; /* Evita zoom automático no iOS */
    }

    body.b2b-register-index .b2b-register-page .form-section {
        padding: 16px 14px 14px;
    }
}

@media (max-width: 768px) {
    body.b2b-register-index .b2b-register-page {
        padding: var(--awa-space-6, 24px) var(--awa-space-4, 16px);
    }

    body.b2b-register-index .b2b-register-page .b2b-register-container {
        padding: var(--awa-space-7, 28px);
    }
}

/* =====================================================
   HELP TEXT & NOTES — Styling improvement
   ===================================================== */
.b2b-register-page .field .note,
.b2b-register-page .field-note {
    font-size: var(--awa-font-sm, 12px);
    color: var(--awa-text-light, #aaaaaa) !important;
    line-height: 1.5;
    margin-top: 6px;
}

/* =====================================================
   REQUIRED FIELD INDICATOR — Better visibility
   ===================================================== */
body.b2b-register-index .b2b-register-page .field.required > .label span::after {
    content: ' *';
    color: var(--awa-error, #dc2626);
    font-weight: var(--awa-weight-bold, 700);
    margin-left: 2px;
}

/* =====================================================
   FIX CRÍTICO: LAYOUT — Reset do display:grid/justify-items:center
   =====================================================
   O awa-bundle-auth.css e refine.css definem:
     .b2b-login-page { display: grid; justify-items: center; }
     .b2b-register-shell-content { width: min(100%, 468px); }
   Isso foi pensado para o LOGIN (card estreito, 468px), mas o
   template de REGISTRO usa .b2b-login-page, quebrando o layout.
   Usa o ID #b2b-register-shell (especificidade máxima) para corrigir.
*/
/* Overrides display:grid + justify-items:center from .b2b-login-page (auth CSS).
   flex-direction:column keeps logo and form stacked vertically.
   align-items:stretch allows children to fill the width. */
#b2b-register-shell {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 0 !important;
    padding-bottom: var(--awa-space-10, 40px);
    background:
        radial-gradient(circle at 8% -8%, rgb(183 51 55 / 8%), transparent 42%),
        radial-gradient(circle at 92% 8%, rgb(142 38 41 / 6%), transparent 38%),
        linear-gradient(180deg, var(--awa-b2b-ro-c1) 0%, var(--awa-b2b-ro-c2) 100%) !important;
}

/* Fix logo: auth CSS constrains it to min(100%, 468px); make it full-width with a real max */
#b2b-register-shell .b2b-login-logo {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box;
    padding: var(--awa-space-6, 24px) var(--awa-space-4-5, 18px) var(--awa-space-4-5, 18px) !important;
    text-align: center;
    background: transparent !important;
    border-bottom: 1px solid rgba(0,0,0,0.06) !important;
}

/* Shell content: full-width container, max-width handled by inner .b2b-register-page */
#b2b-register-shell .b2b-register-shell-content {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    box-sizing: border-box;
}

/* Enforce proper register-page width if module CSS loses cascade */
body.b2b-register-index .b2b-register-page {
    max-width: 860px !important;
    margin: 0 auto !important;
    padding: var(--awa-space-6, 24px) var(--awa-space-4, 16px) !important;
    box-sizing: border-box;
    width: 100% !important;
}

/* =====================================================
   BOTÃO SUBMIT — width 100%, brand primary
   ===================================================== */
body.b2b-register-index .b2b-register-page .actions-toolbar .action.submit.primary,
body.b2b-register-index .b2b-register-page .actions-toolbar .create-b2b-account {
    width: 100% !important;
    padding: 0 var(--awa-space-6, 24px) !important;
    font-weight: var(--awa-weight-semibold, 600) !important;
    font-size: var(--awa-font-md, 15px) !important;
    background: var(--awa-primary) !important;
    color: var(--awa-text-inverse, var(--awa-b2b-ro-c7)) !important;
    border: none !important;
    border-radius: var(--awa-radius-step, 10px) !important;
    min-height: var(--awa-btn-h-lg, 52px) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: -0.01em;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
}

body.b2b-register-index .b2b-register-page .actions-toolbar .action.submit.primary:hover,
body.b2b-register-index .b2b-register-page .actions-toolbar .create-b2b-account:hover {
    background: var(--awa-primary-hover, #8e2629) !important;
    box-shadow: 0 6px 18px rgba(183, 51, 55, 0.30) !important;
    transform: translateY(-1px);
}

/* =====================================================
   CHECKBOX — custom AWA brand style
   ===================================================== */
body.b2b-register-index .b2b-register-page .terms-section .field.choice {
    background: var(--awa-bg-subtle, #fafafa);
    border: 1px solid var(--awa-border, #e5e5e5);
    border-radius: var(--awa-radius-step, 10px);
    padding: var(--awa-space-4, 16px);
}

body.b2b-register-index .b2b-register-page .terms-section input[type="checkbox"].checkbox {
    appearance: none;
    -webkit-appearance: none;
    width: 20px !important;
    min-width: 20px;
    height: 20px !important;
    margin: 0 !important;
    margin-top: 1px !important;
    flex-shrink: 0;
    border: 2px solid var(--awa-border-strong, #d0d0d0);
    border-radius: 5px;
    background: var(--awa-bg, var(--awa-b2b-ro-c7));
    cursor: pointer;
    position: relative;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
    vertical-align: top;
}

body.b2b-register-index .b2b-register-page .terms-section input[type="checkbox"].checkbox:checked {
    background: var(--awa-primary);
    border-color: var(--awa-primary);
}

body.b2b-register-index .b2b-register-page .terms-section input[type="checkbox"].checkbox:checked::after {
    content: "";
    display: block;
    position: absolute;
    top: 2px;
    left: 5px;
    width: 6px;
    height: 10px;
    border: 2px solid var(--awa-text-inverse, var(--awa-b2b-ro-c7));
    border-top: none;
    border-left: none;
    transform: rotate(45deg);
}

body.b2b-register-index .b2b-register-page .terms-section input[type="checkbox"].checkbox:focus-visible {
    outline: none;
    box-shadow: 0 0 0 3px rgba(183, 51, 55, 0.20) !important;
    border-color: var(--awa-primary);
}

body.b2b-register-index .b2b-register-page .terms-section input[type="checkbox"].checkbox:hover:not(:checked) {
    border-color: var(--awa-primary);
}

@media (max-width: 480px) {
    body.b2b-register-index .b2b-register-page .actions-toolbar .action.submit.primary,
    body.b2b-register-index .b2b-register-page .actions-toolbar .create-b2b-account {
        padding: var(--awa-space-3-5, 14px) var(--awa-space-6, 24px) !important;
        font-size: var(--awa-font-md, 15px) !important;
        min-height: 50px;
    }
}

/* =====================================================
   HONEYPOT FIX — impede overflow horizontal (#b2b_website)
   O input honeypot herda width:100% !important de regras
   globais (styles-m, awa-bundle-site). Este reset garante
   que o campo fique completamente invisível e sem layout.
   ===================================================== */
.b2b-register-form .b2b-ht,
.b2b-register-form #b2b_website,
#b2b-register-form > .b2b-ht {
    width: 0 !important;
    min-width: 0 !important;
    max-width: 0 !important;
    height: 0 !important;
    max-height: 0 !important;
    min-height: 0 !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0 !important;
    overflow: hidden !important;
    position: absolute !important;
    opacity: 0 !important;
    pointer-events: none !important;
    clip: rect(0, 0, 0, 0) !important;
    -webkit-appearance: none !important;
}

/* =====================================================
   FORM CONTAINER — async CSS removes padding/border/shadow from container
   ===================================================== */
body.b2b-register-index #b2b-register-shell {
    background: oklch(98.5% 0.004 20) !important;
    border-radius: var(--awa-radius-lg, 16px) !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: clamp(20px, 4vw, 34px) !important;
    box-sizing: border-box;
}

body.b2b-register-index #b2b-register-shell .b2b-register-container {
    background: transparent !important;
    border-radius: 0 !important;
    border: 0 !important;
    box-shadow: none !important;
    padding: 0 !important;
    box-sizing: border-box;
}

/* FORM GRID — async CSS overrides display:grid with display:block, removes gap */
body.b2b-register-index #b2b-register-shell .b2b-register-form {
    display: grid !important;
    gap: var(--awa-space-4-5, 18px) !important;
}

/* FORM SECTIONS — async CSS (styles-l theme) strips border/bg/radius/padding */
body.b2b-register-index #b2b-register-shell .b2b-register-page .form-section {
    padding: 0 0 var(--awa-space-4, 16px) !important;
    border: 0 !important;
    border-radius: 0 !important;
    background: transparent !important;
    box-shadow: none !important;
    margin-bottom: 0 !important;
}

body.b2b-register-index #b2b-register-shell .b2b-register-page .form-section:focus-within {
    border-color: rgba(183, 51, 55, 0.35) !important;
    box-shadow: 0 0 0 3px rgb(183 51 55 / 8%), 0 8px 18px rgb(15 23 42 / 6%) !important;
}

body.b2b-register-index #b2b-register-shell .b2b-register-page .form-section.has-errors {
    border-color: var(--awa-error-border, #fecaca) !important;
    box-shadow: 0 0 0 2px rgb(220 38 38 / 6%) !important;
}

/* FORM SECTION BODY — ensure it's visible (not hidden by async CSS) */
body.b2b-register-index #b2b-register-shell .b2b-register-page .form-section .form-section__body {
    display: block !important;
    margin-top: 16px;
}

body.b2b-register-index #b2b-register-shell .b2b-register-page .form-section.is-collapsed .form-section__body {
    display: none !important;
    margin-top: 0 !important;
}

/* =====================================================
   BENEFITS GRID — respeita is-hidden / aria-hidden do JS
   ===================================================== */
body.b2b-register-index .b2b-register-page .b2b-benefits {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--awa-space-4-5, 18px);
}

body.b2b-register-index #b2b-register-shell .b2b-register-page .b2b-benefits.is-hidden,
body.b2b-register-index #b2b-register-shell #b2b-register-benefits[aria-hidden="true"] {
    display: none !important;
}

@media (min-width: 601px) {
    body.b2b-register-index #b2b-register-shell #b2b-register-benefits:not(.is-hidden):not([aria-hidden="true"]) {
        display: grid !important;
    }
}

/* =====================================================
   FORM SECTION TOGGLE — reset AWA button red background
   Async AWA CSS (awa-bundle-phases, styles-l) overrides
   the module's transparent button with rgb(183,51,55).
   ===================================================== */
body.b2b-register-index .b2b-register-page .form-section .form-section__toggle {
    background: transparent !important;
    background-image: none !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    color: var(--awa-text-primary, #333) !important;
    font-size: var(--awa-font-xl, 18px) !important;
    font-weight: var(--awa-weight-semibold, 600) !important;
    box-shadow: none !important;
    width: 100% !important;
    text-align: left !important;
    display: flex !important;
    align-items: center !important;
    gap: var(--awa-space-2-5, 10px) !important;
    cursor: default !important;
    min-height: auto !important;
    line-height: 1.2 !important;
}

body.b2b-register-index .b2b-register-page .form-section .form-section__toggle::before {
    content: attr(data-step-number) !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 50% !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    background: linear-gradient(135deg, var(--awa-primary, #b73337) 0%, #8e2629 100%) !important;
    color: var(--awa-text-inverse, var(--awa-b2b-ro-c7)) !important;
    font-size: var(--awa-font-sm, 12px) !important;
    font-weight: var(--awa-weight-bold, 700) !important;
    box-shadow: 0 4px 12px rgb(183 51 55 / 20%) !important;
}

body.b2b-register-index .b2b-register-page .form-section .form-section__toggle:hover {
    background: transparent !important;
    box-shadow: none !important;
    transform: none !important;
}

body.b2b-register-index .b2b-register-page .form-section .form-section__toggle:focus-visible {
    outline: 2px solid var(--awa-primary, #b73337) !important;
    outline-offset: 2px;
    box-shadow: none !important;
}

/* =====================================================
   REFINO VISUAL — suaviza excesso de sombra, lift e blocos duplos
   ===================================================== */

body.b2b-register-index #b2b-register-shell .b2b-register-container {
    border: 0 !important;
    box-shadow: none !important;
    background: transparent !important;
}

body.b2b-register-index #b2b-register-shell .b2b-register-page .form-section {
    background: var(--awa-bg, var(--awa-b2b-ro-c7)) !important;
    border-color: var(--awa-border, #e5e5e5) !important;
    box-shadow: none !important;
}

body.b2b-register-index #b2b-register-shell .b2b-register-page .form-section:focus-within,
body.b2b-register-index .b2b-register-page .form-section:focus-within {
    border-color: rgb(183 51 55 / 22%) !important;
    box-shadow: 0 0 0 2px rgb(183 51 55 / 10%) !important;
}

body.b2b-register-index .b2b-register-page .b2b-register-progress .progress-step,
body.b2b-register-index .b2b-register-page .terms-section .field.choice {
    background: var(--awa-bg-subtle, #fafafa) !important;
    border-color: var(--awa-border, #e5e5e5) !important;
    box-shadow: none !important;
}

body.b2b-register-index .b2b-register-page .b2b-register-progress .progress-step:hover {
    background: var(--awa-bg, var(--awa-b2b-ro-c7)) !important;
    border-color: rgb(183 51 55 / 16%) !important;
}

body.b2b-register-index .b2b-register-page .form-section .form-section__toggle {
    color: var(--awa-text, #1a1a1a) !important;
    gap: var(--awa-space-3, 12px) !important;
}

body.b2b-register-index .b2b-register-page .form-section .form-section__toggle::before {
    width: 26px !important;
    height: 26px !important;
    background: var(--awa-primary-light, #fef2f2) !important;
    color: var(--awa-primary-hover, #8e2629) !important;
    border: 1px solid rgb(183 51 55 / 14%) !important;
    box-shadow: none !important;
}

body.b2b-register-index .b2b-register-page .action.primary,
body.b2b-register-index .b2b-register-page .actions-toolbar .action.submit.primary,
body.b2b-register-index .b2b-register-page .actions-toolbar .create-b2b-account {
    border-radius: var(--awa-radius-inner, 12px) !important;
    box-shadow: none !important;
}

body.b2b-register-index .b2b-register-page .action.primary:hover,
body.b2b-register-index .b2b-register-page .actions-toolbar .action.submit.primary:hover,
body.b2b-register-index .b2b-register-page .actions-toolbar .create-b2b-account:hover {
    transform: none !important;
    box-shadow: 0 10px 22px rgb(183 51 55 / 16%) !important;
}

body.b2b-register-index .b2b-register-page .terms-section input[type="checkbox"].checkbox {
    border-color: var(--awa-border-strong, #d0d0d0) !important;
    box-shadow: none !important;
}

body.b2b-register-index .b2b-register-page .terms-section input[type="checkbox"].checkbox:focus-visible {
    box-shadow: 0 0 0 2px rgb(183 51 55 / 12%) !important;
}

/* =====================================================
   FASE FINAL — conversão + clean + acessibilidade
   1) Notas/ajuda com contraste AA
   2) Stepper mais limpo e legível
   3) Erro de campo com destaque consistente
   4) CTA sticky no mobile
   ===================================================== */

body.b2b-register-index .b2b-register-page .field .note,
body.b2b-register-index .b2b-register-page .field-note {
    color: var(--awa-gray-600, #4b5563) !important;
    font-size: var(--awa-font-sm, 13px);
    line-height: 1.55;
}


body.b2b-register-index .b2b-register-page .field .control input.mage-error,
body.b2b-register-index .b2b-register-page .field .control select.mage-error,
body.b2b-register-index .b2b-register-page .field .control textarea.mage-error {
    border-color: var(--awa-error, #dc2626) !important;
    box-shadow: 0 0 0 2px rgb(220 38 38 / 12%) !important;
    background: var(--awa-b2b-ro-c7);
}

body.b2b-register-index .b2b-register-page .mage-error,
body.b2b-register-index .b2b-register-page .field-error {
    color: var(--awa-b2b-ro-c3) !important;
    font-size: var(--awa-font-sm, 12px);
    line-height: 1.45;
    margin-top: 6px;
}

/* =====================================================
   NORMALIZAÇÃO FINAL — proporção de inputs B2B
   Objetivo: remover sensação de campos "achatados/desproporcionais"
   ===================================================== */
body.b2b-register-index #b2b-register-shell .b2b-register-page .field-row {
    align-items: stretch;
    gap: var(--awa-space-4, 16px) !important;
}

body.b2b-register-index #b2b-register-shell .b2b-register-page .field-row .field {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

body.b2b-register-index #b2b-register-shell .b2b-register-page .field-row .field.field-narrow {
    flex: 0 1 180px;
    max-width: 220px;
}

body.b2b-register-index #b2b-register-shell .b2b-register-page .field .control input[type="text"],
body.b2b-register-index #b2b-register-shell .b2b-register-page .field .control input[type="email"],
body.b2b-register-index #b2b-register-shell .b2b-register-page .field .control input[type="tel"],
body.b2b-register-index #b2b-register-shell .b2b-register-page .field .control input[type="password"],
body.b2b-register-index #b2b-register-shell .b2b-register-page .field .control select,
body.b2b-register-index #b2b-register-shell .b2b-register-page .field .control textarea {
    box-sizing: border-box !important;
    width: 100% !important;
    min-height: 46px;
    padding: 12px 14px !important;
    font-size: 15px !important;
    line-height: 1.45;
    border-radius: var(--awa-radius-md, 8px) !important;
}

body.b2b-register-index #b2b-register-shell .b2b-register-page .field .control textarea {
    min-height: 108px;
    resize: vertical;
}

body.b2b-register-index #b2b-register-shell .b2b-register-page .field .control input::placeholder,
body.b2b-register-index #b2b-register-shell .b2b-register-page .field .control textarea::placeholder {
    color: var(--awa-gray-500, #6b7280) !important;
    opacity: 1;
}

@media (max-width: 992px) {
    body.b2b-register-index #b2b-register-shell .b2b-register-page .field-row .field.field-narrow {
        flex: 1 1 220px;
        max-width: none;
    }
}

/* =====================================================
   REFINO EXTRA — alinhamento de estrutura de campo
   ===================================================== */
body.b2b-register-index #b2b-register-shell .b2b-register-page .field {
    margin-bottom: var(--awa-space-4, 16px);
}

body.b2b-register-index #b2b-register-shell .b2b-register-page .field .label {
    margin-bottom: 8px !important;
    line-height: 1.35;
}

body.b2b-register-index #b2b-register-shell .b2b-register-page .field .control {
    width: 100%;
    min-width: 0;
}

body.b2b-register-index #b2b-register-shell .b2b-register-page .field .control .input-text {
    width: 100% !important;
    max-width: 100% !important;
}

/* Campo crítico selecionado no diagnóstico visual */
body.b2b-register-index #b2b-register-shell .b2b-register-page input#razao_social.input-text {
    min-height: 46px !important;
    padding: 12px 14px !important;
    font-size: 15px !important;
    line-height: 1.45;
}

/* =====================================================
   HARMONIZAÇÃO POR SEÇÃO — empresa/endereço/contato/segurança
   ===================================================== */
body.b2b-register-index #b2b-register-shell .b2b-register-page .form-section[data-step] > h3 {
    font-size: clamp(1.05rem, 1.2vw + 0.8rem, 1.2rem);
    line-height: 1.25;
    margin: 0 0 14px;
    color: var(--awa-gray-800, #1f2937);
}

body.b2b-register-index #b2b-register-shell .b2b-register-page .form-section--company .cnpj-control,
body.b2b-register-index #b2b-register-shell .b2b-register-page .form-section--company .cnpj-feedback {
    min-height: 22px;
}

body.b2b-register-index #b2b-register-shell .b2b-register-page .form-section--address .field-row,
body.b2b-register-index #b2b-register-shell .b2b-register-page .form-section--contact .field-row {
    align-items: flex-start;
}

body.b2b-register-index #b2b-register-shell .b2b-register-page .form-section--security .b2b-register-password-wrap {
    position: relative;
    display: block;
}

body.b2b-register-index #b2b-register-shell .b2b-register-page .form-section--security .b2b-register-password-wrap .input-text {
    padding-right: 96px !important;
}

body.b2b-register-index #b2b-register-shell .b2b-register-page .form-section--security .b2b-register-password-toggle {
    position: absolute;
    inset-inline-end: 10px;
    top: 50%;
    transform: translateY(-50%);
    min-height: 30px;
    padding: 4px 10px;
    border: 1px solid var(--awa-border, #e5e5e5);
    border-radius: 8px;
    background: var(--awa-white, var(--awa-b2b-ro-c7));
    color: var(--awa-gray-700, #374151);
    font-size: 12px;
    line-height: 1;
}

body.b2b-register-index #b2b-register-shell .b2b-register-page .actions-primary-note {
    margin-top: 10px;
    color: var(--awa-gray-600, #4b5563);
    font-size: 12px;
    line-height: 1.45;
}

@media (max-width: 768px) {
    body.b2b-register-index #b2b-register-shell .b2b-register-page .form-section[data-step] > h3 {
        margin-bottom: 12px;
    }

    body.b2b-register-index #b2b-register-shell .b2b-register-page .form-section--security .b2b-register-password-wrap .input-text {
        padding-right: 86px !important;
    }
}

/* =====================================================
   DENSIDADE RESPONSIVA FINAL — ritmo vertical consistente
   ===================================================== */
@media (max-width: 480px) {
    body.b2b-register-index #b2b-register-shell .b2b-register-page .form-section[data-step] {
        padding: 14px 12px 12px !important;
    }

    body.b2b-register-index #b2b-register-shell .b2b-register-page .field {
        margin-bottom: 12px;
    }

    body.b2b-register-index #b2b-register-shell .b2b-register-page .field .label {
        margin-bottom: 6px !important;
        font-size: 13px;
    }

    body.b2b-register-index #b2b-register-shell .b2b-register-page .field .control input[type="text"],
    body.b2b-register-index #b2b-register-shell .b2b-register-page .field .control input[type="email"],
    body.b2b-register-index #b2b-register-shell .b2b-register-page .field .control input[type="tel"],
    body.b2b-register-index #b2b-register-shell .b2b-register-page .field .control input[type="password"],
    body.b2b-register-index #b2b-register-shell .b2b-register-page .field .control select,
    body.b2b-register-index #b2b-register-shell .b2b-register-page .field .control textarea {
        min-height: 44px;
        padding: 11px 12px !important;
        font-size: 16px !important; /* evita zoom iOS */
    }

    body.b2b-register-index #b2b-register-shell .b2b-register-page .b2b-register-progress .progress-step {
        min-height: 38px;
        padding-inline: 8px;
    }
}

@media (min-width: 481px) and (max-width: 768px) {
    body.b2b-register-index #b2b-register-shell .b2b-register-page .form-section[data-step] {
        padding: 16px 14px 14px !important;
    }

    body.b2b-register-index #b2b-register-shell .b2b-register-page .field {
        margin-bottom: 14px;
    }
}

@media (min-width: 1200px) {
    body.b2b-register-index #b2b-register-shell .b2b-register-page {
        max-width: 900px !important;
    }

    body.b2b-register-index #b2b-register-shell .b2b-register-container {
        padding: 36px !important;
    }

    body.b2b-register-index #b2b-register-shell .b2b-register-page .field {
        margin-bottom: 18px;
    }

    body.b2b-register-index #b2b-register-shell .b2b-register-page .field .label {
        margin-bottom: 9px !important;
    }
}

/* =====================================================
   CONSOLIDAÇÃO FINAL — fonte única de verdade visual
   Resolve conflito entre blocos anteriores sem remover histórico.
   ===================================================== */

/* Stepper */
body.b2b-register-index #b2b-register-shell .b2b-register-page .b2b-register-progress .progress-step {
    border: 1px solid var(--awa-border, #e5e5e5) !important;
    background: var(--awa-white, var(--awa-b2b-ro-c7)) !important;
    color: var(--awa-gray-600, #4b5563) !important;
    box-shadow: none !important;
}

body.b2b-register-index #b2b-register-shell .b2b-register-page .b2b-register-progress .progress-step .progress-step__num {
    border: 1px solid var(--awa-border, #e5e5e5) !important;
    background: var(--awa-gray-100, #f3f4f6) !important;
    color: var(--awa-gray-700, #374151) !important;
    box-shadow: none !important;
}

body.b2b-register-index #b2b-register-shell .b2b-register-page .b2b-register-progress .progress-step.is-active {
    border-color: rgb(183 51 55 / 28%) !important;
    background: var(--awa-primary-light, #fef2f2) !important;
    color: var(--awa-primary-hover, #8e2629) !important;
}

body.b2b-register-index #b2b-register-shell .b2b-register-page .b2b-register-progress .progress-step.is-active .progress-step__num {
    border-color: var(--awa-primary, #b73337) !important;
    background: var(--awa-primary, #b73337) !important;
    color: var(--awa-white, var(--awa-b2b-ro-c7)) !important;
}

body.b2b-register-index #b2b-register-shell .b2b-register-page .b2b-register-progress .progress-step.is-complete {
    border-color: rgb(16 185 129 / 35%) !important;
    background: var(--awa-b2b-ro-c4) !important;
    color: var(--awa-b2b-ro-c6) !important;
}

body.b2b-register-index #b2b-register-shell .b2b-register-page .b2b-register-progress .progress-step.is-complete .progress-step__num {
    border-color: var(--awa-b2b-ro-c5) !important;
    background: var(--awa-b2b-ro-c5) !important;
    color: var(--awa-b2b-ro-c7) !important;
}

/* Campos */
body.b2b-register-index #b2b-register-shell .b2b-register-page .field-row .field.field-narrow {
    flex: 0 1 180px !important;
    max-width: 220px !important;
}

body.b2b-register-index #b2b-register-shell .b2b-register-page .field .control input[type="text"],
body.b2b-register-index #b2b-register-shell .b2b-register-page .field .control input[type="email"],
body.b2b-register-index #b2b-register-shell .b2b-register-page .field .control input[type="tel"],
body.b2b-register-index #b2b-register-shell .b2b-register-page .field .control input[type="password"],
body.b2b-register-index #b2b-register-shell .b2b-register-page .field .control select,
body.b2b-register-index #b2b-register-shell .b2b-register-page .field .control textarea {
    min-height: 46px !important;
    padding: 12px 14px !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
    border-radius: var(--awa-radius-md, 8px) !important;
}

body.b2b-register-index #b2b-register-shell .b2b-register-page .field .control textarea {
    min-height: 108px !important;
}

/* Segurança */
body.b2b-register-index #b2b-register-shell .b2b-register-page .form-section--security .b2b-register-password-wrap .input-text {
    padding-right: 96px !important;
}

body.b2b-register-index #b2b-register-shell .b2b-register-page .form-section--security .b2b-register-password-toggle {
    min-width: 72px;
    white-space: nowrap;
}

/* CTA mobile: keep submit actions in normal flow so they never cover fields. */
@media (max-width: 768px) {
    body.b2b-register-index #b2b-register-shell .b2b-register-page .actions-toolbar {
        position: static;
        bottom: auto;
        z-index: auto;
        margin-top: 12px;
        padding: 10px;
        border: 1px solid var(--awa-border, #e5e5e5);
        border-radius: var(--awa-radius-inner, 12px);
        background: rgb(255 255 255 / 96%);
        backdrop-filter: none;
        box-shadow: 0 4px 14px rgb(15 23 42 / 6%);
    }

    body.b2b-register-index #b2b-register-shell .b2b-register-page .field-row .field.field-narrow {
        flex: 1 1 220px !important;
        max-width: none !important;
    }
}

@media (max-width: 480px) {
    body.b2b-register-index #b2b-register-shell .b2b-register-page .field .control input[type="text"],
    body.b2b-register-index #b2b-register-shell .b2b-register-page .field .control input[type="email"],
    body.b2b-register-index #b2b-register-shell .b2b-register-page .field .control input[type="tel"],
    body.b2b-register-index #b2b-register-shell .b2b-register-page .field .control input[type="password"],
    body.b2b-register-index #b2b-register-shell .b2b-register-page .field .control select,
    body.b2b-register-index #b2b-register-shell .b2b-register-page .field .control textarea {
        min-height: 44px !important;
        padding: 11px 12px !important;
        font-size: 16px !important;
    }

    body.b2b-register-index #b2b-register-shell .b2b-register-page .form-section--security .b2b-register-password-wrap .input-text {
        padding-right: 86px !important;
    }
}

/* =====================================================
   LAYOUT SHELL — vence awa-super-global flex em .columns
   page-layout-empty não tem .page-wrapper; login.css estreita
   .b2b-login-page para 468px e quebra o cadastro sem estas regras.
   ===================================================== */
body.b2b-register-index.b2b-auth-shell .page-main,
body.b2b-register-index.b2b-auth-shell .page-main > .columns,
body.b2b-register-index.b2b-auth-shell .page-main .column.main {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
}

body.b2b-register-index.b2b-auth-shell #b2b-register-shell.b2b-login-page {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    width: 100% !important;
    max-width: 640px !important;
    margin: 0 auto !important;
    padding: 0 12px 40px !important;
    box-sizing: border-box !important;
}

body.b2b-register-index.b2b-auth-shell #b2b-register-shell .b2b-register-shell-content,
body.b2b-register-index.b2b-auth-shell #b2b-register-shell .b2b-register-container,
body.b2b-register-index.b2b-auth-shell #b2b-register-shell .b2b-register-page,
body.b2b-register-index.b2b-auth-shell #b2b-register-shell .b2b-register-form {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
}

body.b2b-register-index.b2b-auth-shell #b2b-register-shell .b2b-register-container {
    padding-left: 0 !important;
    padding-right: 0 !important;
}

@media (max-width: 768px) {
    body.b2b-register-index #b2b-register-shell .b2b-benefits-toggle,
    body.b2b-register-index #b2b-register-shell #b2b-register-benefits {
        display: none !important;
    }
}

@media (max-width: 480px) {
    body.b2b-register-index #b2b-register-shell .b2b-register-container {
        padding: 12px 8px !important;
    }

    body.b2b-register-index #b2b-register-shell .b2b-register-page {
        padding: 12px 4px !important;
        margin: 0 !important;
    }

    body.b2b-register-index #b2b-register-shell .register-meta {
        display: none !important;
    }

    body.b2b-register-index #b2b-register-shell .register-header .register-title {
        font-size: 1.35rem !important;
        line-height: 1.25 !important;
        margin-bottom: 8px !important;
    }

    body.b2b-register-index #b2b-register-shell .register-header .subtitle,
    body.b2b-register-index #b2b-register-shell .register-header .register-trust-note {
        font-size: 13px !important;
        margin-bottom: 8px !important;
    }

    body.b2b-register-index #b2b-register-shell .register-header {
        margin-bottom: 8px !important;
    }
}

/* =====================================================
   UX QUICK WINS — ui-ux-pro-max audit
   ===================================================== */

/* Contraste WCAG: muted text mínimo slate-600 (#475569) */
body.b2b-register-index #b2b-register-shell .register-header .subtitle,
body.b2b-register-index #b2b-register-shell .register-header .register-trust-note {
    color: #475569 !important;
}

/* Ícones SVG nos alerts dinâmicos (JS) */
body.b2b-register-index .erp-alert-icon svg,
body.b2b-register-index .email-check-alert-icon svg {
    display: block;
    width: 20px;
    height: 20px;
    flex-shrink: 0;
}

/* Cookie banner: espaço inferior no auth shell */
body.b2b-auth-shell.b2b-register-index:has(.awa-cookie-banner) #b2b-register-shell,
body.b2b-auth-shell.b2b-register-index:has(#awa-cookie-consent) #b2b-register-shell {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
}

@media (max-width: 768px) {
    /* Hero compacto: trust-note oculto para aproximar CNPJ da dobra */
    body.b2b-register-index #b2b-register-shell .register-header .register-trust-note {
        display: none !important;
    }
}

@media (prefers-reduced-motion: reduce) {
    body.b2b-register-index .b2b-register-page .company-info-alert {
        animation: none !important;
    }
}

/* Link secundário para login (E2E + UX) */
body.b2b-register-index #b2b-register-shell .b2b-register-login-link {
    margin-top: 16px;
    text-align: center;
    font-size: 14px;
    color: var(--awa-text-secondary, #666);
}

body.b2b-register-index #b2b-register-shell .b2b-register-login-link .b2b-login-link {
    margin-left: 4px;
    font-weight: 600;
    color: var(--awa-primary, #b73337);
    text-decoration: none;
}

body.b2b-register-index #b2b-register-shell .b2b-register-login-link .b2b-login-link:hover {
    text-decoration: underline;
}
