:root {
  --zappigo-primary: #001A4B;
  --zappigo-primary-dark: #000F2E;
  --zappigo-orange: #FF9D00;
  --zappigo-orange-dark: #FE4B00;
  --zappigo-white: #FFFFFF;
  --zappigo-background: #F3F5F9;
  --zappigo-gradient: linear-gradient(100deg, #FF9D00, #FE4B00);
  --zappigo-font-heading: 'Poppins', sans-serif;
  --zappigo-font-body: 'Inter', sans-serif;
}

* {
  box-sizing: border-box;
}

html, body.zg-auth-body {
  margin: 0;
  padding: 0;
  min-height: 100vh;
  font-family: var(--zappigo-font-body);
  background: var(--zappigo-white);
  color: #0f172a;
  -webkit-font-smoothing: antialiased;
}

.zg-auth-wrapper {
  display: flex;
  min-height: 100vh;
  width: 100%;
}

/* COLUNA ESQUERDA (HERO #001A4B COM FUNDO SUTIL CORPORATIVO/COMERCIAL) */
.zg-auth-aside {
  flex: 0 0 46%;
  max-width: 46%;
  position: relative;
  background-color: var(--zappigo-primary-dark);
  background-image:
    linear-gradient(155deg, rgba(0, 26, 75, 0.90) 0%, rgba(0, 13, 40, 0.96) 100%),
    url('https://images.unsplash.com/photo-1556742049-0cfed4f6a45d?auto=format&fit=crop&w=1200&q=75');
  background-size: cover;
  background-position: center;
  color: var(--zappigo-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 56px 64px;
  overflow: hidden;
}

.zg-auth-aside::after {
  content: '';
  position: absolute;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 157, 0, 0.16) 0%, rgba(254, 75, 0, 0) 70%);
  bottom: -140px;
  left: -100px;
  pointer-events: none;
}

.zg-aside-inner {
  position: relative;
  z-index: 2;
  max-width: 460px;
  margin: 0 auto;
  width: 100%;
}

.zg-aside-logo {
  display: inline-block;
  margin-bottom: 22px;
}

.zg-aside-logo img {
  max-height: 92px;
  width: auto;
  max-width: 100%;
  display: block;
}

.zg-aside-lead {
  font-size: 16.5px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.84);
  margin: 0 0 32px 0;
  font-weight: 400;
}

/* CARD DE DEPOIMENTO GLASSMORPHISM (LOGIN) */
.zg-quote-card {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 14px;
  padding: 24px 26px;
}

.zg-quote-text {
  font-style: italic;
  font-size: 14px;
  line-height: 1.65;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 18px 0;
}

.zg-quote-author {
  display: flex;
  align-items: center;
  gap: 12px;
}

.zg-quote-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--zappigo-gradient);
  color: var(--zappigo-white);
  font-family: var(--zappigo-font-heading);
  font-weight: 800;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(254, 75, 0, 0.35);
}

.zg-quote-meta strong {
  display: block;
  font-family: var(--zappigo-font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: #ffffff;
}

.zg-quote-meta span {
  display: block;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.65);
}

/* LISTA DE VANTAGENS (CADASTRO) */
.zg-divider {
  height: 1px;
  background: rgba(255, 255, 255, 0.12);
  margin: 26px 0 24px 0;
}

.zg-benefits-kicker {
  font-family: var(--zappigo-font-heading);
  font-size: 11.5px;
  font-weight: 800;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--zappigo-orange);
  margin-bottom: 18px;
}

.zg-benefit-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 16px;
  font-size: 14px;
  line-height: 1.5;
  color: rgba(255, 255, 255, 0.88);
}

.zg-benefit-icon {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--zappigo-orange);
  color: var(--zappigo-orange);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  margin-top: 2px;
  flex-shrink: 0;
}

/* COLUNA DIREITA (FORMULÁRIO LIMPO SOBRE BRANCO) */
.zg-auth-main {
  flex: 1;
  background: var(--zappigo-white);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 42px 32px;
  overflow-y: auto;
}

