/* Dream Xiter — Login interativo e profissional */
@import url('https://fonts.googleapis.com/css2?family=Syne:wght@600;700;800&family=Manrope:wght@400;500;600;700&display=swap');

:root {
  --dx-bg0: #070708;
  --dx-panel: rgba(14, 14, 18, 0.78);
  --dx-line: rgba(255, 255, 255, 0.09);
  --dx-line-hot: rgba(220, 38, 60, 0.55);
  --dx-red: #dc143c;
  --dx-red-deep: #9b0f28;
  --dx-red-soft: rgba(220, 20, 60, 0.16);
  --dx-text: #f5f5f6;
  --dx-muted: rgba(245, 245, 246, 0.55);
  --dx-danger: #fca5a5;
  --dx-radius: 24px;
  --dx-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --dx-mx: 50%;
  --dx-my: 20%;
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html, body {
  min-height: 100%;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-synthesis: none;
  -webkit-text-size-adjust: 100%;
}

body.dx-login-page {
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.5;
  color: var(--dx-text);
  background: var(--dx-bg0);
  min-height: 100vh;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 28px 18px;
  position: relative;
  overflow-x: hidden;
  overflow-y: auto;
}

/* ===== Atmosphere ===== */
.dx-login-ambient {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}

.dx-login-photo {
  position: absolute;
  inset: -4%;
  background:
    linear-gradient(165deg, rgba(7, 7, 8, 0.35) 0%, rgba(7, 7, 8, 0.62) 55%, rgba(7, 7, 8, 0.82) 100%),
    var(--dx-login-bg, none) center center / cover no-repeat;
  transform: scale(1.06);
  animation: dxKenBurns 28s ease-in-out infinite alternate;
  filter: saturate(1.05) contrast(1.06);
  will-change: transform;
}

.dx-login-ambient::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(ellipse 50% 40% at var(--dx-mx) var(--dx-my), rgba(220, 20, 60, 0.2), transparent 55%),
    radial-gradient(ellipse 55% 45% at 15% 10%, rgba(220, 20, 60, 0.18), transparent 55%),
    radial-gradient(ellipse 45% 40% at 90% 85%, rgba(90, 15, 30, 0.25), transparent 50%),
    radial-gradient(ellipse 80% 50% at 50% 110%, rgba(5, 5, 6, 0.88), transparent 55%);
  transition: background 0.4s ease;
}

.dx-login-ambient::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 2;
  opacity: 0.35;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.5'/%3E%3C/svg%3E");
  mix-blend-mode: overlay;
  pointer-events: none;
}

.dx-login-orb {
  position: absolute;
  z-index: 1;
  border-radius: 50%;
  filter: blur(40px);
  opacity: 0.45;
  animation: dxOrbFloat 12s ease-in-out infinite;
}

.dx-login-orb--a {
  width: 280px;
  height: 280px;
  top: 8%;
  left: 12%;
  background: rgba(220, 20, 60, 0.35);
}

.dx-login-orb--b {
  width: 220px;
  height: 220px;
  bottom: 12%;
  right: 10%;
  background: rgba(140, 20, 40, 0.4);
  animation-delay: -4s;
  animation-duration: 15s;
}

.dx-login-dust {
  position: absolute;
  inset: 0;
  z-index: 2;
  overflow: hidden;
}

.dx-login-dust span {
  position: absolute;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: rgba(255, 180, 190, 0.55);
  box-shadow: 0 0 8px rgba(220, 20, 60, 0.45);
  animation: dxDustRise linear infinite;
  bottom: -10%;
  opacity: 0;
}

.dx-login-dust span:nth-child(1) { left: 8%; animation-duration: 11s; animation-delay: 0s; }
.dx-login-dust span:nth-child(2) { left: 18%; animation-duration: 14s; animation-delay: 1.2s; width: 2px; height: 2px; }
.dx-login-dust span:nth-child(3) { left: 28%; animation-duration: 12s; animation-delay: 2.4s; }
.dx-login-dust span:nth-child(4) { left: 42%; animation-duration: 16s; animation-delay: 0.6s; width: 2px; height: 2px; }
.dx-login-dust span:nth-child(5) { left: 55%; animation-duration: 13s; animation-delay: 3s; }
.dx-login-dust span:nth-child(6) { left: 68%; animation-duration: 15s; animation-delay: 1.8s; width: 2px; height: 2px; }
.dx-login-dust span:nth-child(7) { left: 78%; animation-duration: 11s; animation-delay: 2.1s; }
.dx-login-dust span:nth-child(8) { left: 88%; animation-duration: 14s; animation-delay: 0.3s; width: 2px; height: 2px; }

