/* Login split — Saturn Solutions (formulário + vitrine) */

/* ── Tokens (modo escuro = default) ─────────────────────────── */
.empresa-auth-split,
body.sgae-auth-empresa-page {
  --auth-bg: #0a0f1c;
  --auth-surface: #1a2337;
  --auth-surface-elevated: rgba(26, 35, 55, 0.92);
  --auth-surface-input: rgba(10, 15, 28, 0.55);
  --auth-border: rgba(0, 180, 255, 0.16);
  --auth-border-strong: rgba(0, 180, 255, 0.35);
  --auth-text: #f8fafc;
  --auth-text-muted: #94a3b8;
  --auth-text-dim: #64748b;
  --auth-label: #cbd5e1;
  --auth-primary: #00b4ff;
  --auth-primary-deep: #0078d4;
  --auth-accent: #ff6b00;
  --auth-glow: rgba(0, 180, 255, 0.45);
  --auth-glow-soft: rgba(0, 180, 255, 0.18);
  --auth-shadow: 0 32px 80px rgba(0, 0, 0, 0.55);
  --auth-radius: 16px;
  --auth-radius-lg: 22px;
  --auth-font: "Inter", "Plus Jakarta Sans", system-ui, sans-serif;
  --auth-warn-bg: rgba(255, 107, 0, 0.12);
  --auth-warn-border: rgba(255, 107, 0, 0.35);
  --auth-warn-text: #fdba74;
  --auth-caption-bg: rgba(26, 35, 55, 0.92);
  --auth-caption-border: rgba(0, 180, 255, 0.22);
  --auth-caption-title: #f8fafc;
  --auth-caption-text: #94a3b8;
  --auth-secondary-bg: rgba(255, 255, 255, 0.04);
  --auth-secondary-hover: rgba(0, 180, 255, 0.1);
  --auth-code-bg: rgba(0, 180, 255, 0.08);
  --auth-code-border: rgba(0, 180, 255, 0.2);
}

html[data-theme="light"] .empresa-auth-split,
html[data-theme="light"] body.sgae-auth-empresa-page {
  --auth-bg: #f8fafc;
  --auth-surface: #ffffff;
  --auth-surface-elevated: rgba(255, 255, 255, 0.94);
  --auth-surface-input: #ffffff;
  --auth-border: rgba(15, 23, 42, 0.1);
  --auth-border-strong: rgba(0, 120, 212, 0.35);
  --auth-text: #0f172a;
  --auth-text-muted: #64748b;
  --auth-text-dim: #94a3b8;
  --auth-label: #334155;
  --auth-primary: #00b4ff;
  --auth-primary-deep: #0078d4;
  --auth-accent: #ff6b00;
  --auth-glow: rgba(0, 180, 255, 0.35);
  --auth-glow-soft: rgba(0, 120, 212, 0.12);
  --auth-shadow: 0 28px 64px rgba(15, 23, 42, 0.14);
  --auth-warn-bg: #fff7ed;
  --auth-warn-border: #fed7aa;
  --auth-warn-text: #9a3412;
  --auth-caption-bg: rgba(255, 255, 255, 0.96);
  --auth-caption-border: rgba(255, 255, 255, 0.85);
  --auth-caption-title: #0f172a;
  --auth-caption-text: #475569;
  --auth-secondary-bg: #ffffff;
  --auth-secondary-hover: rgba(0, 180, 255, 0.08);
  --auth-code-bg: #f1f5f9;
  --auth-code-border: #e2e8f0;
}

/* ── Página / fundo cósmico ─────────────────────────────────── */
html.sgae-auth-page body.sgae-landing .landing-container,
body.sgae-auth-empresa-page.sgae-landing .landing-container {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: clamp(1rem, 3vw, 2rem);
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: left;
  font-family: var(--auth-font);
}

