/* --------------------------------------------------------------------------
   Login VIP 4.events — mesmo padrão visual do login expositor (“aurora card”)
   Fundo em camadas + cartão flutuante + acento linear laranja
   -------------------------------------------------------------------------- */

:root {
  --sl-bg: #f4f6f9;
  --sl-surface: #ffffff;
  --sl-ink: #0f172a;
  --sl-ink-muted: #64748b;
  --sl-border: #e2e8f0;
  --sl-focus: rgba(255, 84, 16, 0.35);
  --sl-orange: #ff5410;
  --sl-orange-dark: #e8490c;
  --sl-orange-soft: #fff4ef;
  --sl-radius: 20px;
  --sl-radius-sm: 12px;
  --sl-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 20px 40px -12px rgba(15, 23, 42, 0.12);
  --sl-font: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

/* Página login: sem navbar/footer globais — layout igual ao sponsor */
body.sponsor-login.page-vip-login .navbar,
body.sponsor-login.page-vip-login .footer {
  display: none !important;
}

body.sponsor-login.page-vip-login .content-wrapper {
  max-width: 100%;
  width: 100%;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Reset escopo da página */
.sponsor-login.page-vip-login {
  margin: 0;
  min-height: 100vh;
  font-family: var(--sl-font);
  font-size: 15px;
  line-height: 1.5;
  color: var(--sl-ink);
  background: var(--sl-bg) !important;
  -webkit-font-smoothing: antialiased;
}

.sponsor-login.page-vip-login * {
  box-sizing: border-box;
}

/* Ambiente: orbes + grade sutil */
.sl-ambient {
  position: fixed;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 0;
}

.sl-ambient__orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.45;
}

.sl-ambient__orb--1 {
  width: min(72vw, 520px);
  height: min(72vw, 520px);
  background: radial-gradient(circle, rgba(255, 84, 16, 0.22) 0%, transparent 70%);
  top: -12%;
  right: -8%;
}

.sl-ambient__orb--2 {
  width: min(60vw, 420px);
  height: min(60vw, 420px);
  background: radial-gradient(circle, rgba(99, 102, 241, 0.12) 0%, transparent 70%);
  bottom: -15%;
  left: -10%;
}

.sl-ambient__grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(148, 163, 184, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(148, 163, 184, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse 80% 70% at 50% 40%, black 20%, transparent 100%);
}

.vip-login-main.sl-main,
.sl-main {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px 48px;
}

/* Cartão */
.sl-card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: var(--sl-surface);
  border-radius: var(--sl-radius);
  box-shadow: var(--sl-shadow);
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 36px 32px 28px;
}

.sl-card__accent {
  position: absolute;
  top: 0;
  left: 24px;
  right: 24px;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, var(--sl-orange) 0%, #ff8a5c 50%, var(--sl-orange-dark) 100%);
}

.sl-brand {
  text-align: center;
  margin-bottom: 28px;
}

.sl-brand__logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.sl-brand__tagline {
  margin: 0;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--sl-ink-muted);
}

/* Logo 4.events (SVG inline) */
.icon-4events {
  display: inline-block;
  vertical-align: middle;
  background-size: contain;
  background-repeat: no-repeat;
}

.icon-4events.logo-orange {
  background-image: url("data:image/svg+xml,%3Csvg width='91' height='16' viewBox='0 0 91 16' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M14.47 12.437c-.302 0-.598.09-.85.255a1.516 1.516 0 0 0-.562.68 1.497 1.497 0 0 0 .332 1.647 1.536 1.536 0 0 0 1.667.327c.28-.114.518-.308.686-.557.168-.249.257-.541.257-.84a1.483 1.483 0 0 0-.443-1.074 1.515 1.515 0 0 0-1.087-.438zM36.6 13.148h-.047l-3.707-9.304h-2.409l4.773 11.32h2.665l4.773-11.32h-2.34L36.6 13.148zM49.39 3.547c-3.614 0-6.163 2.52-6.163 5.957 0 3.436 2.549 5.957 6.163 5.957 2.665 0 4.75-1.351 5.631-3.46h-2.433c-.672.985-1.714 1.444-3.198 1.444-2.086 0-3.521-1.214-3.846-3.094v-.045h9.964v-.802c0-3.438-2.502-5.957-6.118-5.957zm3.8 4.811h-7.576v-.046c.44-1.673 1.83-2.749 3.776-2.749 1.947 0 3.36 1.076 3.8 2.75v.045z' fill='%23ff4700'/%3E%3Cpath d='M20.365 10.308v-.002h9.491v-.802c0-3.437-2.502-5.957-6.118-5.957-2.688 0-4.786 1.394-5.686 3.523h2.487c.677-.944 1.793-1.507 3.2-1.507 1.945 0 3.36 1.076 3.8 2.75v.046h-9.865v.003l-7.877.002h-.192V.178H7.403L.273 8.455v1.856h7.113l.017 4.853h2.202v-4.853h1.585l6.435-.002c.367 3.018 2.788 5.152 6.113 5.152 2.665 0 4.75-1.35 5.631-3.46h-2.433c-.672.986-1.714 1.444-3.198 1.444-2.086 0-3.521-1.213-3.846-3.095v-.041h.473zM2.468 8.553v-.046L7.356 3.25l.022 5.304h-4.91zM62.97 3.547c-3.384 0-5.655 1.946-5.655 5.728v5.889h2.2v-5.89c0-2.451 1.37-3.711 3.455-3.711 2.084 0 3.451 1.26 3.451 3.712v5.889h2.202v-5.89c0-3.803-2.27-5.727-5.653-5.727zM77.891 10.878c0 1.81-.973 2.567-2.409 2.567-1.437 0-2.387-.779-2.387-2.567v-5.04h6.302V3.844h-6.302V.178h-2.202v10.7c0 3.07 1.855 4.583 4.589 4.583 2.734 0 4.588-1.513 4.588-4.583v-.252H77.89v.252zM83.94 7.166c0-.984.834-1.649 2.316-1.649 1.367 0 2.178.641 2.249 1.512h2.177c-.047-1.947-1.737-3.482-4.472-3.482-2.734 0-4.495 1.535-4.495 3.62 0 4.72 7.044 2.267 7.044 4.651 0 .985-.858 1.673-2.55 1.673-1.574 0-2.455-.665-2.501-1.605h-2.225c.07 2.062 1.877 3.575 4.75 3.575 2.874 0 4.751-1.535 4.751-3.643 0-4.743-7.044-2.292-7.044-4.652z' fill='%23ff4700'/%3E%3C/svg%3E%0A");
  width: 148px;
  height: 28px;
}