.dx-login-glow {
  position: absolute;
  z-index: 1;
  width: min(520px, 70vw);
  height: min(520px, 70vw);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(220, 20, 60, 0.22), transparent 68%);
  filter: blur(10px);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -55%);
  animation: dxGlowPulse 7s ease-in-out infinite;
}

.dx-gear5-bg {
  z-index: 0 !important;
}

@keyframes dxKenBurns {
  from { transform: scale(1.05) translate3d(0, 0, 0); }
  to { transform: scale(1.14) translate3d(-1.5%, -1%, 0); }
}

@keyframes dxGlowPulse {
  0%, 100% { opacity: 0.45; transform: translate(-50%, -55%) scale(1); }
  50% { opacity: 0.85; transform: translate(-50%, -55%) scale(1.08); }
}

@keyframes dxOrbFloat {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(18px, -28px, 0); }
}

@keyframes dxDustRise {
  0% { transform: translateY(0) scale(0.6); opacity: 0; }
  12% { opacity: 0.7; }
  80% { opacity: 0.45; }
  100% { transform: translateY(-110vh) scale(1); opacity: 0; }
}

@keyframes dxLoginIn {
  from { opacity: 0; transform: translateY(28px) scale(0.97); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}

@keyframes dxReveal {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

@keyframes dxMarkIn {
  from { opacity: 0; transform: scale(0.7) rotate(-8deg); }
  to { opacity: 1; transform: none; }
}

@keyframes dxRing {
  0% { transform: scale(0.85); opacity: 0.55; }
  70% { transform: scale(1.35); opacity: 0; }
  100% { opacity: 0; }
}

@keyframes dxShimmer {
  0% { background-position: 200% center; }
  100% { background-position: -200% center; }
}

@keyframes dxStatusPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.45); opacity: 1; }
  50% { box-shadow: 0 0 0 6px rgba(34, 197, 94, 0); opacity: 0.85; }
}

@keyframes dxSpinner {
  to { transform: rotate(360deg); }
}

@keyframes dxShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(4px); }
}

/* ===== Panel ===== */
.login-container.dx-login-shell,
.dx-login-shell {
  position: relative;
  z-index: 2;
  width: min(100%, 430px);
  padding: 36px 34px 30px;
  background: var(--dx-panel);
  border: 1px solid var(--dx-line);
  border-radius: var(--dx-radius);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.05) inset,
    0 40px 90px rgba(0, 0, 0, 0.55),
    0 0 0 1px rgba(220, 20, 60, 0.07);
  backdrop-filter: blur(26px) saturate(1.2);
  -webkit-backdrop-filter: blur(26px) saturate(1.2);
  animation: dxLoginIn 0.85s var(--dx-ease) both;
  overflow: hidden;
  isolation: isolate;
  transition: border-color 0.35s ease, box-shadow 0.35s ease, transform 0.4s var(--dx-ease);
}

.dx-login-shell:hover {
  border-color: rgba(220, 20, 60, 0.28);
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.06) inset,
    0 48px 100px rgba(0, 0, 0, 0.58),
    0 0 60px rgba(220, 20, 60, 0.08);
}

/* Cursor spotlight inside panel */
.dx-login-shell > .dx-shell-spotlight {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background: radial-gradient(
    420px circle at var(--dx-mx) var(--dx-my),
    rgba(220, 20, 60, 0.14),
    transparent 48%
  );
  opacity: 0;
  transition: opacity 0.35s ease;
}

.dx-login-shell.is-hot > .dx-shell-spotlight {
  opacity: 1;
}

.dx-login-shell::before {
  content: '';
  position: absolute;
  top: 0;
  left: 10%;
  right: 10%;
  height: 1px;
  z-index: 3;
  background: linear-gradient(90deg, transparent, rgba(220, 20, 60, 0.85), transparent);
  background-size: 200% 100%;
  animation: dxShimmer 4.5s linear infinite;
  opacity: 0.85;
}