html.sgae-auth-page body.sgae-landing .landing-container > .alert,
body.sgae-auth-empresa-page.sgae-landing .landing-container > .alert {
  position: fixed;
  top: 4.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 20;
  max-width: min(520px, 92vw);
  text-align: left;
}

/* Aurora + profundidade atrás do split */
html.sgae-auth-page body.sgae-landing::before,
body.sgae-auth-empresa-page.sgae-landing::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 70% 50% at 18% 40%, rgba(0, 180, 255, 0.22), transparent 55%),
    radial-gradient(ellipse 55% 45% at 82% 70%, rgba(255, 107, 0, 0.1), transparent 50%),
    radial-gradient(ellipse 40% 30% at 50% 0%, rgba(0, 180, 255, 0.14), transparent 60%);
}

html.sgae-auth-page[data-theme="light"] body.sgae-landing::before,
html[data-theme="light"] body.sgae-auth-empresa-page.sgae-landing::before {
  background:
    radial-gradient(ellipse 70% 50% at 18% 40%, rgba(0, 180, 255, 0.14), transparent 55%),
    radial-gradient(ellipse 55% 45% at 82% 70%, rgba(255, 107, 0, 0.06), transparent 50%),
    radial-gradient(ellipse 40% 30% at 50% 0%, rgba(0, 120, 212, 0.1), transparent 60%);
}

html.sgae-auth-page .sgae-space-layer,
body.sgae-auth-empresa-page .sgae-space-layer {
  opacity: 0.9;
}

html.sgae-auth-page #sgae-space-stars,
body.sgae-auth-empresa-page #sgae-space-stars {
  opacity: 0.55;
}

html.sgae-auth-page[data-theme="light"] #sgae-space-stars,
html[data-theme="light"] body.sgae-auth-empresa-page #sgae-space-stars {
  opacity: 0.28;
}

html.sgae-auth-page .sgae-saturn,
body.sgae-auth-empresa-page .sgae-saturn {
  opacity: 0.42;
  right: 6%;
  top: 10%;
  width: 88px;
  height: 88px;
}

html.sgae-auth-page[data-theme="light"] .sgae-saturn,
html[data-theme="light"] body.sgae-auth-empresa-page .sgae-saturn {
  opacity: 0.28;
}

/* ── Shell split ────────────────────────────────────────────── */
.empresa-auth-split {
  position: relative;
  display: grid;
  grid-template-columns: minmax(300px, 1fr) minmax(280px, 1.05fr);
  /* Linha 2 só ganha altura quando há avisos (flash) sob o painel visual. */
  grid-template-rows: 1fr auto;
  width: min(1100px, 100%);
  min-height: min(660px, calc(100dvh - 3rem));
  border-radius: var(--auth-radius-lg);
  overflow: hidden;
  border: 1px solid var(--auth-border);
  box-shadow: var(--auth-shadow), 0 0 0 1px rgba(0, 180, 255, 0.04);
  background: var(--auth-surface);
  isolation: isolate;
}

.empresa-auth-split::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 12% 18%, var(--auth-glow-soft), transparent 42%),
    radial-gradient(circle at 88% 88%, rgba(255, 107, 0, 0.06), transparent 40%);
  opacity: 1;
}

.empresa-auth-split > * {
  position: relative;
  z-index: 1;
}

/* ── Avisos (flash) sob o painel visual ─────────────────────── */
.empresa-auth-split__flash {
  grid-column: 2;
  grid-row: 2;
  padding: 0.9rem 1.1rem;
  background: var(--auth-surface-elevated);
}

.empresa-auth-split__flash .alert {
  margin: 0;
  font-size: 0.92rem;
}

.empresa-auth-split__flash .alert + .alert {
  margin-top: 0.6rem;
}