.sl-panel__intro {
  margin-bottom: 24px;
  text-align: center;
}

.sl-heading {
  margin: 0 0 8px;
  font-size: 1.375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--sl-ink);
  line-height: 1.25;
}

.sl-lead {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--sl-ink-muted);
  line-height: 1.55;
}

.sl-form {
  margin: 0;
}

/* Abas E-mail / Celular */
.sl-tabs.vip-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 20px;
}

.sl-tab.vip-tab {
  flex: 1;
  padding: 12px 14px;
  font-family: var(--sl-font);
  font-size: 14px;
  font-weight: 600;
  color: var(--sl-ink);
  background: #fff;
  border: 1px solid var(--sl-border);
  border-radius: var(--sl-radius-sm);
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.sl-tab.vip-tab:hover {
  background: var(--sl-orange-soft);
  border-color: rgba(255, 84, 16, 0.25);
}

.sl-tab.vip-tab.active {
  color: #fff !important;
  background: linear-gradient(165deg, var(--sl-orange) 0%, var(--sl-orange-dark) 100%);
  border-color: transparent;
  box-shadow: 0 2px 8px rgba(255, 84, 16, 0.35);
}

.sl-alert {
  padding: 12px 14px;
  border-radius: var(--sl-radius-sm);
  font-size: 0.875rem;
  line-height: 1.45;
  margin-bottom: 18px;
  text-align: left;
}

.sl-alert--error {
  color: #7f1d1d;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.sl-alert--success {
  color: #166534;
  background: #f0fdf4;
  border: 1px solid #bbf7d0;
}

.vip-msg.sl-alert {
  display: block;
}

.sl-field {
  margin-bottom: 18px;
}

.sl-label {
  display: block;
  margin-bottom: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--sl-ink);
}

.sl-input {
  display: block;
  width: 100%;
  padding: 12px 14px;
  font-family: var(--sl-font);
  font-size: 15px;
  color: var(--sl-ink);
  background: #f8fafc;
  border: 1px solid var(--sl-border);
  border-radius: var(--sl-radius-sm);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.sl-input::placeholder {
  color: #94a3b8;
}

.sl-input:hover {
  border-color: #cbd5e1;
}

.sl-input:focus {
  outline: none;
  border-color: var(--sl-orange);
  background: #fff;
  box-shadow: 0 0 0 3px var(--sl-focus);
}

/* Código OTP — caixas menores lado a lado */
.vip-code-section {
  margin-top: 8px;
  padding-top: 8px;
}

.vip-code-hint {
  margin-bottom: 14px !important;
  text-align: center;
}

.vip-code-row {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin-bottom: 18px;
  flex-wrap: nowrap;
}

.vip-code-digit.sl-input {
  width: 48px;
  max-width: 15vw;
  padding-left: 0;
  padding-right: 0;
  text-align: center;
  font-size: 1.25rem;
  font-weight: 700;
}

.vip-code-actions.sl-actions--stack {
  width: 100%;
}

.vip-code-actions .sl-btn--block {
  width: 100%;
}

.vip-resend-wrap {
  margin-top: 18px;
  width: 100%;
  text-align: center;
}

.vip-resend-wrap .sl-btn--block {
  width: 100%;
  box-sizing: border-box;
}

.vip-resend-btn.sl-btn--text:disabled,
.vip-resend-btn.sl-btn--text.is-waiting {
  cursor: not-allowed;
  opacity: 0.65;
}

/* Botões */
.sl-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}

