/* GABI-JORGE-LOGIN-UI-01D | 01D_R1
 * Adaptador exclusivo de /login.php sobre tokens, componentes e icones do catalogo.
 * Paleta e curvas derivadas do sidebar-pro.css 03A_R1 instalado.
 * Movimento do sidebar: 22s/18s, ease-in-out e alternate; angulo do arco adaptado ao login.
 * Pausa compartilhada, movimento reduzido e suspensao em abas ocultas.
 */
.gabi-ui-catalogo.gbl-page {
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: 40px 24px 22px;
  color: var(--gabi-text);
  font-family: var(--gabi-font-family);
  font-size: var(--gabi-font-body);
  line-height: var(--gabi-line-body);
  background:
    radial-gradient(ellipse at 5% 0%, rgba(22,112,255,.66), transparent 40%),
    radial-gradient(ellipse at 112% 87%, rgba(22,110,255,.34), transparent 40%),
    linear-gradient(172deg, #0b35ab 0%, #092363 53%, #082973 100%);
}
.gbl-page::before,
.gbl-page::after {
  content: '';
  position: absolute;
  z-index: -1;
  pointer-events: none;
}
.gbl-page::before {
  width: min(900px, 100vw);
  height: 900px;
  right: -340px;
  bottom: -465px;
  border: 1px solid rgba(91,199,255,.31);
  border-radius: 48% 52% 34% 66%;
  background: linear-gradient(155deg, rgba(43,147,255,.34), rgba(38,96,238,.04) 64%);
  box-shadow: -32px -48px 0 rgba(40,118,255,.055), -62px -90px 0 rgba(53,116,237,.04);
  transform: rotate(32deg);
}
.gbl-page::after {
  left: -18%;
  bottom: 12%;
  width: 135%;
  height: 210px;
  border-top: 1px solid rgba(89,212,255,.42);
  border-radius: 50%;
  transform: rotate(-18deg);
  background: linear-gradient(180deg, rgba(21,154,255,.10), transparent 65%);
  box-shadow: 0 -8px 22px -17px #52d6ff;
}
/* Apenas as duas camadas decorativas recebem movimento. */
.gbl-page[data-gbl-motion-ready="1"]::before {
  animation: gblAmbient 22s ease-in-out infinite alternate;
}
.gbl-page[data-gbl-motion-ready="1"]::after {
  animation: gblArc 18s ease-in-out infinite alternate;
}
@keyframes gblAmbient {
  from { transform: rotate(32deg) translate(0, 0); }
  to { transform: rotate(36deg) translate(-12px, -17px); }
}
@keyframes gblArc {
  from { opacity: .55; transform: rotate(-18deg) translateY(0); }
  to { opacity: .95; transform: rotate(-15deg) translateY(-16px); }
}
.gbl-page[data-gbl-motion="off"]::before,
.gbl-page[data-gbl-motion="off"]::after { animation: none; }
.gbl-page[data-gbl-suspended="1"]::before,
.gbl-page[data-gbl-suspended="1"]::after { animation-play-state: paused; }
.gbl-page .gbl-main {
  display: grid;
  place-items: center;
  flex: 1 0 auto;
  position: relative;
  width: 100%;
  min-width: 0;
}
.gbl-page .gbl-card {
  width: 100%;
  max-width: 448px;
  overflow: hidden;
  border-color: rgba(162,195,253,.30);
  border-radius: var(--gabi-radius-card);
  box-shadow: 0 26px 80px rgba(3,16,54,.32), 0 2px 12px rgba(3,16,54,.14);
}
.gbl-page .gbl-brand {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 25px 72px 25px 32px;
  border-bottom: 1px solid rgba(179,211,255,.19);
  color: #fff;
  background:
    radial-gradient(ellipse at 5% 0%, rgba(22,112,255,.5), transparent 70%),
    linear-gradient(120deg, #0b35ab, #0b286e);
}
.gbl-page .gbl-motion-toggle {
  position: absolute;
  top: 24px;
  right: 24px;
  display: grid;
  place-items: center;
  width: 32px;
  height: 34px;
  padding: 0;
  border: 1px solid rgba(143,195,255,.25);
  border-radius: 8px;
  color: #c7e5ff;
  background: rgba(28,73,145,.22);
  cursor: pointer;
}
.gbl-page .gbl-motion-toggle:hover { background: rgba(48,101,194,.4); }
.gbl-page .gbl-motion-toggle:focus-visible { outline: 2px solid #97e5ff; outline-offset: 3px; }
.gbl-page .gbl-motion-toggle[aria-pressed="true"] { border-color: rgba(96,170,255,.4); }
.gbl-page .gbl-motion-toggle:disabled { opacity: .65; cursor: default; }
.gbl-page .gbl-motion-toggle svg { width: 18px; height: 18px; }
.gbl-page .gbl-motion-toggle[hidden],
.gbl-page .gbl-motion-toggle svg[hidden] { display: none; }
.gbl-page .gbl-brand-icon {
  display: block;
  width: 44px;
  height: 50px;
  flex: 0 0 44px;
  object-fit: contain;
  filter: drop-shadow(0 0 9px rgba(111,197,255,.18));
}
.gbl-page .gbl-brand-copy { min-width: 0; line-height: 1.35; }
.gbl-page .gbl-brand-copy strong {
  display: block;
  color: #fff;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -.035em;
  overflow-wrap: anywhere;
}
.gbl-page .gbl-brand-copy span {
  display: block;
  margin-top: 2px;
  color: #edf4ff;
  font-size: 13px;
  font-weight: 500;
}
.gbl-page .gbl-brand-copy small {
  display: block;
  margin-top: 4px;
  color: #c4d8fb;
  font-size: 12px;
  font-weight: 500;
  overflow-wrap: anywhere;
}
.gbl-page .gbl-content { padding: 28px 32px 26px; }
.gbl-page .gbl-title {
  margin: 0;
  font-size: 23px;
  line-height: 1.25;
  font-weight: 700;
  letter-spacing: -.035em;
  color: var(--gabi-text);
}
.gbl-page .gbl-intro {
  margin: 8px 0 25px;
  max-width: 330px;
  font-size: 13px;
  color: var(--gabi-text-low);
  line-height: 1.65;
}
.gbl-page .gbl-alert { margin: 0 0 20px; overflow-wrap: anywhere; }
.gbl-page .gbl-alert > .ti { margin-top: 2px; font-size: 18px; }
.gbl-page .gbl-field { margin: 0 0 20px; }
.gbl-page .gbl-field label { margin-bottom: 8px; font-weight: 600; }
.gbl-page .gbl-phone-wrap { position: relative; }
.gbl-page .gbl-phone-wrap > .ti {
  position: absolute;
  left: 15px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--gabi-text-low);
  font-size: 19px;
  pointer-events: none;
}
.gbl-page .gbl-phone {
  height: 52px;
  padding: 0 14px 0 46px;
  font-size: 16px;
  transition: border-color var(--gabi-transition), box-shadow var(--gabi-transition);
}
.gbl-page .gbl-phone::placeholder { color: #738096; opacity: 1; }
.gbl-page .gbl-pin-field { min-width: 0; padding: 0; margin: 0 0 22px; border: 0; }
.gbl-page .gbl-pin-field legend {
  display: block;
  width: 100%;
  padding: 0;
  margin-bottom: 8px;
  color: var(--gabi-text-soft);
  font-size: var(--gabi-font-label);
  font-weight: 600;
}
.gbl-page .gbl-pin-field legend span {
  float: right;
  color: var(--gabi-text-low);
  font-size: 12px;
  font-weight: 400;
}
.gbl-page .gbl-pin-group { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.gbl-page .gbl-pin {
  min-width: 0;
  height: 56px;
  padding: 0 4px;
  text-align: center;
  font-size: 23px;
  font-weight: 600;
  transition: border-color var(--gabi-transition), box-shadow var(--gabi-transition);
}
.gbl-page .gbl-phone:focus,
.gbl-page .gbl-pin:focus {
  border-color: var(--gabi-focus);
  outline: 0;
  box-shadow: 0 0 0 3px rgba(37,99,235,.15);
}
.gbl-page .gbl-submit {
  width: 100%;
  min-height: 50px;
  font-size: 14px;
  font-weight: 600;
  gap: 12px;
  background: linear-gradient(112deg, #1252e4 0%, #195afa 54%, #2055dd 100%);
  border-color: #2055dd;
  box-shadow: 0 6px 15px rgba(18,82,228,.18);
}
.gbl-page .gbl-submit:hover {
  background: linear-gradient(112deg, #1249c8 0%, #1752e5 54%, #1c4cc6 100%);
  border-color: #1847c4;
}
.gbl-page .gbl-submit:active { box-shadow: none; }
.gbl-page .gbl-submit > .ti { font-size: 18px; }
.gbl-page .gbl-support-area { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--gabi-border); text-align: center; }
.gbl-page .gbl-support-area p { margin: 0 0 12px; color: var(--gabi-text-low); font-size: 12px; }
.gbl-page .gbl-support {
  width: 100%;
  min-height: 44px;
  padding: 10px;
  gap: 9px;
  color: var(--gabi-text-soft);
  background: var(--gabi-surface-soft);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
}
.gbl-page .gbl-support:hover { color: var(--gabi-text); text-decoration: none; }
.gbl-page .gbl-whatsapp { width: 19px; height: 19px; flex: 0 0 19px; color: #15803d; }
.gbl-page .gbl-footer {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  margin-top: 32px;
  text-align: center;
  color: #bfd2f3;
  font-size: 11px;
  line-height: 1.55;
}
.gbl-page .gbl-footer a { display: inline-block; padding: 4px 1px; margin: -4px 0; color: #fff; font-weight: 600; }
.gbl-page .gbl-footer a:focus-visible { outline-color: #97e5ff; }
@media (max-width: 520px) {
  .gabi-ui-catalogo.gbl-page { padding: 24px 16px 18px; }
  .gbl-page .gbl-brand { padding: 22px 64px 22px 24px; gap: 14px; }
  .gbl-page .gbl-motion-toggle { top: 20px; right: 20px; }
  .gbl-page .gbl-content { padding: 25px 24px 24px; }
  .gbl-page .gbl-title { font-size: 22px; }
  .gbl-page .gbl-pin-group { gap: 10px; }
  .gbl-page .gbl-footer { margin-top: 24px; font-size: 10.5px; }
  .gbl-page::before { right: -200px; bottom: -620px; width: 500px; }
  .gbl-page::after { bottom: 9%; height: 140px; }
}
@media (max-width: 360px) {
  .gabi-ui-catalogo.gbl-page { padding: 18px 12px; }
  .gbl-page .gbl-brand { padding: 20px 64px 20px 20px; }
  .gbl-page .gbl-content { padding: 22px 20px; }
  .gbl-page .gbl-title { font-size: 21px; }
  .gbl-page .gbl-pin-group { gap: 8px; }
  .gbl-page .gbl-support { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .gbl-page, .gbl-page::before, .gbl-page::after,
  .gbl-page *, .gbl-page *::before, .gbl-page *::after {
    transition: none !important;
    animation: none !important;
  }
}

/* Suporte isolado do formulario de autenticacao. */
.gbl-page .gbl-recovery > .ti { font-size: 19px; color: var(--gabi-primary, #2563eb); }
.gbl-page .gbl-contact { position: fixed; right: 24px; bottom: 24px; z-index: 30; }
.gbl-page .gbl-contact [hidden] { display: none !important; }
.gbl-page .gbl-contact-launch {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 50%;
  color: #fff;
  background: #16a34a;
  box-shadow: 0 8px 25px rgba(0,0,0,.24);
  cursor: pointer;
  text-decoration: none;
}
.gbl-page .gbl-contact-launch:hover { color: #fff; background: #15803d; text-decoration: none; }
.gbl-page .gbl-contact-launch svg { width: 30px; height: 30px; }
.gbl-page .gbl-contact-launch:focus-visible { outline: 3px solid #97e5ff; outline-offset: 4px; }
.gbl-page .gbl-contact-panel {
  position: fixed;
  right: 24px;
  bottom: calc(96px + var(--gbl-contact-keyboard, 0px));
  width: 360px;
  max-width: calc(100vw - 32px);
  max-height: calc(100vh - 120px);
  max-height: calc(var(--gbl-contact-view-height, 100dvh) - 120px);
  overflow-y: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--gabi-border);
  border-radius: 18px;
  color: var(--gabi-text);
  background: var(--gabi-surface, #fff);
  box-shadow: 0 20px 60px rgba(3,16,54,.3);
  outline: none;
  scroll-margin: 16px;
}
.gbl-page .gbl-contact-header {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 14px 18px 20px;
  color: #fff;
  background: linear-gradient(120deg, #1252e4, #0b286e);
}
.gbl-page .gbl-contact-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,.25);
  border-radius: 13px;
  background: rgba(255,255,255,.12);
  font-size: 23px;
}
.gbl-page .gbl-contact-heading { flex: 1; min-width: 0; line-height: 1.4; }
.gbl-page .gbl-contact-heading strong { display: block; color: #fff; font-size: 16px; font-weight: 700; }
.gbl-page .gbl-contact-heading span { display: block; color: #d9e8ff; font-size: 11px; }
.gbl-page .gbl-contact-close {
  display: grid;
  place-items: center;
  align-self: flex-start;
  width: 36px;
  height: 36px;
  flex: 0 0 36px;
  border: 0;
  border-radius: 8px;
  color: #fff;
  background: transparent;
  cursor: pointer;
  font-size: 18px;
}
.gbl-page .gbl-contact-close:hover { background: rgba(255,255,255,.12); }
.gbl-page .gbl-contact-close:focus-visible { outline: 2px solid #97e5ff; outline-offset: -2px; }
.gbl-page .gbl-contact-body { display: grid; gap: 12px; padding: 20px; background: var(--gabi-surface-soft); }
.gbl-page .gbl-contact-body p {
  margin: 0;
  padding: 13px 15px;
  border: 1px solid var(--gabi-border);
  border-radius: 12px 12px 12px 3px;
  background: #fff;
  color: var(--gabi-text-soft);
  font-size: 13px;
  line-height: 1.6;
}
.gbl-page .gbl-contact-form { display: grid; gap: 14px; padding: 20px; margin: 0; }
.gbl-page .gbl-contact-form label { font-size: 12px; font-weight: 600; }
.gbl-page .gbl-contact-form input[type="text"] { min-height: 46px; font-size: 16px; }
.gbl-page .gbl-contact-send {
  width: 100%;
  min-height: 46px;
  gap: 9px;
  padding: 10px 12px;
  border-color: #128345;
  color: #fff;
  background: #128345;
  font-size: 13px;
  font-weight: 600;
}
.gbl-page .gbl-contact-send:hover { color: #fff; background: #0e7039; border-color: #0e7039; }
.gbl-page .gbl-contact-send svg { width: 21px; height: 21px; flex: 0 0 21px; }
@media (max-width: 600px) {
  /* No celular, o icone ocupa uma area propria depois do rodape, sem cobrir o login. */
  .gabi-ui-catalogo.gbl-page { padding-bottom: calc(92px + env(safe-area-inset-bottom, 0px)); }
  .gbl-page .gbl-contact { position: absolute; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); }
  .gbl-page .gbl-contact-panel {
    right: 16px;
    bottom: calc(88px + var(--gbl-contact-keyboard, 0px));
    max-height: calc(100vh - 104px);
    max-height: calc(var(--gbl-contact-view-height, 100dvh) - 104px);
  }
}

/* GABI-JORGE-LOGIN-UI-01E | Mini chat de suporte; fundo e formulario preservados. */
.gbl-page .gbl-contact-panel:not([hidden]) {
  transform-origin: bottom right;
  animation: gbl-contact-enter 240ms cubic-bezier(.2,.75,.25,1) both;
}
.gbl-page .gbl-contact-avatar {
  position: relative;
  flex-basis: 44px;
  width: 44px;
  height: 44px;
  overflow: hidden;
  border: 2px solid rgba(255,255,255,.7);
  border-radius: 50%;
  font-size: 18px;
  font-weight: 700;
}
.gbl-page .gbl-contact-avatar img {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 22%;
  transform: scale(1.45);
  transform-origin: 50% 28%;
}
.gbl-page .gbl-chat-message { position: relative; min-width: 0; }
.gbl-page .gbl-chat-message p {
  font-size: 14px;
  line-height: 1.55;
  opacity: 1;
  transform: none;
  transition: opacity 220ms ease, transform 220ms ease;
}
.gbl-page .gbl-chat-message[data-state="pending"] p,
.gbl-page .gbl-chat-message[data-state="typing"] p {
  visibility: hidden;
  opacity: 0;
  transform: translateY(6px);
}
.gbl-page .gbl-chat-typing {
  position: absolute;
  top: 0;
  left: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  height: 47px;
  padding: 0 17px;
  border: 1px solid var(--gabi-border);
  border-radius: 12px 12px 12px 3px;
  background: #fff;
}
.gbl-page .gbl-chat-typing i {
  display: block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #7b8ba6;
  animation: gbl-contact-dot 900ms ease-in-out infinite;
}
.gbl-page .gbl-chat-typing i:nth-child(2) { animation-delay: 120ms; }
.gbl-page .gbl-chat-typing i:nth-child(3) { animation-delay: 240ms; }
@keyframes gbl-contact-enter {
  from { opacity: 0; transform: translateY(10px) scale(.98); }
  to { opacity: 1; transform: none; }
}
@keyframes gbl-contact-dot {
  0%, 65%, 100% { transform: translateY(0); opacity: .5; }
  30% { transform: translateY(-4px); opacity: 1; }
}
.gbl-page[data-gbl-motion="off"] .gbl-contact-panel,
.gbl-page[data-gbl-motion="off"] .gbl-chat-typing i { animation: none; }
.gbl-page[data-gbl-motion="off"] .gbl-chat-message p { transition: none; }
@media (prefers-reduced-motion: reduce) {
  .gbl-page .gbl-contact-panel,
  .gbl-page .gbl-chat-typing i { animation: none; }
  .gbl-page .gbl-chat-message p { transition: none; }
}