/* ── Coluna do formulário ───────────────────────────────────── */
.empresa-auth-split__form {
  grid-row: 1 / -1;
  padding: clamp(1.75rem, 4vw, 2.85rem) clamp(1.5rem, 4vw, 2.65rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  background: var(--auth-surface-elevated);
  color: var(--auth-text);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.empresa-auth-split__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.4rem;
  margin-bottom: 1.85rem;
  background: transparent;
}

.empresa-auth-split__logo {
  width: auto;
  height: 52px;
  max-width: min(260px, 78vw);
  object-fit: contain;
  object-position: left center;
  filter: drop-shadow(0 4px 16px rgba(0, 180, 255, 0.18));
  transition: transform 0.35s ease, filter 0.35s ease;
}

.empresa-auth-split__brand:hover .empresa-auth-split__logo {
  transform: translateY(-1px);
  filter: drop-shadow(0 8px 22px rgba(0, 180, 255, 0.28));
}

/* Logins compartilhados: faixa da logo com o mesmo bege claro do fundo da imagem,
   fixo tanto no tema claro quanto no escuro. */
.empresa-auth-split__brand--logo-bg {
  align-self: stretch;
}

.empresa-auth-split__brand--logo-bg .empresa-auth-split__logo {
  width: 100%;
  max-width: none;
  height: 68px;
  box-sizing: border-box;
  padding: 0.55rem 0.9rem;
  background: #faf8f5;
  border-radius: 12px;
  filter: none;
  box-shadow: 0 4px 16px rgba(0, 180, 255, 0.14);
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.empresa-auth-split__brand--logo-bg:hover .empresa-auth-split__logo {
  filter: none;
  box-shadow: 0 8px 22px rgba(0, 180, 255, 0.22);
}

.empresa-auth-split__product {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--auth-primary);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.empresa-auth-split__product::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--auth-primary);
  box-shadow: 0 0 10px var(--auth-glow);
  animation: auth-pulse-dot 2.4s ease-in-out infinite;
}

.empresa-auth-split__title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.5rem, 3vw, 1.95rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--auth-text);
  line-height: 1.15;
}

.empresa-auth-split__lead {
  margin: 0 0 1.65rem;
  font-size: 0.95rem;
  line-height: 1.55;
  color: var(--auth-text-muted);
  max-width: 36rem;
}

/* Card interno do formulário */
.empresa-auth-split__card {
  padding: 1.35rem 1.25rem 1.4rem;
  border-radius: var(--auth-radius);
  background: var(--auth-surface-input);
  border: 1px solid var(--auth-border);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
}

.empresa-auth-split__card:focus-within {
  border-color: var(--auth-border-strong);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    0 0 0 3px var(--auth-glow-soft),
    0 12px 40px rgba(0, 0, 0, 0.12);
}

html[data-theme="light"] .empresa-auth-split__card {
  background: #ffffff;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}

.empresa-auth-split__form .form-label {
  font-weight: 600;
  font-size: 0.86rem;
  color: var(--auth-label);
  margin-bottom: 0.4rem;
  letter-spacing: 0.01em;
}

.empresa-auth-split__field {
  margin-bottom: 1.15rem;
}

.empresa-auth-split__field:last-of-type {
  margin-bottom: 1.35rem;
}

.empresa-auth-split__input-wrap,
.empresa-auth-split__password-wrap {
  position: relative;
}

.empresa-auth-split__input-icon {
  position: absolute;
  left: 0.9rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--auth-text-dim);
  font-size: 0.92rem;
  pointer-events: none;
  transition: color 0.2s ease;
  z-index: 1;
}

.empresa-auth-split__input-wrap:focus-within .empresa-auth-split__input-icon,
.empresa-auth-split__password-wrap:focus-within .empresa-auth-split__input-icon {
  color: var(--auth-primary);
}

.empresa-auth-split__toggle-pw {
  position: absolute;
  right: 0.45rem;
  top: 50%;
  transform: translateY(-50%);
  border: 0;
  background: transparent;
  color: var(--auth-text-muted);
  padding: 0.4rem 0.5rem;
  line-height: 1;
  border-radius: 10px;
  cursor: pointer;
  z-index: 2;
  pointer-events: auto;
  transition: color 0.2s, background 0.2s, transform 0.2s;
}