.zg-form-shell {
  width: 100%;
  max-width: 440px;
}

.zg-form-shell.zg-shell-wide {
  max-width: 520px;
}

.zg-mobile-logo {
  display: none;
  text-align: center;
  margin-bottom: 24px;
}

.zg-mobile-logo img {
  max-height: 82px;
  width: auto;
}

.zg-title {
  font-family: var(--zappigo-font-heading);
  font-size: 28px;
  font-weight: 800;
  color: var(--zappigo-primary);
  margin: 0 0 6px 0;
  letter-spacing: -0.5px;
}

.zg-subtitle {
  font-size: 14px;
  color: #64748b;
  margin: 0 0 26px 0;
  line-height: 1.5;
}

/* BANNER DE OFERTA / TESTE GRÁTIS NO CADASTRO */
.zg-promo-banner {
  background: #FFF7ED;
  border: 1px solid #FED7AA;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 22px;
}

.zg-promo-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: var(--zappigo-gradient);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.zg-promo-text strong {
  display: block;
  font-family: var(--zappigo-font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: #9A3412;
  margin-bottom: 2px;
}

.zg-promo-text span {
  display: block;
  font-size: 12.5px;
  color: #C2410C;
  line-height: 1.45;
}

/* BARRA DE PROGRESSO SEGMENTADA */
.zg-steps-bar {
  display: flex;
  gap: 8px;
  margin-bottom: 22px;
}

.zg-step-seg {
  flex: 1;
  height: 5px;
  border-radius: 99px;
  background: #E2E8F0;
  transition: background 0.25s ease;
}

.zg-step-seg.active {
  background: var(--zappigo-gradient);
}

.zg-step-seg.done {
  background: var(--zappigo-primary);
}

/* CARDS DE SELEÇÃO DE PERFIL (CNPJ / CPF) */
.zg-profile-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-bottom: 18px;
}

.zg-profile-card {
  border: 1.5px solid #E2E8F0;
  background: #FFFFFF;
  border-radius: 12px;
  padding: 16px 12px;
  text-align: center;
  cursor: pointer;
  transition: all 0.18s ease;
}

.zg-profile-card:hover {
  border-color: #CBD5E1;
  background: #F8FAFC;
}

.zg-profile-card.active {
  border-color: var(--zappigo-orange-dark);
  background: #FFF9F2;
  box-shadow: 0 4px 14px rgba(254, 75, 0, 0.08);
}

.zg-profile-card i {
  font-size: 22px;
  color: #64748b;
  display: block;
  margin-bottom: 8px;
}

.zg-profile-card.active i {
  color: var(--zappigo-orange-dark);
}

.zg-profile-card strong {
  display: block;
  font-family: var(--zappigo-font-heading);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--zappigo-primary);
  margin-bottom: 2px;
}

.zg-profile-card small {
  display: block;
  font-size: 11.5px;
  color: #64748b;
}

/* CAMPOS DO FORMULÁRIO */
.zg-field {
  margin-bottom: 16px;
}

.zg-label-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.zg-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  margin-bottom: 6px;
}

.zg-label-row .zg-label {
  margin-bottom: 0;
}

.zg-link-inline {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--zappigo-orange-dark) !important;
  text-decoration: none !important;
}

.zg-link-inline:hover {
  text-decoration: underline !important;
}

.zg-input,
.zg-select,
.zg-textarea {
  width: 100% !important;
  background: var(--zappigo-background) !important;
  border: 1.5px solid #E2E8F0 !important;
  border-radius: 10px !important;
  padding: 12px 15px !important;
  font-size: 14px !important;
  font-family: var(--zappigo-font-body) !important;
  color: #0f172a !important;
  transition: border-color 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
  height: 46px;
}

.zg-textarea {
  height: auto !important;
  min-height: 76px;
  resize: vertical;
}

.zg-input:focus,
.zg-select:focus,
.zg-textarea:focus {
  background: #FFFFFF !important;
  border-color: var(--zappigo-primary) !important;
  box-shadow: 0 0 0 3px rgba(0, 26, 75, 0.08) !important;
  outline: none !important;
}

