/* ═══════════════════════════════════════════════════
   EXALTA PAY — Auth Dark Theme (Estilo SigiloPay)
   Tema escuro idêntico ao SigiloPay com cores roxas
   Sobrepõe os estilos base apenas nas páginas de auth
═══════════════════════════════════════════════════ */

/* ─── Variáveis Dark Auth ─── */
:root {
  --sp-bg:          #1c1c2e;
  --sp-bg2:         #16161f;
  --sp-surface:     #22223a;
  --sp-border:      rgba(255,255,255,.10);
  --sp-border-h:    rgba(255,255,255,.20);
  --sp-purple:      #7c5cbf;
  --sp-purple-h:    #9370db;
  --sp-purple-btn:  linear-gradient(135deg, #7c5cbf 0%, #6a47b0 100%);
  --sp-purple-glow: rgba(124, 92, 191, .25);
  --sp-text:        #f0f0f8;
  --sp-text-2:      rgba(240,240,248,.65);
  --sp-text-3:      rgba(240,240,248,.40);
  --sp-input-bg:    rgba(255,255,255,.04);
  --sp-input-bg-h:  rgba(255,255,255,.07);
  --sp-radius:      10px;
  --sp-transition:  .25s cubic-bezier(.4,0,.2,1);
}

/* ─── Reset body para dark ─── */
.sigilo-auth-body {
  min-height: 100vh;
  background: var(--sp-bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 20px 48px;
  font-family: 'Inter', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
  position: relative;
  overflow-x: hidden;
}

/* Subtle background gradient spots */
.sigilo-auth-body::before {
  content: '';
  position: fixed;
  top: -15%; right: -10%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(124,92,191,.06) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}
.sigilo-auth-body::after {
  content: '';
  position: fixed;
  bottom: -15%; left: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(100,70,180,.05) 0%, transparent 65%);
  border-radius: 50%;
  pointer-events: none;
}

/* ─── Top bar (settings icon) ─── */
.sigilo-top-bar {
  position: fixed;
  top: 16px;
  right: 20px;
  z-index: 50;
}
.sigilo-settings-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 8px;
  background: #151520;
  border: 1px solid rgba(255,255,255,.86);
  box-shadow: 0 8px 22px rgba(0,0,0,.28), inset 0 1px 0 rgba(255,255,255,.05);
  color: #9370db;
  transition: color var(--sp-transition), background var(--sp-transition), border-color var(--sp-transition), transform var(--sp-transition), box-shadow var(--sp-transition);
  text-decoration: none;
}
.sigilo-settings-btn:hover {
  background: #1b1b2b;
  border-color: #ffffff;
  box-shadow: 0 10px 28px rgba(0,0,0,.34), 0 0 0 3px rgba(147,112,219,.12);
  color: #a78bfa;
  transform: translateY(-1px);
}
.sigilo-settings-btn svg {
  stroke: currentColor;
}

/* ─── Main auth container ─── */
.sigilo-auth-main {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 440px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  animation: sp-fade-up .45s cubic-bezier(.22,.61,.36,1) both;
}

@keyframes sp-fade-up {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Logo / Brand (versão com imagem completa) ─── */
.sigilo-logo-wrap {
  align-items: flex-start;
  display: flex;
  height: 210px;
  justify-content: center;
  margin-bottom: 18px;
  overflow: hidden;
  transform: none;
  width: 100%;
}

/* Link da logo completa */
.sigilo-logo-link-full {
  display: flex;
  justify-content: center;
  text-decoration: none;
  line-height: 0;
  width: 100%;
}

/* Imagem logologin.png — grande e impactante */
.sigilo-logo-full-img {
  display: block;
  width: 380px;
  max-width: 85vw;
  height: auto;
  object-fit: contain;
  /* Remove fundo branco no dark */
  mix-blend-mode: screen;
  /* Glow roxo sutil */
  filter: drop-shadow(0 0 24px rgba(124, 92, 191, .35))
          drop-shadow(0 4px 12px rgba(0,0,0,.3));
  transform: translateY(42px);
  transition: filter .3s ease, transform .3s cubic-bezier(.4,0,.2,1);
}
.sigilo-logo-link-full:hover .sigilo-logo-full-img {
  filter: drop-shadow(0 0 36px rgba(124, 92, 191, .55))
          drop-shadow(0 6px 20px rgba(0,0,0,.25));
  transform: translateY(42px) scale(1.03);
}

/* ─── Logo / Brand (versão antiga — mantida para compatibilidade) ─── */
.sigilo-logo-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
}
.sigilo-logo-box {
  width: 52px;
  height: 52px;
  background: rgba(255,255,255,.06);
  border: 1px solid var(--sp-border);
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
}
.sigilo-logo-img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  display: block;
}
.sigilo-brand-name {
  font-size: 28px;
  font-weight: 400;
  color: var(--sp-text);
  letter-spacing: -.02em;
  white-space: nowrap;
}
.sigilo-brand-name strong {
  font-weight: 800;
  color: var(--sp-text);
}