.empresa-auth-split__toggle-pw:hover {
  color: var(--auth-primary);
  background: var(--auth-glow-soft);
}

.empresa-auth-split__toggle-pw:active {
  transform: translateY(-50%) scale(0.94);
}

.empresa-auth-split__form .form-control,
.empresa-auth-split__form .form-select {
  border-radius: 12px;
  border: 1px solid var(--auth-border);
  padding: 0.78rem 0.95rem;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--auth-text);
  background: var(--auth-surface);
  transition:
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    transform 0.18s ease;
}

/* Padding após o shorthand acima — evita ícone sobre o placeholder */
.empresa-auth-split__form .empresa-auth-split__input-wrap .form-control,
.empresa-auth-split__form .empresa-auth-split__input-wrap .form-select,
.empresa-auth-split__form .empresa-auth-split__password-wrap .form-control,
.empresa-auth-split__form .empresa-auth-split__password-wrap .form-select {
  padding-left: 2.7rem;
}

.empresa-auth-split__form .empresa-auth-split__password-wrap .form-control {
  padding-right: 2.85rem;
}

.empresa-auth-split__form .form-control::placeholder {
  color: var(--auth-text-dim);
}

.empresa-auth-split__form .form-control:hover,
.empresa-auth-split__form .form-select:hover {
  border-color: var(--auth-border-strong);
}

.empresa-auth-split__form .form-control:focus,
.empresa-auth-split__form .form-select:focus {
  border-color: var(--auth-primary);
  box-shadow: 0 0 0 3px var(--auth-glow-soft), 0 0 20px rgba(0, 180, 255, 0.12);
  background: var(--auth-surface);
  color: var(--auth-text);
  outline: none;
}