.dx-login-shell::after {
  content: '';
  position: absolute;
  inset: 0;
  z-index: 0;
  background: linear-gradient(180deg, rgba(220, 20, 60, 0.07), transparent 32%);
  pointer-events: none;
}

/* Soft top edge shine on tilt feel */
.dx-shell-frame {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  z-index: 0;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
}

/* ===== Brand ===== */
.dx-login-brand {
  position: relative;
  z-index: 1;
  text-align: center;
  margin-bottom: 22px;
  animation: dxReveal 0.7s var(--dx-ease) 0.05s both;
}

.dx-login-mark-wrap {
  position: relative;
  width: 74px;
  height: 74px;
  margin: 0 auto 16px;
}

.dx-login-mark-wrap::before,
.dx-login-mark-wrap::after {
  content: '';
  position: absolute;
  inset: -6px;
  border-radius: 24px;
  border: 1px solid rgba(220, 20, 60, 0.45);
  animation: dxRing 2.8s ease-out infinite;
}

.dx-login-mark-wrap::after {
  animation-delay: 1.4s;
}

.dx-login-mark {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 20px;
  display: grid;
  place-items: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.12), transparent 42%),
    linear-gradient(155deg, #e11d48 0%, #9b0f28 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  box-shadow:
    0 14px 32px rgba(220, 20, 60, 0.38),
    0 0 0 7px rgba(220, 20, 60, 0.08);
  color: #fff;
  font-size: 1.6rem;
  animation: dxMarkIn 0.8s var(--dx-ease) 0.1s both;
  transition: transform 0.4s var(--dx-ease), box-shadow 0.4s ease;
}

.dx-login-mark i {
  transition: transform 0.4s var(--dx-ease);
}

.dx-login-shell:hover .dx-login-mark {
  transform: translateY(-2px) scale(1.03);
  box-shadow:
    0 18px 40px rgba(220, 20, 60, 0.48),
    0 0 0 9px rgba(220, 20, 60, 0.1);
}

.dx-login-shell:hover .dx-login-mark i {
  transform: scale(1.08);
}

.dx-login-brand h1,
.dx-brand-title {
  font-family: 'Syne', 'Manrope', sans-serif;
  font-weight: 800;
  font-size: clamp(1.75rem, 5vw, 2.2rem);
  letter-spacing: -0.03em;
  line-height: 1.1;
  color: #fff;
  text-transform: uppercase;
  position: relative;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: baseline;
  gap: 0.12em;
  margin: 0;
  user-select: none;
  perspective: 600px;
}

.dx-brand-word {
  display: inline-flex;
  position: relative;
}

.dx-brand-space {
  width: 0.22em;
}

.dx-brand-title .dx-ch {
  display: inline-block;
  position: relative;
  transform-origin: 50% 80%;
  animation:
    dxLetterIn 0.7s var(--dx-ease) both,
    dxLetterFloat 3.6s ease-in-out calc(var(--i) * 0.08s + 1s) infinite;
  animation-delay:
    calc(var(--i) * 0.06s + 0.15s),
    calc(var(--i) * 0.08s + 1s);
  text-shadow:
    0 0 20px rgba(255, 255, 255, 0.08),
    0 2px 0 rgba(0, 0, 0, 0.35);
  transition: transform 0.25s var(--dx-ease), text-shadow 0.25s ease, filter 0.25s ease;
}

/* Entrada cinematográfica letra a letra */
@keyframes dxLetterIn {
  0% {
    opacity: 0;
    transform: translateY(28px) rotateX(55deg) scale(0.6);
    filter: blur(8px);
  }
  60% {
    opacity: 1;
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0) scale(1);
    filter: blur(0);
  }
}

/* Flutuação sutil contínua */
@keyframes dxLetterFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-2px); }
}

/* Dream — branco com varredura de luz */
.dx-brand-word--dream .dx-ch {
  color: #f8f8f9;
  background: linear-gradient(
    110deg,
    #a8a8b0 0%,
    #ffffff 28%,
    #f4f4f5 42%,
    #dc143c 50%,
    #ffffff 58%,
    #c8c8d0 100%
  );
  background-size: 220% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  animation:
    dxLetterIn 0.7s var(--dx-ease) both,
    dxDreamSweep 4.5s linear infinite;
  animation-delay:
    calc(var(--i) * 0.06s + 0.15s),
    calc(var(--i) * 0.12s + 1.1s);
}