/* ─── Subtitle text ─── */
.sigilo-subtitle {
  font-size: 13.5px;
  color: var(--sp-text-2);
  line-height: 1.7;
  margin-bottom: 32px;
  max-width: 360px;
}

/* ─── Alerts/Notices ─── */
.sigilo-notice {
  width: 100%;
  border-radius: var(--sp-radius);
  font-size: 13px;
  font-weight: 600;
  padding: 11px 16px;
  margin-bottom: 16px;
  text-align: left;
}
.sigilo-notice-success {
  background: rgba(40, 200, 120, .12);
  color: #4ade80;
  border: 1px solid rgba(74, 222, 128, .25);
}
.sigilo-notice-danger {
  background: rgba(255, 70, 90, .12);
  color: #f87171;
  border: 1px solid rgba(248, 113, 113, .25);
}

/* ─── Form ─── */
.sigilo-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 20px;
}

/* ─── Input fields with icon ─── */
.sigilo-field {
  position: relative;
  display: flex;
  align-items: center;
  background: var(--sp-input-bg);
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  transition: border-color var(--sp-transition), background var(--sp-transition), box-shadow var(--sp-transition);
  overflow: hidden;
}
.sigilo-field:focus-within {
  border-color: rgba(124, 92, 191, .6);
  background: var(--sp-input-bg-h);
  box-shadow: 0 0 0 3px var(--sp-purple-glow);
}
.sigilo-field-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  color: var(--sp-text-3);
  pointer-events: none;
}
.sigilo-field input {
  flex: 1;
  background: transparent !important;
  border: none !important;
  outline: none !important;
  box-shadow: none !important;
  color: var(--sp-text) !important;
  font-size: 13.5px;
  font-family: 'Inter', system-ui, sans-serif;
  padding: 0 14px 0 8px;
  height: 48px;
  width: 100%;
  min-height: unset !important;
  caret-color: var(--sp-purple-h);
  border-radius: 0 !important;
}
.sigilo-field input::placeholder {
  color: var(--sp-text-3);
  font-size: 13.5px;
  opacity: 1;
}

/* ─── Eye toggle button ─── */
.sigilo-eye-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
  color: var(--sp-text-3);
  flex-shrink: 0;
  transition: color var(--sp-transition);
  padding: 0;
  margin-right: 4px;
}
.sigilo-eye-btn:hover { color: var(--sp-text-2); }

/* ─── Terms checkbox ─── */
.sigilo-terms {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  text-align: left;
  font-size: 12.5px;
  color: var(--sp-text-2);
  cursor: pointer;
  padding: 4px 0;
  width: 100%;
}
.sigilo-terms input[type="checkbox"] {
  width: 16px;
  height: 16px;
  min-width: 16px;
  margin-top: 1px;
  accent-color: var(--sp-purple);
  cursor: pointer;
}
.sigilo-link {
  color: var(--sp-purple-h);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.sigilo-link:hover { color: #b39ddb; }

/* ─── Shared btn-content layout ─── */
.sigilo-btn-content {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  pointer-events: none;
}
.sigilo-btn-icon {
  flex-shrink: 0;
  opacity: .9;
  display: flex;
}
.sigilo-btn-arrow {
  display: none;
}

/* ─── Primary button (Entrar) ─── */
.sigilo-btn-primary {
  width: 100%;
  height: 52px;
  background: linear-gradient(135deg, #7c5cbf 0%, #6a47b0 100%);
  color: #ffffff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  border: none;
  border-radius: var(--sp-radius);
  cursor: pointer;
  letter-spacing: .02em;
  margin-top: 4px;
  position: relative;
  overflow: hidden;
  transition: transform .25s cubic-bezier(.4,0,.2,1),
              box-shadow .25s cubic-bezier(.4,0,.2,1);
}

/* Shimmer sweep animation */
.sigilo-btn-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255,255,255,.18) 50%,
    transparent 65%
  );
  background-size: 200% 100%;
  background-position: -100% 0;
  animation: btn-shimmer 2.8s ease-in-out infinite;
  pointer-events: none;
}
@keyframes btn-shimmer {
  0%   { background-position: -200% 0; opacity: 0; }
  20%  { opacity: 1; }
  60%  { background-position: 200% 0; }
  100% { background-position: 200% 0; opacity: 0; }
}

/* Top gloss */
.sigilo-btn-primary::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(rgba(255,255,255,.12), transparent);
  border-radius: var(--sp-radius) var(--sp-radius) 0 0;
  pointer-events: none;
}
.sigilo-btn-primary:hover {
  box-shadow: 0 10px 36px rgba(124,92,191,.55),
              0 2px 8px rgba(0,0,0,.3);
  transform: translateY(-2px);
}
.sigilo-btn-primary:hover .sigilo-btn-arrow {
  transform: translateX(4px);
  opacity: 1;
}
.sigilo-btn-primary:active {
  transform: translateY(0) scale(.98);
  box-shadow: 0 4px 16px rgba(124,92,191,.35);
}