/* ── Botão Entrar (glow) ────────────────────────────────────── */
.empresa-auth-split__submit {
  position: relative;
  width: 100%;
  margin-top: 0.15rem;
  padding: 0.9rem 1.35rem;
  border: 0;
  border-radius: 14px;
  font-weight: 700;
  font-size: 1.02rem;
  letter-spacing: 0.01em;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  overflow: hidden;
  isolation: isolate;
  background: linear-gradient(135deg, #00b4ff 0%, #0078d4 55%, #0369a1 100%);
  box-shadow:
    0 10px 28px rgba(0, 180, 255, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.12) inset;
  transition:
    transform 0.22s ease,
    box-shadow 0.28s ease,
    filter 0.22s ease;
}

.empresa-auth-split__submit::before {
  content: "";
  position: absolute;
  inset: -40%;
  z-index: -1;
  background: radial-gradient(circle at 50% 50%, rgba(0, 180, 255, 0.55), transparent 55%);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.empresa-auth-split__submit i {
  font-size: 0.92rem;
  transition: transform 0.25s ease;
}

.empresa-auth-split__submit:hover {
  filter: brightness(1.06);
  transform: translateY(-2px);
  box-shadow:
    0 14px 36px rgba(0, 180, 255, 0.5),
    0 0 32px rgba(0, 180, 255, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.18) inset;
  color: #fff;
}

.empresa-auth-split__submit:hover::before {
  opacity: 1;
}

.empresa-auth-split__submit:hover i {
  transform: translateX(3px);
}

.empresa-auth-split__submit:active {
  transform: translateY(0);
  filter: brightness(0.98);
}

.empresa-auth-split__submit:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 3px var(--auth-glow-soft),
    0 14px 36px rgba(0, 180, 255, 0.45);
}

.empresa-auth-split__forgot {
  display: block;
  margin: 0.95rem 0 0;
  text-align: right;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--auth-primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

html[data-theme="light"] .empresa-auth-split__forgot {
  color: var(--auth-primary-deep);
}

.empresa-auth-split__forgot:hover {
  color: var(--auth-accent);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.empresa-auth-split__hint {
  margin: 1.2rem 0 0;
  font-size: 0.84rem;
  line-height: 1.5;
  color: var(--auth-text-muted);
}

.empresa-auth-split__hint--field {
  margin: 0.45rem 0 0;
}

.empresa-auth-split__form .inline-code {
  font-family: ui-monospace, monospace;
  font-size: 0.88em;
  padding: 0.1em 0.35em;
  background: var(--auth-code-bg);
  border-radius: 6px;
  border: 1px solid var(--auth-code-border);
  color: var(--auth-label);
}

.empresa-auth-split__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  margin-top: 1.55rem;
  padding-top: 1.3rem;
  border-top: 1px solid var(--auth-border);
}

.empresa-auth-split__btn-secondary {
  flex: 1 1 140px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.68rem 1rem;
  border-radius: 12px;
  font-weight: 600;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1px solid var(--auth-border);
  background: var(--auth-secondary-bg);
  color: var(--auth-text-muted);
  transition:
    border-color 0.2s,
    color 0.2s,
    box-shadow 0.2s,
    transform 0.2s,
    background 0.2s;
}

.empresa-auth-split__btn-secondary:hover {
  border-color: var(--auth-border-strong);
  color: var(--auth-text);
  background: var(--auth-secondary-hover);
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  text-decoration: none;
}

.empresa-auth-split__btn-secondary--primary {
  border-color: rgba(0, 180, 255, 0.45);
  color: var(--auth-primary-deep);
  background: rgba(0, 180, 255, 0.1);
}

html:not([data-theme="light"]) .empresa-auth-split__btn-secondary--primary {
  color: var(--auth-primary);
}

.empresa-auth-split__btn-secondary--primary:hover {
  border-color: var(--auth-primary);
  color: var(--auth-primary-deep);
  box-shadow: 0 8px 22px rgba(0, 180, 255, 0.2);
}

html:not([data-theme="light"]) .empresa-auth-split__btn-secondary--primary:hover {
  color: #7dd3fc;
}

/* Opções (portal aluno) */
.empresa-auth-split__options {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.25rem;
}

.empresa-auth-split__option {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.9rem 1.05rem;
  border-radius: var(--auth-radius);
  border: 1px solid var(--auth-border);
  background: var(--auth-surface-input);
  color: var(--auth-text);
  text-decoration: none;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.2s, background 0.2s;
}

.empresa-auth-split__option i {
  width: 1.35rem;
  text-align: center;
  color: var(--auth-primary);
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: transform 0.25s ease;
}

.empresa-auth-split__option span {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  min-width: 0;
}

.empresa-auth-split__option strong {
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.25;
}

.empresa-auth-split__option small {
  font-size: 0.78rem;
  color: var(--auth-text-muted);
  line-height: 1.3;
}

.empresa-auth-split__option:hover {
  border-color: var(--auth-border-strong);
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(0, 180, 255, 0.12);
  text-decoration: none;
  color: var(--auth-text);
  background: var(--auth-secondary-hover);
}

.empresa-auth-split__option:hover i {
  transform: scale(1.08);
}

.empresa-auth-split__option--primary {
  border-color: rgba(0, 180, 255, 0.45);
  background: linear-gradient(135deg, #00b4ff 0%, #0078d4 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(0, 180, 255, 0.3);
}

.empresa-auth-split__option--primary i,
.empresa-auth-split__option--primary small {
  color: rgba(255, 255, 255, 0.9);
}

.empresa-auth-split__option--primary strong {
  color: #fff;
}

.empresa-auth-split__option--primary:hover {
  color: #fff;
  border-color: #00b4ff;
  box-shadow: 0 14px 36px rgba(0, 180, 255, 0.45), 0 0 24px rgba(0, 180, 255, 0.28);
}

/* ── Painel visual ──────────────────────────────────────────── */
.empresa-auth-split__visual {
  position: relative;
  background: #0a0f1c;
  min-height: 320px;
  overflow: hidden;
  aspect-ratio: 4 / 5;
}

.empresa-auth-carousel {
  position: absolute;
  inset: 0;
}

.empresa-auth-carousel__slides {
  position: absolute;
  inset: 0;
}

.empresa-auth-carousel__slide {
  position: absolute;
  inset: 0;
  margin: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.85s ease, visibility 0.85s ease;
  z-index: 0;
}

.empresa-auth-carousel__slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}

.empresa-auth-carousel__slide img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  display: block;
  transform: none;
  transition: opacity 0.85s ease;
}

.empresa-auth-carousel__slide.is-active img {
  transform: none;
}

.empresa-auth-carousel__slide:nth-child(1) img,
.empresa-auth-carousel__slide:nth-child(2) img,
.empresa-auth-carousel__slide:nth-child(3) img {
  object-position: center center;
}

.empresa-auth-carousel__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(10, 15, 28, 0.15) 0%,
    rgba(10, 15, 28, 0.45) 55%,
    rgba(10, 15, 28, 0.88) 100%
  );
  pointer-events: none;
}