@keyframes dxDreamSweep {
  0% { background-position: 140% center; }
  100% { background-position: -140% center; }
}

/* Xiter — gradient sangue + glow + pulse */
.dx-brand-word--xiter {
  isolation: isolate;
}

.dx-brand-word--xiter .dx-ch--hot {
  background: linear-gradient(
    125deg,
    #ff7a8a 0%,
    #ff2d55 18%,
    #dc143c 40%,
    #ff4d6d 55%,
    #9b0f28 75%,
    #ff3355 100%
  );
  background-size: 240% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(220, 20, 60, 0.45));
  animation:
    dxLetterIn 0.75s var(--dx-ease) both,
    dxXiterFlow 3.2s ease-in-out infinite,
    dxXiterPulse 2.4s ease-in-out infinite;
  animation-delay:
    calc(var(--i) * 0.06s + 0.15s),
    calc(var(--i) * 0.1s + 0.9s),
    calc(var(--i) * 0.08s + 1.2s);
}

@keyframes dxXiterFlow {
  0%, 100% { background-position: 0% 50%; }
  50% { background-position: 100% 50%; }
}

@keyframes dxXiterPulse {
  0%, 100% {
    filter: drop-shadow(0 0 8px rgba(220, 20, 60, 0.35));
    transform: translateY(0) scale(1);
  }
  50% {
    filter: drop-shadow(0 0 22px rgba(255, 45, 85, 0.75));
    transform: translateY(-1px) scale(1.04);
  }
}

/* Glitch épico no “Xiter” a cada poucos segundos */
.dx-brand-word--xiter::before,
.dx-brand-word--xiter::after {
  content: attr(data-text);
  position: absolute;
  inset: 0;
  font: inherit;
  letter-spacing: inherit;
  text-transform: inherit;
  font-weight: inherit;
  pointer-events: none;
  opacity: 0;
  white-space: nowrap;
}

.dx-brand-word--xiter::before {
  color: #00e5ff;
  -webkit-text-fill-color: #00e5ff;
  mix-blend-mode: screen;
  animation: dxGlitchA 5.5s steps(1, end) infinite;
}

.dx-brand-word--xiter::after {
  color: #ff003c;
  -webkit-text-fill-color: #ff003c;
  animation: dxGlitchB 5.5s steps(1, end) infinite;
}

@keyframes dxGlitchA {
  0%, 88%, 100% { opacity: 0; transform: none; clip-path: none; }
  89% { opacity: 0.85; transform: translate(-3px, -1px); clip-path: inset(12% 0 55% 0); }
  90% { opacity: 0.7; transform: translate(3px, 1px); clip-path: inset(48% 0 18% 0); }
  91% { opacity: 0; transform: none; }
  93% { opacity: 0.6; transform: translate(-2px, 0); clip-path: inset(28% 0 40% 0); }
  94% { opacity: 0; }
}

@keyframes dxGlitchB {
  0%, 88%, 100% { opacity: 0; transform: none; clip-path: none; }
  89.5% { opacity: 0.8; transform: translate(3px, 1px); clip-path: inset(60% 0 8% 0); }
  90.5% { opacity: 0.65; transform: translate(-4px, -1px); clip-path: inset(8% 0 62% 0); }
  91.5% { opacity: 0; }
  93.5% { opacity: 0.55; transform: translate(2px, 0); clip-path: inset(40% 0 30% 0); }
  94.5% { opacity: 0; }
}

/* Underline de energia sob o título */
.dx-brand-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: -10px;
  width: 0;
  height: 2px;
  border-radius: 2px;
  background: linear-gradient(90deg, transparent, #ff4d6d, #dc143c, #ff4d6d, transparent);
  box-shadow: 0 0 14px rgba(220, 20, 60, 0.7);
  transform: translateX(-50%);
  animation: dxTitleLine 1s var(--dx-ease) 0.85s both, dxTitleLinePulse 2.8s ease-in-out 1.9s infinite;
}