.zg-url-group {
  display: flex;
  align-items: center;
  background: var(--zappigo-background);
  border: 1.5px solid #E2E8F0;
  border-radius: 10px;
  overflow: hidden;
}

.zg-url-group:focus-within {
  background: #FFFFFF;
  border-color: var(--zappigo-primary);
  box-shadow: 0 0 0 3px rgba(0, 26, 75, 0.08);
}

.zg-url-prefix {
  padding: 0 12px;
  font-size: 12.5px;
  color: #64748b;
  background: #E8EDF5;
  height: 44px;
  display: flex;
  align-items: center;
  white-space: nowrap;
  border-right: 1px solid #DCE3EE;
  font-weight: 500;
}

.zg-url-group input {
  border: none !important;
  background: transparent !important;
  height: 44px !important;
  padding: 0 12px !important;
  font-size: 14px !important;
  font-weight: 600;
  color: var(--zappigo-primary) !important;
  width: 100%;
}

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

.zg-row-3 {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}

.zg-check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 14px 0 20px 0;
  font-size: 13.5px;
  color: #475569;
  cursor: pointer;
}

.zg-check-row input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--zappigo-primary);
  cursor: pointer;
  margin: 0;
}

/* BOTÕES PRINCIPAIS */
.zg-btn-primary {
  width: 100%;
  height: 50px;
  border: none;
  border-radius: 10px;
  background: var(--zappigo-primary) !important;
  color: var(--zappigo-white) !important;
  font-family: var(--zappigo-font-heading);
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.2s ease;
  box-shadow: 0 6px 18px rgba(0, 26, 75, 0.18);
  padding: 0 20px !important;
}

.zg-btn-primary:hover {
  background: var(--zappigo-gradient) !important;
  box-shadow: 0 8px 22px rgba(254, 75, 0, 0.28);
  transform: translateY(-1px);
}

.zg-btn-secondary {
  height: 50px;
  border: 1.5px solid #CBD5E1;
  border-radius: 10px;
  background: #FFFFFF !important;
  color: #334155 !important;
  font-family: var(--zappigo-font-heading);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  padding: 0 18px !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.zg-btn-secondary:hover {
  background: #F8FAFC !important;
}

.zg-footer-note {
  margin-top: 22px;
  text-align: center;
  font-size: 13.5px;
  color: #64748b;
}

.zg-footer-note a {
  color: var(--zappigo-orange-dark) !important;
  font-weight: 700;
  text-decoration: none !important;
}

.zg-footer-note a:hover {
  text-decoration: underline !important;
}

/* ALERTAS */
.zg-alert {
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13px;
  margin-bottom: 18px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  line-height: 1.45;
}

.zg-alert-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
}

.zg-alert-success {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: #166534;
}

.zg-alert-info {
  background: #EFF6FF;
  border: 1px solid #BFDBFE;
  color: #1E3A8A;
}

.zg-field-error {
  color: #DC2626;
  font-size: 11.5px;
  font-weight: 600;
  margin-top: 4px;
  display: block;
}

/* BOTÃO FLUTUANTE WHATSAPP */
.zg-wa-float {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #25D366;
  color: #FFFFFF !important;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
  box-shadow: 0 8px 22px rgba(37, 211, 102, 0.38);
  z-index: 999;
  transition: transform 0.18s ease;
  text-decoration: none !important;
}

.zg-wa-float:hover {
  transform: scale(1.07);
  color: #FFFFFF !important;
}

/* RESPONSIVO */
@media (max-width: 991px) {
  .zg-auth-aside {
    display: none;
  }
  .zg-mobile-logo {
    display: block;
  }
  .zg-auth-main {
    padding: 32px 20px 80px 20px;
  }
}

@media (max-width: 575px) {
  .zg-row-2,
  .zg-row-3 {
    grid-template-columns: 1fr;
  }
  .zg-url-prefix {
    font-size: 11px;
    padding: 0 8px;
  }
}