.empresa-auth-carousel__overlay::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 40% at 50% 0%, rgba(0, 180, 255, 0.18), transparent 55%),
    radial-gradient(circle at 85% 20%, rgba(255, 107, 0, 0.12), transparent 35%);
  pointer-events: none;
}

.empresa-auth-carousel__captions {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 2.85rem;
  z-index: 3;
  display: grid;
  min-height: 0;
  width: auto;
  max-width: none;
  box-sizing: border-box;
}

.empresa-auth-carousel__caption {
  grid-area: 1 / 1;
  position: relative;
  align-self: end;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  opacity: 0;
  visibility: hidden;
  transform: translateY(8px);
  transition: opacity 0.85s ease, visibility 0.85s ease, transform 0.85s ease;
  pointer-events: none;
}

.empresa-auth-carousel__caption.is-active {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
  pointer-events: auto;
  transition: opacity 0.85s ease, visibility 0.85s ease, transform 0.35s ease, box-shadow 0.35s ease;
}

.empresa-auth-carousel__dots {
  position: absolute;
  left: 50%;
  bottom: 1.15rem;
  transform: translateX(-50%);
  z-index: 4;
  display: flex;
  gap: 0.45rem;
  align-items: center;
}

.empresa-auth-carousel__dot {
  width: 2.15rem;
  height: 0.35rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.35);
  cursor: pointer;
  transition: background 0.3s ease, transform 0.25s ease, width 0.3s ease, box-shadow 0.3s ease;
}

.empresa-auth-carousel__dot.is-active {
  width: 2.75rem;
  background: linear-gradient(90deg, #00b4ff, #0078d4);
  box-shadow: 0 0 14px rgba(0, 180, 255, 0.55);
}

.empresa-auth-carousel__dot:hover {
  background: rgba(255, 255, 255, 0.55);
}

.empresa-auth-carousel__dot.is-active:hover {
  background: linear-gradient(90deg, #00b4ff, #0078d4);
}

.empresa-auth-split__visual-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.empresa-auth-split__visual::after {
  content: none;
}

.empresa-auth-split__badge {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  z-index: 2;
  padding: 0.42rem 0.8rem;
  border-radius: 10px;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #fff;
  background: linear-gradient(135deg, #00b4ff, #0078d4);
  box-shadow: 0 8px 24px rgba(0, 180, 255, 0.4), 0 0 20px rgba(0, 180, 255, 0.2);
  backdrop-filter: blur(6px);
}

.empresa-auth-split__caption {
  padding: 0.85rem 1rem;
  border-radius: var(--auth-radius);
  background: var(--auth-caption-bg);
  border: 1px solid var(--auth-caption-border);
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  overflow: visible;
  max-width: 100%;
  box-sizing: border-box;
}

.empresa-auth-split:hover .empresa-auth-carousel__caption.is-active {
  transform: translateY(-3px);
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.32), 0 0 24px rgba(0, 180, 255, 0.12);
}

.empresa-auth-split__caption h3 {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--auth-caption-title);
}

.empresa-auth-split__caption p {
  margin: 0;
  font-size: 0.88rem;
  line-height: 1.45;
  color: var(--auth-caption-text);
  overflow-wrap: anywhere;
  word-wrap: break-word;
  white-space: normal;
}

.empresa-auth-split__link-muted {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--auth-text-muted);
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.empresa-auth-split__link-muted:hover {
  color: var(--auth-primary);
}

.empresa-auth-split__pending-email {
  margin: 0 0 0.5rem;
  font-weight: 700;
  color: var(--auth-text);
  word-break: break-all;
}

.empresa-auth-split__warn {
  margin: 0 0 1rem;
  padding: 0.7rem 0.9rem;
  border-radius: 12px;
  font-size: 0.84rem;
  line-height: 1.45;
  color: var(--auth-warn-text);
  background: var(--auth-warn-bg);
  border: 1px solid var(--auth-warn-border);
}

@keyframes auth-pulse-dot {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.55;
    transform: scale(0.85);
  }
}