@keyframes dxTitleLine {
  from { width: 0; opacity: 0; }
  to { width: 72%; opacity: 1; }
}

@keyframes dxTitleLinePulse {
  0%, 100% { opacity: 0.55; filter: brightness(1); }
  50% { opacity: 1; filter: brightness(1.35); }
}

/* Hover: letras saltam e brilham */
.dx-login-shell:hover .dx-brand-title .dx-ch {
  animation-play-state: running;
}

.dx-brand-title:hover .dx-ch {
  transform: translateY(-4px) scale(1.08);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.25));
  transition-delay: calc(var(--i) * 0.03s);
}

.dx-brand-title:hover .dx-ch--hot {
  filter: drop-shadow(0 0 18px rgba(255, 45, 85, 0.9));
  transform: translateY(-5px) scale(1.1);
}

/* Legacy accent (fallback) */
.dx-login-brand h1 .accent {
  font-style: normal;
  background: linear-gradient(120deg, #ff4d6d 0%, #dc143c 45%, #9b0f28 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-weight: 800;
}

.dx-login-kicker {
  margin-top: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--dx-muted);
}

.dx-login-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  padding: 6px 12px 6px 10px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(0, 0, 0, 0.28);
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: rgba(245, 245, 246, 0.62);
  animation: dxReveal 0.7s var(--dx-ease) 0.18s both;
}

.dx-login-status-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #22c55e;
  animation: dxStatusPulse 2s ease-out infinite;
}

/* ===== Form ===== */
.dx-login-shell form,
#loginForm {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  gap: 13px;
}

#loginForm > * {
  animation: dxReveal 0.65s var(--dx-ease) both;
}

#loginForm > *:nth-child(1) { animation-delay: 0.12s; }
#loginForm > *:nth-child(2) { animation-delay: 0.2s; }
#loginForm > *:nth-child(3) { animation-delay: 0.28s; }
#loginForm > *:nth-child(4) { animation-delay: 0.34s; }
#loginForm > *:nth-child(5) { animation-delay: 0.4s; }
#loginForm > *:nth-child(6) { animation-delay: 0.46s; }
#loginForm > *:nth-child(7) { animation-delay: 0.52s; }

.form-group {
  position: relative;
  margin: 0;
  display: block;
}

.form-group i.dx-field-icon {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  width: 18px;
  text-align: center;
  color: rgba(220, 20, 60, 0.85);
  font-size: 0.95rem;
  pointer-events: none;
  z-index: 2;
  line-height: 1;
  transition: color 0.25s ease, transform 0.3s var(--dx-ease);
}

.form-group input,
.dx-login-shell input[type="text"],
.dx-login-shell input[type="password"] {
  width: 100%;
  height: 54px;
  padding: 0 48px 0 52px;
  border-radius: 14px;
  border: 1px solid var(--dx-line);
  background: rgba(6, 6, 8, 0.72);
  color: var(--dx-text);
  font-family: 'Manrope', system-ui, sans-serif;
  font-size: 0.98rem;
  font-weight: 500;
  line-height: normal;
  outline: none;
  caret-color: #fff;
  vertical-align: middle;
  transition:
    border-color 0.25s ease,
    box-shadow 0.25s ease,
    background 0.25s ease,
    transform 0.25s var(--dx-ease);
  -webkit-appearance: none;
  appearance: none;
}

.dx-pass-group input[type="password"],
.dx-pass-group input[type="text"] {
  padding-right: 52px;
}

.form-group input::placeholder {
  color: rgba(255, 255, 255, 0.38);
  font-weight: 500;
  opacity: 1;
  letter-spacing: 0.01em;
}

.form-group input:hover {
  border-color: rgba(255, 255, 255, 0.15);
  background: rgba(10, 10, 12, 0.82);
}

.form-group input:focus {
  border-color: var(--dx-line-hot);
  background: rgba(12, 10, 12, 0.95);
  box-shadow:
    0 0 0 3px var(--dx-red-soft),
    0 10px 28px rgba(0, 0, 0, 0.25);
  transform: translateY(-1px);
}

.form-group:focus-within i.dx-field-icon {
  color: var(--dx-red);
  transform: translateY(-50%) scale(1.08);
}