/* ─── Animated variant (adds pulse ring) ─── */
.sigilo-btn-animated::after {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: calc(var(--sp-radius) + 2px);
  background: transparent;
  border: 2px solid rgba(124,92,191,.4);
  animation: btn-ring-pulse 2.4s ease-in-out infinite;
  pointer-events: none;
}
@keyframes btn-ring-pulse {
  0%,100% { opacity: 0; transform: scale(1);    }
  40%      { opacity: 1; transform: scale(1.01); }
  70%      { opacity: 0; transform: scale(1.03); }
}

/* ─── Divider ─── */
.sigilo-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  margin: 8px 0;
}
.sigilo-divider span {
  flex: 1;
  height: 1px;
  background: var(--sp-border);
}
.sigilo-divider small {
  font-size: 11px;
  font-weight: 600;
  color: var(--sp-text-3);
  letter-spacing: .08em;
  text-transform: uppercase;
  white-space: nowrap;
}

/* ─── Register button (Cadastrar) ─── */
.sigilo-btn-register {
  width: 100%;
  height: 52px;
  /* Teal/esmeralda — contraste elegante com o roxo do Entrar */
  background: linear-gradient(135deg, #0f9d8e 0%, #0d8a7c 100%);
  color: #ffffff;
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 14.5px;
  font-weight: 700;
  border: none;
  border-radius: var(--sp-radius);
  cursor: pointer;
  letter-spacing: .02em;
  text-decoration: none;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  margin-bottom: 6px;
  transition: transform .25s cubic-bezier(.4,0,.2,1),
              box-shadow .25s cubic-bezier(.4,0,.2,1);
}
/* Shimmer register */
.sigilo-btn-register-shimmer {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    105deg,
    transparent 35%,
    rgba(255,255,255,.16) 50%,
    transparent 65%
  );
  background-size: 200% 100%;
  background-position: -100% 0;
  animation: btn-shimmer 3.2s ease-in-out .6s infinite;
  pointer-events: none;
}
/* Top gloss */
.sigilo-btn-register::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 50%;
  background: linear-gradient(rgba(255,255,255,.10), transparent);
  border-radius: var(--sp-radius) var(--sp-radius) 0 0;
  pointer-events: none;
}
.sigilo-btn-register:hover {
  box-shadow: 0 10px 36px rgba(15,157,142,.50),
              0 2px 8px rgba(0,0,0,.25);
  transform: translateY(-2px);
}
.sigilo-btn-register:hover .sigilo-btn-arrow {
  transform: translateX(4px);
  opacity: 1;
}
.sigilo-btn-register:active {
  transform: translateY(0) scale(.98);
  box-shadow: 0 4px 16px rgba(15,157,142,.35);
}

/* ─── Bottom action buttons (outline) — mantido para outros usos ─── */
.sigilo-bottom-actions {
  display: flex;
  gap: 10px;
  width: 100%;
  margin-bottom: 20px;
}
.sigilo-outline-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  background: transparent;
  border: 1px solid var(--sp-border);
  border-radius: var(--sp-radius);
  color: var(--sp-text-2);
  font-family: 'Inter', system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  transition: border-color var(--sp-transition), color var(--sp-transition), background var(--sp-transition);
  padding: 0 12px;
  text-align: center;
}
.sigilo-outline-btn:hover {
  border-color: var(--sp-border-h);
  color: var(--sp-text);
  background: rgba(255,255,255,.04);
}

/* ─── Forgot password link ─── */
.sigilo-forgot {
  font-size: 13px;
  color: var(--sp-purple-h);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: rgba(147,112,219,.4);
  transition: color var(--sp-transition), text-decoration-color var(--sp-transition);
}
.sigilo-forgot:hover {
  color: #b39ddb;
  text-decoration-color: rgba(179,157,219,.6);
}

/* ─── Autofill override (dark) ─── */
/* O Chrome aplica fundo azul/claro no autofill — forçamos dark com box-shadow inset */
.sigilo-field input:-webkit-autofill,
.sigilo-field input:-webkit-autofill:hover,
.sigilo-field input:-webkit-autofill:focus,
.sigilo-field input:-webkit-autofill:active {
  -webkit-box-shadow: 0 0 0 9999px #1a1a2c inset !important;
  box-shadow: 0 0 0 9999px #1a1a2c inset !important;
  -webkit-text-fill-color: #f0f0f8 !important;
  color: #f0f0f8 !important;
  caret-color: #9370db !important;
  border-radius: 0 !important;
  transition: background-color 9999s ease-in-out 0s !important;
  font-family: 'Inter', system-ui, sans-serif !important;
  font-size: 13.5px !important;
}

/* ─── Responsive ─── */
@media (max-width: 480px) {
  .sigilo-auth-body { padding: 24px 16px 40px; }
  .sigilo-brand-name { font-size: 23px; }
  .sigilo-bottom-actions { flex-direction: column; }
  .sigilo-outline-btn { flex: none; width: 100%; }
  /* Logo completa no mobile */
  .sigilo-logo-full-img {
    width: min(380px, 85vw);
  }
}