@media (max-width: 900px) {
  .empresa-auth-split {
    grid-template-columns: 1fr;
    grid-template-rows: none;
    min-height: auto;
  }

  .empresa-auth-split__form,
  .empresa-auth-split__flash {
    grid-column: auto;
    grid-row: auto;
  }

  .empresa-auth-split__visual {
    order: -1;
    min-height: 220px;
    aspect-ratio: 16 / 9;
  }

  .empresa-auth-split__card {
    padding: 1.15rem 1rem 1.25rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .empresa-auth-split__submit:hover,
  .empresa-auth-split__btn-secondary:hover,
  .empresa-auth-split__option:hover,
  .empresa-auth-split:hover .empresa-auth-carousel__caption.is-active,
  .empresa-auth-split__brand:hover .empresa-auth-split__logo {
    transform: none;
  }

  .empresa-auth-carousel__slide,
  .empresa-auth-carousel__caption,
  .empresa-auth-carousel__slide img,
  .empresa-auth-split__product::before {
    transition: none;
    animation: none;
  }

  .empresa-auth-carousel__slide.is-active img {
    transform: none;
  }
}

/* Theme switch (mesmo padrao Controle Geral / sgae-app-layout) */
.sgae-theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 12px;
  border: 1px solid var(--sgae-border, rgba(255, 255, 255, 0.22));
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(8px);
}
.sgae-theme-switch--float {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 10000;
}
.sgae-theme-switch--float-right {
  left: auto;
  right: 12px;
}
.sgae-theme-switch-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: none;
  border-radius: 9px;
  background: transparent;
  color: rgba(248, 250, 252, 0.75);
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}
.sgae-theme-switch-btn:hover {
  color: #f8fafc;
  background: rgba(255, 255, 255, 0.08);
}
.sgae-theme-switch-btn.is-active {
  color: #0f172a;
  background: linear-gradient(180deg, #fde68a 0%, #fbbf24 100%);
  box-shadow: 0 0 0 1px rgba(251, 191, 36, 0.45);
}
.sgae-theme-switch-btn[data-sgae-theme-set="dark"].is-active {
  color: #e2e8f0;
  background: linear-gradient(180deg, #475569 0%, #1e293b 100%);
  box-shadow: 0 0 0 1px rgba(148, 163, 184, 0.35);
}
[data-theme="light"] .sgae-theme-switch {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(15, 23, 42, 0.12);
}
[data-theme="light"] .sgae-theme-switch-btn {
  color: rgba(15, 23, 42, 0.55);
}
[data-theme="light"] .sgae-theme-switch-btn:hover {
  color: #0f172a;
  background: rgba(15, 23, 42, 0.06);
}