.form-group.is-filled i.dx-field-icon {
  color: rgba(220, 20, 60, 0.95);
}

/* Password reveal */
.dx-pass-toggle {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: rgba(255, 255, 255, 0.4);
  cursor: pointer;
  display: grid;
  place-items: center;
  transition: color 0.2s ease, background 0.2s ease, transform 0.2s ease;
}

.dx-pass-toggle:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.dx-pass-toggle:active {
  transform: translateY(-50%) scale(0.94);
}

.dx-pass-toggle[aria-pressed="true"] {
  color: var(--dx-red);
}

/* Remember — checkbox real e clicável */
.dx-remember {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin: 4px 0 2px;
  padding: 12px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.06);
  background: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  user-select: none;
  color: var(--dx-muted);
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.35;
  transition: border-color 0.25s ease, background 0.25s ease, transform 0.25s var(--dx-ease);
  position: relative;
}

.dx-remember:hover {
  border-color: rgba(220, 20, 60, 0.28);
  background: rgba(220, 20, 60, 0.06);
}

.dx-remember:active {
  transform: scale(0.995);
}

.dx-remember input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  margin: 0;
  pointer-events: none;
}

.dx-remember-box {
  width: 20px;
  height: 20px;
  margin-top: 1px;
  flex-shrink: 0;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(8, 8, 10, 0.9);
  position: relative;
  transition: 0.2s var(--dx-ease);
  pointer-events: none;
}

.dx-remember-box::after {
  content: '';
  position: absolute;
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg) scale(0);
  transition: transform 0.18s var(--dx-ease);
}

.dx-remember input[type="checkbox"]:checked + .dx-remember-box {
  border-color: transparent;
  background: linear-gradient(145deg, #e11d48, #9b0f28);
  box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.18), 0 6px 14px rgba(220, 20, 60, 0.25);
}

.dx-remember input[type="checkbox"]:checked + .dx-remember-box::after {
  transform: rotate(45deg) scale(1);
}

.dx-remember input[type="checkbox"]:focus-visible + .dx-remember-box {
  outline: 2px solid rgba(220, 20, 60, 0.65);
  outline-offset: 2px;
}

.dx-remember-text {
  flex: 1;
  min-width: 0;
  pointer-events: none;
}

.dx-remember-text strong {
  display: block;
  color: rgba(245, 245, 246, 0.9);
  font-weight: 600;
  font-size: 0.9rem;
}

.dx-remember-text small {
  display: block;
  margin-top: 2px;
  font-size: 0.74rem;
  color: rgba(245, 245, 246, 0.42);
  font-weight: 500;
}

/* CTA */
.login-btn,
button[type="submit"].login-btn {
  position: relative;
  width: 100%;
  height: 54px;
  margin-top: 6px;
  border: none;
  border-radius: 14px;
  cursor: pointer;
  color: #fff;
  font-family: 'Syne', 'Manrope', sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  background:
    linear-gradient(105deg, transparent 40%, rgba(255, 255, 255, 0.16) 50%, transparent 60%),
    linear-gradient(145deg, #e11d48 0%, #b31234 45%, #8a0f25 100%);
  background-size: 220% 100%, 100% 100%;
  box-shadow:
    0 14px 34px rgba(220, 20, 60, 0.34),
    inset 0 1px 0 rgba(255, 255, 255, 0.15);
  transition: transform 0.25s var(--dx-ease), box-shadow 0.25s ease, filter 0.25s ease;
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  isolation: isolate;
}

.login-btn .dx-btn-label {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.login-btn .dx-btn-spinner {
  position: absolute;
  width: 20px;
  height: 20px;
  border: 2px solid rgba(255, 255, 255, 0.25);
  border-top-color: #fff;
  border-radius: 50%;
  opacity: 0;
  transform: scale(0.6);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.login-btn::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.12), transparent 50%);
  opacity: 0.5;
  pointer-events: none;
}

.login-btn .dx-btn-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.28);
  transform: scale(0);
  animation: dxRipple 0.55s ease-out forwards;
  pointer-events: none;
}

@keyframes dxRipple {
  to { transform: scale(12); opacity: 0; }
}