.sl-actions--stack {
  flex-direction: column;
}

.sl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 20px;
  font-family: var(--sl-font);
  font-size: 15px;
  font-weight: 600;
  line-height: 1.2;
  border: none;
  border-radius: var(--sl-radius-sm);
  cursor: pointer;
  text-decoration: none !important;
  transition: transform 0.12s ease, box-shadow 0.12s ease, background 0.12s ease, color 0.12s ease;
}

.sl-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  transform: none;
}

.sl-btn:active:not(:disabled) {
  transform: scale(0.98);
}

.sl-btn--primary {
  color: #fff !important;
  background: linear-gradient(165deg, var(--sl-orange) 0%, var(--sl-orange-dark) 100%);
  box-shadow: 0 2px 8px rgba(255, 84, 16, 0.35);
}

.sl-btn--primary:hover:not(:disabled) {
  color: #fff !important;
  box-shadow: 0 4px 14px rgba(255, 84, 16, 0.4);
  filter: brightness(1.03);
}

.sl-btn--ghost {
  color: var(--sl-ink) !important;
  background: #fff;
  border: 1px solid var(--sl-border);
}

.sl-btn--ghost:hover {
  background: var(--sl-orange-soft);
  border-color: rgba(255, 84, 16, 0.25);
  color: var(--sl-orange-dark) !important;
}

.sl-btn--linkedin {
  width: 100%;
  color: #fff !important;
  background: #0a66c2 !important;
  border: 1px solid #0a66c2;
  box-shadow: none;
}

.sl-btn--linkedin:hover {
  background: #004182 !important;
  color: #fff !important;
}

.sl-btn--block {
  width: 100%;
}

/* Divisor OAuth */
.sl-divider {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 26px 0 20px;
  color: var(--sl-ink-muted);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.sl-divider::before,
.sl-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--sl-border), transparent);
}

.oauth-login-block {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
}

.google-signin-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

.google-signin-wrap > div,
.google-signin-wrap iframe {
  width: 100% !important;
  max-width: 320px;
}

.vip-oauth-missing {
  font-size: 0.8125rem;
  color: var(--sl-ink-muted);
  text-align: center;
  margin: 0;
}

.vip-oauth-missing code {
  font-size: 0.75rem;
  background: #f1f5f9;
  padding: 2px 6px;
  border-radius: 4px;
}

/* Rodapé do cartão */
.sl-card__meta {
  margin: 24px 0 0;
  padding-top: 20px;
  border-top: 1px solid var(--sl-border);
  font-size: 12px;
  color: var(--sl-ink-muted);
  text-align: center;
  line-height: 1.45;
}

.sl-footer-note {
  margin: 24px 0 0;
  font-size: 12px;
  color: var(--sl-ink-muted);
  text-align: center;
}

/* Modal VIP (sem Bootstrap) */
.vip-modal.sl-modal-root {
  position: fixed;
  inset: 0;
  z-index: 3000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.vip-modal.sl-modal-root[style*="flex"] {
  display: flex !important;
}

.sl-modal-backdrop,
.vip-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
}

.sl-modal-panel,
.vip-modal-box {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 400px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--sl-surface);
  border-radius: var(--sl-radius);
  box-shadow: var(--sl-shadow);
  border: 1px solid rgba(226, 232, 240, 0.9);
  padding: 24px;
}

.sl-modal-title {
  margin: 0 0 8px;
  font-family: var(--sl-font);
  font-size: 1.125rem;
  font-weight: 700;
  color: var(--sl-ink);
}

.vip-modal-text {
  margin-bottom: 18px;
}

.vip-pick-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 16px;
}

.vip-pick-card {
  display: block;
  width: 100%;
  text-align: left;
  padding: 14px 16px;
  border: 1px solid var(--sl-border);
  border-radius: var(--sl-radius-sm);
  background: #f8fafc;
  cursor: pointer;
  font-family: var(--sl-font);
  transition: border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.vip-pick-card:hover {
  border-color: var(--sl-orange);
  background: #fff;
  box-shadow: 0 4px 14px rgba(255, 84, 16, 0.12);
}

.vip-pick-card strong {
  display: block;
  font-size: 1rem;
  color: var(--sl-ink);
  font-weight: 600;
}

.vip-pick-card span {
  font-size: 0.8125rem;
  color: var(--sl-ink-muted);
}

@media (max-width: 380px) {
  .sl-card {
    padding: 28px 20px 22px;
  }

  .sl-heading {
    font-size: 1.25rem;
  }

  .vip-code-digit.sl-input {
    width: 42px;
    font-size: 1.1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .sl-btn,
  .sl-input,
  .sl-tab.vip-tab {
    transition: none;
  }

  .sl-ambient__orb {
    filter: blur(40px);
    opacity: 0.25;
  }
}