.login-btn:hover:not(.is-loading) {
  transform: translateY(-3px);
  box-shadow: 0 20px 44px rgba(220, 20, 60, 0.45);
  animation: dxShimmer 1.3s linear infinite;
}

.login-btn:active:not(.is-loading) {
  transform: translateY(-1px) scale(0.99);
  filter: brightness(0.97);
}

.login-btn:focus-visible {
  outline: 2px solid rgba(220, 20, 60, 0.75);
  outline-offset: 3px;
}

.login-btn.is-loading {
  pointer-events: none;
  cursor: wait;
}

.login-btn.is-loading .dx-btn-label {
  opacity: 0;
  transform: scale(0.9);
}

.login-btn.is-loading .dx-btn-spinner {
  opacity: 1;
  transform: scale(1);
  animation: dxSpinner 0.7s linear infinite;
}

.dx-login-note {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  text-align: center;
  font-size: 0.76rem;
  color: rgba(245, 245, 246, 0.38);
  font-weight: 500;
  letter-spacing: 0.01em;
  animation: dxReveal 0.7s var(--dx-ease) 0.55s both;
  transition: color 0.25s ease;
}

.dx-login-note:hover {
  color: rgba(245, 245, 246, 0.55);
}

.dx-login-note i {
  color: rgba(220, 20, 60, 0.75);
  margin-right: 6px;
  font-size: 0.72rem;
}

/* Alerts */
.alert,
.alert-danger {
  position: relative;
  z-index: 1;
  padding: 12px 14px 12px 16px;
  border-radius: 12px;
  margin-bottom: 2px;
  font-size: 0.88rem;
  font-weight: 500;
  line-height: 1.4;
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-left: 3px solid #ef4444;
  background: rgba(80, 16, 20, 0.5);
  color: var(--dx-danger);
  list-style: none;
  animation: dxLoginIn 0.4s var(--dx-ease) both, dxShake 0.45s ease 0.1s both;
}

.alert li {
  list-style: none;
  margin: 0;
}

.particles,
.particle,
.music-controls {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .dx-login-shell,
  .dx-login-mark,
  .dx-login-photo,
  .dx-login-glow,
  .dx-login-orb,
  .dx-login-dust span,
  .dx-login-mark-wrap::before,
  .dx-login-mark-wrap::after,
  .dx-login-status-dot,
  #loginForm > *,
  .login-btn:hover,
  .dx-brand-title .dx-ch,
  .dx-brand-word--xiter::before,
  .dx-brand-word--xiter::after,
  .dx-brand-title::after {
    animation: none !important;
  }

  .dx-login-photo {
    transform: none;
  }

  .dx-brand-title .dx-ch,
  .dx-brand-word--dream .dx-ch,
  .dx-brand-word--xiter .dx-ch--hot {
    opacity: 1;
    transform: none;
    filter: none;
    -webkit-text-fill-color: initial;
    color: #fff;
    background: none;
  }

  .dx-brand-word--xiter .dx-ch--hot {
    color: #dc143c;
    -webkit-text-fill-color: #dc143c;
  }
}

@media (max-width: 480px) {
  body.dx-login-page {
    padding: 16px 14px;
  }

  .dx-login-shell {
    padding: 30px 20px 24px;
    border-radius: 18px;
  }

  .dx-login-mark,
  .dx-login-mark-wrap {
    width: 64px;
    height: 64px;
  }

  .dx-login-mark {
    font-size: 1.4rem;
  }

  .form-group input {
    height: 52px;
  }

  .login-btn {
    height: 52px;
  }
}

@media (max-height: 560px) and (orientation: landscape) {
  body.dx-login-page {
    padding: 12px;
  }

  .dx-login-shell {
    padding: 20px 22px;
  }

  .dx-login-brand {
    margin-bottom: 12px;
  }

  .dx-login-mark,
  .dx-login-mark-wrap {
    width: 48px;
    height: 48px;
  }

  .dx-login-status {
    display: none;
  }
}

@media (hover: none) {
  .dx-login-shell:hover {
    border-color: var(--dx-line);
    box-shadow:
      0 1px 0 rgba(255, 255, 255, 0.05) inset,
      0 40px 90px rgba(0, 0, 0, 0.55),
      0 0 0 1px rgba(220, 20, 60, 0.07);
  }
}
