/* ============================================================
   LOGIN PAGE — MODERN DESIGN
   Glassmorphism, animated gradients, staggered reveals
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700;800&family=Geist+Mono:wght@400;500&display=swap');

/* --- Login Tokens --- */
:root {
  --login-font-display: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  --login-font-serif: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  --login-font-body: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  --login-font-mono: 'Geist Mono', 'SF Mono', monospace;
  --login-bg-from: #e8eef6;
  --login-bg-via: #dbe4f3;
  --login-bg-to: #eaeff8;
  --login-card-bg: rgba(255, 255, 255, 0.95);
  --login-card-border: rgba(0, 0, 0, 0.08);
  --login-card-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
  --login-input-bg: rgba(0, 0, 0, 0.03);
  --login-input-border: rgba(0, 0, 0, 0.10);
  --login-input-focus: #2d4a7a;
  --login-text: #1e293b;
  --login-text-muted: #64748b;
  --login-text-dim: #94a3b8;
  --login-accent: #2d4a7a;
  --login-accent-light: #2d4a7a;
  --login-accent-glow: rgba(45, 74, 122, 0.2);
  --login-orb1: rgba(45, 74, 122, 0.12);
  --login-orb2: rgba(30, 58, 138, 0.12);
  --login-orb3: rgba(45, 74, 122, 0.08);

  /* === Navy corporate palette (2026-04-17 final v2) === */
  --navy-900:  #0a1f44;
  --navy-800:  #0f2c5c;
  --navy-700:  #1e3a8a;
  --navy-600:  #2d4a7a;
  --navy-500:  #3b5998;
  --navy-100:  #dbe2ee;
  --navy-50:   #eef2f8;

  /* Acentos sóbrios (mantém nomes de tokens, só muda valor) */
  --acc-indigo: var(--navy-700);
  --acc-blue:   var(--navy-600);
  --acc-cyan:   var(--navy-500);
  --acc-violet: var(--navy-800);
  --acc-mint:   #16a34a;  /* só pra check de "resolvido" */

  --acc-grad:      linear-gradient(135deg, var(--navy-900) 0%, var(--navy-700) 100%);
  --acc-grad-soft: linear-gradient(135deg, rgba(10,31,68,0.06) 0%, rgba(30,58,138,0.04) 100%);

  /* Mesh pastel REMOVIDO — substituído por gradient navy sólido */
  --mesh-pastel:
    linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 50%, var(--navy-700) 100%);

  --shadow-glass:  0 1px 2px rgba(0,0,0,0.04), 0 32px 64px -16px rgba(10,31,68,0.18);
  --shadow-card-a: 0 12px 32px -10px rgba(10,31,68,0.40);
  --shadow-card-b: 0 12px 32px -10px rgba(10,31,68,0.45);
  --shadow-btn:    0 8px 24px -6px rgba(10,31,68,0.45);

  --surface-form:    #ffffff;
  --text-primary:    #0a1f44;
  --text-secondary:  #475569;
  --text-muted:      #64748b;
  --acc-shadow-indigo: 0 8px 24px -6px rgba(30, 58, 138, 0.35);
  --acc-shadow-glass: var(--shadow-glass);
}

/* --- Reset for login page --- */
body.login-page {
  margin: 0 !important;
  padding: 0 !important;
  min-height: 100vh;
  font-family: var(--login-font-body) !important;
  color: var(--login-text) !important;
  overflow-x: hidden;
  background: #fafbff !important;
  -webkit-font-smoothing: antialiased;
}

/* --- Animated Background (left panel only; right panel has its own mesh) --- */
.login-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  background: var(--surface-form);
  overflow: hidden;
}

/* Subtle noise to avoid flatness */
.login-bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' 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.03'/%3E%3C/svg%3E");
  opacity: 0.10;
  pointer-events: none;
}

.login-bg-aurora,
.login-bg-topo { display: none; }

/* Removed: grid pattern (replaced with cleaner background) */

@keyframes loginGridScroll {
  0% { transform: translate(0, 0); }
  100% { transform: translate(60px, 60px); }
}

/* Topographic contour background — slow drift */
.login-bg-topo {
  position: absolute;
  inset: -10%;
  width: 120%;
  height: 120%;
  pointer-events: none;
  z-index: 0;
  animation: loginTopoDrift 40s ease-in-out infinite;
}

@keyframes loginTopoDrift {
  0%, 100% { transform: translate(0, 0) scale(1); }
  25% { transform: translate(20px, -15px) scale(1.02); }
  50% { transform: translate(-10px, 10px) scale(1.01); }
  75% { transform: translate(15px, 5px) scale(1.03); }
}

/* Floating orbs */
.login-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  pointer-events: none;
}

.login-orb--1 {
  width: 600px; height: 600px;
  top: -200px; left: -200px;
  background: radial-gradient(circle, rgba(30,58,138,0.10), transparent 70%);
}

.login-orb--2 {
  width: 500px; height: 500px;
  bottom: -150px; right: -150px;
  background: radial-gradient(circle, rgba(59,89,152,0.10), transparent 70%);
}

.login-orb--3 {
  display: none; /* não usamos o terceiro */
}

@keyframes loginOrbFloat1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(-60px, 40px) scale(1.1); }
  66% { transform: translate(30px, -30px) scale(0.95); }
}

@keyframes loginOrbFloat2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  33% { transform: translate(50px, -30px) scale(1.05); }
  66% { transform: translate(-40px, 50px) scale(0.9); }
}

@keyframes loginOrbFloat3 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-80px, 40px) scale(1.15); }
}

/* --- Main Layout --- */
.login-wrapper {
  position: relative;
  display: flex;
  min-height: 100vh;
  z-index: 1;
}

/* Left panel — Form */
.login-panel-form {
  flex: 0.92;
  background: transparent;
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 48px;
  min-height: 100vh;
}

.login-divider-vertical { display: none; }

@media (min-width: 1600px) {
  .login-panel-form {
    flex: 0 0 720px;
    max-width: 720px;
  }
}

/* Right panel — Showcase */
.login-panel-showcase {
  position: relative;
  flex: 1.08;
  min-height: 100vh;
  overflow: hidden;
  background: var(--mesh-pastel);
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-panel-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.04;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='240' height='240'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
  z-index: 0;
}

.login-showcase-ring { display: none; }

@media (min-width: 1024px) {
  .login-panel-showcase {
    display: flex;
    align-items: center;
    justify-content: center;
  }
}

.login-showcase-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  padding: 48px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 36px;
  min-height: 100vh;
}

/* Legacy showcase typography neutralizada — agora usamos .hd-pitch */

/* Keep the showcase-inner above the overlay */
.login-showcase-inner,
.hd-scenes-container,
.hd-scene-dots,
.login-typing-heading,
.login-panel-showcase p,
.login-trust-badges {
  position: relative;
  z-index: 3;
}

/* Decorative ring */
.login-showcase-ring {
  position: absolute;
  width: 500px;
  height: 500px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.10);
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  z-index: 0;
  animation: loginRingPulse 8s ease-in-out infinite;
}

.login-showcase-ring::before {
  content: '';
  position: absolute;
  inset: -60px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.06);
  animation: loginRingPulse 8s ease-in-out 2s infinite;
}

.login-showcase-ring::after {
  content: '';
  position: absolute;
  inset: 60px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  animation: loginRingPulse 8s ease-in-out 4s infinite;
}

@keyframes loginRingPulse {
  0%, 100% { opacity: 0.3; transform: translate(-50%, -50%) scale(1); }
  50% { opacity: 0.7; transform: translate(-50%, -50%) scale(1.05); }
}

/* --- Glass Card --- */
.login-card {
  position: relative;
  width: 100%;
  max-width: 460px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);
  border-radius: 20px;
  padding: 48px 44px;
  box-shadow: var(--shadow-glass);
  overflow: hidden;
  z-index: 2;
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, rgba(30,58,138,0.4), rgba(59,89,152,0.2), rgba(30,58,138,0) 70%);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  pointer-events: none;
  z-index: 1;
}

.login-card > * { position: relative; z-index: 2; }

.login-card-highlight { display: none; }

@keyframes loginCardIn {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

/* --- Logo --- */
.login-logo {
  display: flex;
  justify-content: center;
  margin-bottom: 24px;
}

.login-logo img {
  max-height: 56px;
  width: auto;
}

@keyframes loginLogoIn {
  from { opacity: 0; transform: scale(0.8); }
  to { opacity: 1; transform: scale(1); }
}

/* --- Welcome Text --- */
.login-welcome {
  text-align: center;
  margin-bottom: 28px;
}

.login-welcome h1 {
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 8px;
}

.login-welcome p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

/* --- Error Message --- */
.login-error {
  background: rgba(239, 68, 68, 0.08);
  border: 1px solid rgba(239, 68, 68, 0.20);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 18px;
  font-size: 0.82rem;
  color: #dc2626;
  text-align: center;
  animation: loginShake 0.4s ease-out;
}

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

/* --- Form Fields --- */
.login-field {
  margin-bottom: 16px;
  opacity: 0;
  animation: loginSlideUp 0.5s ease-out forwards;
}

.login-field--1 { animation-delay: 0.55s; }
.login-field--2 { animation-delay: 0.65s; }
.login-field:nth-child(3) { animation-delay: 0.75s; }

@keyframes loginSlideUp {
  from { opacity: 0; transform: translateY(16px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-field {
  margin-bottom: 14px;
}

.login-input-wrapper {
  display: flex;
  align-items: center;
  background: rgba(255,255,255,0.6) !important;
  border: 1.5px solid rgba(30,58,138,0.12) !important;
  border-radius: 12px !important;
  padding: 0 14px !important;
  height: 48px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.login-input-wrapper:focus-within {
  border-color: var(--acc-indigo) !important;
  background: #fff !important;
  box-shadow: 0 0 0 4px rgba(30,58,138,0.12) !important;
}

.login-field-icon {
  color: var(--text-muted);
  font-size: 14px;
  margin-right: 10px;
  transition: color 0.2s ease;
}

.login-input-wrapper:focus-within .login-field-icon {
  color: var(--acc-indigo);
}

.login-input-wrapper input {
  flex: 1;
  border: none !important;
  background: transparent !important;
  outline: none !important;
  box-shadow: none !important;
  font-size: 14px !important;
  color: var(--text-primary) !important;
  font-family: inherit !important;
  padding: 0 !important;
  height: 46px;
  min-height: 46px;
}

.login-input-wrapper input::placeholder {
  color: var(--text-muted) !important;
}

.login-pw-toggle {
  background: none;
  border: none;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px;
}
.login-pw-toggle:hover { color: var(--acc-indigo); }

/* --- Remember & Forgot Row --- */
.login-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 8px 0 20px;
  font-size: 13px;
}

.login-remember {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-secondary);
  cursor: pointer;
}

.login-remember input[type="checkbox"] {
  accent-color: var(--acc-indigo);
}

.login-remember span {
  font-size: 13px;
  color: var(--text-secondary);
  user-select: none;
}

.login-forgot {
  color: var(--acc-indigo) !important;
  text-decoration: none !important;
  font-weight: 500;
  font-size: 13px;
}
.login-forgot:hover { text-decoration: underline !important; }

/* --- Submit Button --- */
.login-btn-submit {
  width: 100%;
  background: var(--acc-grad) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 12px !important;
  padding: 14px 20px !important;
  font-size: 15px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: transform 0.2s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.2s ease;
  position: relative;
  overflow: hidden;
}

.login-btn-submit:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px -6px rgba(10,31,68,0.50);
}

.login-btn-submit:active {
  transform: translateY(0);
}

/* --- Divider --- */
.login-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 20px 0 16px;
  color: var(--text-muted);
  font-size: 13px;
}

.login-divider::before,
.login-divider::after {
  content: "";
  flex: 1;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(30,58,138,0.18), transparent);
}

.login-divider span {
  font-size: 13px;
  color: var(--text-muted);
}

/* --- Register Button --- */
.login-btn-register {
  width: 100%;
  background: rgba(30,58,138,0.04) !important;
  color: var(--text-primary) !important;
  border: 1.5px solid rgba(30,58,138,0.18) !important;
  border-radius: 12px !important;
  padding: 13px 20px !important;
  font-size: 14px !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.login-btn-register:hover {
  background: rgba(30,58,138,0.08) !important;
  border-color: rgba(30,58,138,0.35) !important;
}

/* --- Footer --- */
.login-footer {
  text-align: center;
  margin-top: 20px;
}

.login-version {
  font-size: 12px !important;
  color: var(--text-muted) !important;
  margin: 0;
}

/* --- Social Links --- */
.login-socials {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 18px;
}

.login-social-link {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: rgba(30,58,138,0.06);
  color: var(--acc-indigo) !important;
  border: 1px solid rgba(30,58,138,0.12);
  text-decoration: none !important;
  transition: all 0.25s cubic-bezier(0.34,1.56,0.64,1);
}

.login-social-link:hover {
  transform: translateY(-2px);
  background: rgba(30,58,138,0.12);
  box-shadow: 0 6px 16px rgba(30,58,138,0.18);
}

/* --- License Warning --- */
.login-license-warning {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.25);
  border-radius: 10px;
  padding: 10px 14px;
  margin-bottom: 16px;
  font-size: 0.8rem;
  color: #b45309;
  text-align: center;
}

/* --- Register Form Mode --- */
.login-card .login-btn-back {
  width: 100%;
  height: 46px;
  border: 1px solid var(--login-input-border) !important;
  border-radius: 12px !important;
  background: transparent !important;
  color: var(--login-text) !important;
  font-family: var(--login-font-display) !important;
  font-size: 0.88rem !important;
  font-weight: 500 !important;
  cursor: pointer;
  transition: all 0.25s ease;
  margin-top: 10px;
}

.login-card .login-btn-back:hover {
  background: rgba(0, 0, 0, 0.04) !important;
  border-color: rgba(0, 0, 0, 0.18) !important;
}

/* --- Floating Particles --- */
.login-particles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.login-particle {
  position: absolute;
  width: 3px;
  height: 3px;
  background: rgba(30, 58, 138, 0.2);
  border-radius: 50%;
  animation: loginParticleFloat linear infinite;
}

.login-particle:nth-child(1) { left: 10%; animation-duration: 20s; animation-delay: 0s; width: 2px; height: 2px; }
.login-particle:nth-child(2) { left: 25%; animation-duration: 18s; animation-delay: 2s; width: 4px; height: 4px; background: rgba(30, 58, 138, 0.15); }
.login-particle:nth-child(3) { left: 40%; animation-duration: 22s; animation-delay: 4s; }
.login-particle:nth-child(4) { left: 55%; animation-duration: 16s; animation-delay: 1s; width: 2px; height: 2px; background: rgba(30, 58, 138, 0.12); }
.login-particle:nth-child(5) { left: 70%; animation-duration: 24s; animation-delay: 3s; width: 4px; height: 4px; }
.login-particle:nth-child(6) { left: 85%; animation-duration: 19s; animation-delay: 5s; background: rgba(0, 0, 0, 0.06); }
.login-particle:nth-child(7) { left: 15%; animation-duration: 21s; animation-delay: 6s; width: 2px; height: 2px; background: rgba(0,0,0,0.04); }
.login-particle:nth-child(8) { left: 60%; animation-duration: 17s; animation-delay: 7s; }

@keyframes loginParticleFloat {
  0% {
    transform: translateY(100vh) rotate(0deg);
    opacity: 0;
  }
  10% { opacity: 1; }
  90% { opacity: 1; }
  100% {
    transform: translateY(-10vh) rotate(720deg);
    opacity: 0;
  }
}

/* ============================================================
   Responsive (Task 11)
   ============================================================ */

@media (max-width: 1279px) {
  .hd-kanban__cols { gap: 6px; }
  .hd-mockup { transform: scale(0.92); transform-origin: top center; }
}

@media (max-width: 1023px) {
  .login-panel-showcase { display: none; }
  .login-panel-form {
    flex: 1;
    width: 100%;
    padding: 24px;
  }
  .login-card {
    max-width: 440px;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .login-card {
    padding: 32px 24px !important;
    border-radius: 16px !important;
  }
  .login-welcome h1 {
    font-size: 1.45rem !important;
  }
  .login-panel-form {
    padding: 16px;
  }
}

/* --- Loading State (for form submission) --- */
.login-btn-label,
.login-btn-loading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.login-btn-loading {
  display: none;
}

.login-btn-submit.is-loading {
  pointer-events: none;
  background: linear-gradient(135deg, var(--navy-800) 0%, var(--navy-900) 100%) !important;
}

.login-btn-submit.is-loading .login-btn-label {
  display: none;
}

.login-btn-submit.is-loading .login-btn-loading {
  display: flex;
}

.login-btn-submit.is-loading::after {
  display: none;
}

.login-btn-spinner {
  animation: loginSpin 0.8s linear infinite;
}

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

/* --- Vertical Divider between panels --- */
.login-divider-vertical {
  display: none;
  width: 1px;
  align-self: stretch;
  margin: 60px 0;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    rgba(255, 255, 255, 0.08) 15%,
    rgba(255, 255, 255, 0.15) 50%,
    rgba(255, 255, 255, 0.08) 85%,
    transparent 100%
  );
  position: relative;
  flex-shrink: 0;
}

.login-divider-vertical::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
}

@media (min-width: 1200px) {
  .login-divider-vertical {
    display: block;
  }
}

/* --- Typing Animation --- */
.login-typing-heading {
  font-family: var(--login-font-display);
  font-size: 2.2rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.025em;
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0,0,0,0.18);
  margin-bottom: 14px;
  min-height: 2.5em;
  opacity: 0;
  animation: loginSlideUp 0.8s ease-out 0.6s forwards;
}

.login-typing-cursor {
  display: inline-block;
  color: rgba(255, 255, 255, 0.7);
  font-weight: 300;
  animation: loginBlink 0.7s step-end infinite;
  margin-left: 2px;
}

@keyframes loginBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* ==========================================================
   SUPPORT FLOW ANIMATION — Ticket lifecycle narrative
   Orchestrated by JS state machine (class-driven)
   ========================================================== */

.hd-scenes-container {
  display: grid;
  place-items: center;
  width: 100%;
  margin-bottom: 20px;
}

.hd-scene {
  position: relative;
  width: 420px;
  max-width: 100%;
  grid-area: 1 / 1;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* Scene transition dot indicators */
.hd-scene-dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-bottom: 20px;
}

.hd-scene-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.25);
  transition: all 0.5s ease;
}

.hd-scene-dot.active {
  background: rgba(255, 255, 255, 0.85);
  width: 24px;
  border-radius: 4px;
}

.hd-scene.hd-step-init {
  opacity: 1;
  transform: translateY(0);
}

.hd-scene.hd-step-fade {
  opacity: 0;
  transform: translateY(-10px) scale(0.98);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

/* --- App Window --- */
.hd-scene__window {
  background: #ffffff;
  border-radius: 14px;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.04),
    0 4px 12px rgba(0,0,0,0.06),
    0 20px 48px rgba(0,0,0,0.06);
  overflow: hidden;
  border: 1px solid rgba(0,0,0,0.06);
}

/* Title bar */
.hd-scene__titlebar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 16px;
  background: #f8fafc;
  border-bottom: 1px solid #f1f5f9;
}

.hd-scene__dots {
  display: flex;
  gap: 5px;
}

.hd-scene__dots span {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  display: block;
}

.hd-scene__title {
  font-family: var(--login-font-display);
  font-size: 0.72rem;
  font-weight: 600;
  color: #64748b;
  letter-spacing: 0.01em;
}

/* Ticket header */
.hd-scene__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 16px;
  border-bottom: 1px solid #f1f5f9;
  gap: 8px;
}

.hd-scene__ticket-info {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.hd-scene__ticket-id {
  font-family: var(--login-font-display);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--login-accent);
  white-space: nowrap;
}

.hd-scene__ticket-subject {
  font-size: 0.72rem;
  font-weight: 500;
  color: #334155;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Status Badge */
.hd-scene__badge {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.62rem;
  font-weight: 600;
  font-family: var(--login-font-display);
  letter-spacing: 0.02em;
  white-space: nowrap;
  background: #f1f5f9;
  color: #94a3b8;
  transition: all 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hd-scene__badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #cbd5e1;
  transition: background 0.5s ease;
  flex-shrink: 0;
}

.hd-scene__badge-text {
  transition: color 0.3s ease;
}

/* Badge States */
.hd-step-open .hd-scene__badge {
  background: #fef2f2;
  color: #dc2626;
  transform: scale(1.08);
}
.hd-step-open .hd-scene__badge-dot { background: #dc2626; animation: hdPulseDot 1.5s ease-in-out infinite; }

.hd-step-progress .hd-scene__badge {
  background: #fffbeb;
  color: #d97706;
  transform: scale(1.08);
}
.hd-step-progress .hd-scene__badge-dot { background: #f59e0b; animation: hdPulseDot 1s ease-in-out infinite; }

.hd-step-resolved .hd-scene__badge {
  background: #f0fdf4;
  color: #16a34a;
  transform: scale(1.12);
}
.hd-step-resolved .hd-scene__badge-dot { background: #22c55e; }

@keyframes hdPulseDot {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.6); }
}

/* --- Chat Area --- */
.hd-scene__chat {
  padding: 14px 16px 18px;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Messages — hidden by default */
.hd-scene__msg {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  max-height: 0;
  overflow: hidden;
}

/* Avatar */
.hd-scene__avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
  margin-top: 2px;
}

.hd-scene__avatar--user {
  background: linear-gradient(135deg, #dbeafe, #bfdbfe);
  color: #2563eb;
}

.hd-scene__avatar--agent {
  background: linear-gradient(135deg, #fecaca, #fca5a5);
  color: #dc2626;
}

/* Bubbles */
.hd-scene__bubble {
  padding: 8px 12px;
  border-radius: 12px;
  max-width: 280px;
  position: relative;
}

.hd-scene__bubble--user {
  background: #f1f5f9;
  border-bottom-left-radius: 4px;
}

.hd-scene__bubble--agent {
  background: #fef2f2;
  border-bottom-left-radius: 4px;
}

.hd-scene__bubble--resolve {
  background: linear-gradient(135deg, #f0fdf4, #dcfce7);
  border: 1px solid rgba(34, 197, 94, 0.15);
  border-bottom-left-radius: 4px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
}

.hd-scene__resolve-icon {
  color: #22c55e;
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

.hd-scene__name {
  font-family: var(--login-font-display);
  font-size: 0.62rem;
  font-weight: 600;
  color: #64748b;
  margin-bottom: 3px;
}

.hd-scene__text {
  font-size: 0.72rem;
  line-height: 1.5;
  color: #334155;
}

/* Typing dots */
.hd-scene__typing-dots {
  display: flex;
  gap: 4px;
  padding: 4px 2px;
}

.hd-scene__typing-dots span {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #94a3b8;
  animation: hdTypingBounce 1.2s ease-in-out infinite;
}

.hd-scene__typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.hd-scene__typing-dots span:nth-child(3) { animation-delay: 0.3s; }

@keyframes hdTypingBounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30% { transform: translateY(-5px); opacity: 1; }
}

/* --- Notification Toast --- */
.hd-scene__toast {
  position: absolute;
  top: -8px;
  right: -12px;
  display: flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  padding: 8px 14px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.1), 0 1px 3px rgba(0,0,0,0.06);
  border: 1px solid rgba(0,0,0,0.04);
  z-index: 10;
  opacity: 0;
  transform: translateX(20px) scale(0.9);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  pointer-events: none;
}

.hd-scene__toast-icon {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #fef2f2;
  color: var(--login-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  flex-shrink: 0;
}

.hd-scene__toast-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.hd-scene__toast-body strong {
  font-family: var(--login-font-display);
  font-size: 0.68rem;
  font-weight: 600;
  color: #1e293b;
}

.hd-scene__toast-body span {
  font-size: 0.6rem;
  color: #64748b;
}

.hd-step-toast .hd-scene__toast {
  opacity: 1;
  transform: translateX(0) scale(1);
}

.hd-step-toast .hd-scene__toast-icon {
  animation: hdBellShake 0.6s ease-in-out 0.3s;
}

@keyframes hdBellShake {
  0%, 100% { transform: rotate(0); }
  15% { transform: rotate(14deg); }
  30% { transform: rotate(-12deg); }
  45% { transform: rotate(10deg); }
  60% { transform: rotate(-6deg); }
  75% { transform: rotate(3deg); }
}

/* --- Confetti / Celebration --- */
.hd-scene__confetti {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 20;
}

.hd-scene__confetti span {
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 2px;
  opacity: 0;
  top: 50%;
  left: 50%;
}

.hd-scene__confetti span:nth-child(1) { background: #dc2626; }
.hd-scene__confetti span:nth-child(2) { background: #2563eb; }
.hd-scene__confetti span:nth-child(3) { background: #22c55e; }
.hd-scene__confetti span:nth-child(4) { background: #f59e0b; }
.hd-scene__confetti span:nth-child(5) { background: #8b5cf6; width: 4px; height: 8px; }
.hd-scene__confetti span:nth-child(6) { background: #ec4899; width: 8px; height: 4px; }
.hd-scene__confetti span:nth-child(7) { background: #06b6d4; }
.hd-scene__confetti span:nth-child(8) { background: #f97316; width: 5px; height: 7px; }

.hd-step-celebrate .hd-scene__confetti span {
  animation: hdConfetti 1.2s cubic-bezier(0.25, 0.46, 0.45, 0.94) forwards;
}

.hd-scene__confetti span:nth-child(1) { --cx: -80px; --cy: -90px; --cr: 200deg; }
.hd-scene__confetti span:nth-child(2) { --cx: 60px;  --cy: -100px; --cr: -150deg; }
.hd-scene__confetti span:nth-child(3) { --cx: -100px; --cy: -40px; --cr: 280deg; }
.hd-scene__confetti span:nth-child(4) { --cx: 90px;  --cy: -60px; --cr: -220deg; }
.hd-scene__confetti span:nth-child(5) { --cx: -40px; --cy: -110px; --cr: 170deg; }
.hd-scene__confetti span:nth-child(6) { --cx: 110px; --cy: -30px; --cr: -300deg; }
.hd-scene__confetti span:nth-child(7) { --cx: -60px; --cy: -70px; --cr: 250deg; }
.hd-scene__confetti span:nth-child(8) { --cx: 30px;  --cy: -120px; --cr: -180deg; }

.hd-scene__confetti span:nth-child(2) { animation-delay: 0.05s; }
.hd-scene__confetti span:nth-child(3) { animation-delay: 0.1s; }
.hd-scene__confetti span:nth-child(4) { animation-delay: 0.15s; }
.hd-scene__confetti span:nth-child(5) { animation-delay: 0.08s; }
.hd-scene__confetti span:nth-child(6) { animation-delay: 0.12s; }
.hd-scene__confetti span:nth-child(7) { animation-delay: 0.18s; }
.hd-scene__confetti span:nth-child(8) { animation-delay: 0.06s; }

@keyframes hdConfetti {
  0% {
    opacity: 1;
    transform: translate(0, 0) rotate(0deg) scale(0);
  }
  20% {
    opacity: 1;
    transform: translate(calc(var(--cx) * 0.3), calc(var(--cy) * 0.3)) rotate(calc(var(--cr) * 0.3)) scale(1.2);
  }
  100% {
    opacity: 0;
    transform: translate(var(--cx), var(--cy)) rotate(var(--cr)) scale(0.5);
  }
}

/* --- State-driven message visibility --- */

/* User message */
.hd-step-user-msg .hd-scene__msg--user {
  opacity: 1;
  transform: translateY(0);
  max-height: 120px;
  transition-delay: 0s;
}

/* Agent typing */
.hd-step-agent-typing .hd-scene__msg--typing-agent {
  opacity: 1;
  transform: translateY(0);
  max-height: 60px;
}

.hd-step-agent-msg .hd-scene__msg--typing-agent {
  opacity: 0;
  max-height: 0;
  transform: translateY(-5px);
  transition: opacity 0.3s ease, max-height 0.3s ease, transform 0.3s ease;
}

/* Agent message 1 */
.hd-step-agent-msg .hd-scene__msg--agent1 {
  opacity: 1;
  transform: translateY(0);
  max-height: 120px;
}

/* Resolution message */
.hd-step-resolve-msg .hd-scene__msg--resolve {
  opacity: 1;
  transform: translateY(0);
  max-height: 120px;
}

/* Chat element spacing — only visible elements get margin */
.hd-step-ai-scan .hd-scene__ai-card,
.hd-step-ai-results .hd-scene__ai-card,
.hd-step-ai-suggest .hd-scene__ai-suggest,
.hd-step-agent-typing .hd-scene__msg--typing-agent,
.hd-step-agent-msg .hd-scene__msg--agent1,
.hd-step-resolve-msg .hd-scene__msg--resolve {
  margin-top: 10px;
}

/* Badge text changes via JS-driven classes */
.hd-step-open .hd-scene__badge-text { font-size: 0; }
.hd-step-open .hd-scene__badge-text::after { content: 'Aberto'; font-size: 0.62rem; }

.hd-step-progress .hd-scene__badge-text { font-size: 0; }
.hd-step-progress .hd-scene__badge-text::after { content: 'Atendendo'; font-size: 0.62rem; }

.hd-step-resolved .hd-scene__badge-text { font-size: 0; }
.hd-step-resolved .hd-scene__badge-text::after { content: 'Resolvido'; font-size: 0.62rem; }

/* ==========================================================
   AI ELEMENTS — Classification, Copilot Suggestion, Badge
   ========================================================== */

/* --- AI Analysis Card --- */
.hd-scene__ai-card {
  box-sizing: border-box;
  background: linear-gradient(135deg, #faf5ff, #f3e8ff);
  border: 1px solid rgba(139, 92, 246, 0.15);
  border-radius: 10px;
  padding: 8px 12px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(8px);
  transition: opacity 0.4s ease, transform 0.4s ease, max-height 0.4s ease;
}

.hd-scene__ai-header {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 0;
  transition: margin-bottom 0.3s ease;
}

.hd-scene__ai-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: linear-gradient(135deg, #8b5cf6, #7c3aed);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  flex-shrink: 0;
}

.hd-scene__ai-icon.small {
  width: 18px;
  height: 18px;
  font-size: 8px;
  border-radius: 5px;
}

.hd-scene__ai-label {
  font-family: var(--login-font-display);
  font-size: 0.62rem;
  font-weight: 600;
  color: #7c3aed;
}

/* Scanning dots */
.hd-scene__ai-scan-dots {
  display: flex;
  gap: 3px;
  margin-left: 4px;
}

.hd-scene__ai-scan-dots span {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #8b5cf6;
  animation: hdTypingBounce 1s ease-in-out infinite;
}

.hd-scene__ai-scan-dots span:nth-child(2) { animation-delay: 0.15s; }
.hd-scene__ai-scan-dots span:nth-child(3) { animation-delay: 0.3s; }

/* AI Results tags */
.hd-scene__ai-results {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  opacity: 0;
  max-height: 0;
  transform: translateY(4px);
  transition: opacity 0.4s ease 0.1s, transform 0.4s ease 0.1s, max-height 0.4s ease;
}

.hd-scene__ai-tag {
  display: flex;
  align-items: center;
  gap: 4px;
  background: rgba(255,255,255,0.7);
  border: 1px solid rgba(139, 92, 246, 0.12);
  border-radius: 6px;
  padding: 2px 8px;
  font-size: 0.58rem;
  font-weight: 600;
  font-family: var(--login-font-display);
  color: #4c1d95;
}

/* AI Scan state — card visible, dots animating */
.hd-step-ai-scan .hd-scene__ai-card {
  opacity: 1;
  max-height: 30px;
  transform: translateY(0);
}

/* AI Results state — tags appear */
.hd-step-ai-results .hd-scene__ai-card {
  opacity: 1;
  max-height: 80px;
  transform: translateY(0);
}

.hd-step-ai-results .hd-scene__ai-header {
  margin-bottom: 6px;
}

.hd-step-ai-results .hd-scene__ai-scan-dots {
  display: none;
}

.hd-step-ai-results .hd-scene__ai-label::after {
  content: ' — Classificado';
}

.hd-step-ai-results .hd-scene__ai-results {
  opacity: 1;
  max-height: 40px;
  transform: translateY(0);
}

/* Hide AI card when agent starts */
.hd-step-agent-typing .hd-scene__ai-card,
.hd-step-agent-msg .hd-scene__ai-card {
  opacity: 0;
  max-height: 0;
  transform: translateY(-4px);
  transition: opacity 0.3s ease, max-height 0.3s ease;
}

/* --- AI Copilot Suggestion --- */
.hd-scene__ai-suggest {
  box-sizing: border-box;
  background: linear-gradient(135deg, #faf5ff, #ede9fe);
  border: 1px dashed rgba(139, 92, 246, 0.25);
  border-radius: 10px;
  padding: 8px 12px;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(8px) scale(0.97);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1), max-height 0.4s ease;
}

.hd-scene__ai-suggest-header {
  display: flex;
  align-items: center;
  gap: 5px;
  margin-bottom: 4px;
  font-family: var(--login-font-display);
  font-size: 0.6rem;
  font-weight: 600;
  color: #7c3aed;
}

.hd-scene__ai-suggest-text {
  font-size: 0.66rem;
  line-height: 1.4;
  color: #4c1d95;
  margin-bottom: 6px;
}

.hd-scene__ai-suggest-actions {
  display: flex;
  gap: 6px;
  align-items: center;
}

.hd-scene__ai-btn-use {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: #7c3aed;
  color: #fff;
  font-size: 0.56rem;
  font-weight: 600;
  font-family: var(--login-font-display);
  padding: 2px 10px;
  border-radius: 5px;
  letter-spacing: 0.01em;
}

.hd-scene__ai-btn-dismiss {
  color: #94a3b8;
  font-size: 10px;
}

/* Suggest visible */
.hd-step-ai-suggest .hd-scene__ai-suggest {
  opacity: 1;
  max-height: 100px;
  transform: translateY(0) scale(1);
}

/* Suggest accepted — flash green then hide */
.hd-step-ai-accepted .hd-scene__ai-suggest {
  opacity: 0;
  max-height: 0;
  transform: translateY(-4px) scale(0.97);
}

.hd-step-ai-accepted .hd-scene__ai-card {
  opacity: 0;
  max-height: 0;
}

/* Hide suggest when agent starts */
.hd-step-agent-typing .hd-scene__ai-suggest,
.hd-step-agent-msg .hd-scene__ai-suggest {
  opacity: 0;
  max-height: 0;
}

/* --- AI Copilot Badge on Agent Message --- */
.hd-scene__ai-copilot-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
  color: #7c3aed;
  font-size: 0.5rem;
  font-weight: 700;
  font-family: var(--login-font-display);
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.03em;
  border: 1px solid rgba(139, 92, 246, 0.15);
}

.hd-scene__ai-copilot-badge i {
  font-size: 7px;
}

/* ============================================================
   EDITORIAL HERO (2026-04-17 redesign v2)
   ============================================================ */

/* Hide the animated chat/dashboard scenes — replaced by static hero */
.hd-scenes-hidden { display: none !important; }
.login-typing-heading { display: none !important; }

/* Minimal brand mark */
.login-brand-mark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--login-font-display);
  font-size: 0.9rem;
  font-weight: 500;
  letter-spacing: -0.015em;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 40px;
  opacity: 0;
  animation: loginHeroFadeIn 0.8s cubic-bezier(0.22, 1, 0.36, 1) 0.3s forwards;
}

.login-brand-icon {
  color: #ffffff;
  opacity: 0.95;
}

/* Modern bold headline — Geist with tight tracking */
.login-hero-title {
  font-family: var(--login-font-display) !important;
  font-size: clamp(3rem, 5.2vw, 4.4rem) !important;
  font-weight: 600 !important;
  line-height: 1.0 !important;
  letter-spacing: -0.05em !important;
  color: #fff !important;
  margin: 0 !important;
  text-shadow: 0 2px 24px rgba(0, 0, 0, 0.22);
  max-width: 580px;
  opacity: 0;
  animation: loginHeroFadeIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards !important;
}

.login-hero-title em {
  display: block;
  font-style: normal;
  font-weight: 600;
  background: linear-gradient(100deg, #ffffff 0%, #dbe2ee 55%, #ffffff 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  letter-spacing: -0.05em;
  margin-top: 2px;
}

@keyframes loginHeroFadeIn {
  from { opacity: 0; transform: translateY(12px); filter: blur(4px); }
  to   { opacity: 1; transform: translateY(0); filter: blur(0); }
}

/* ============================================================
   MOTION v3 — Premium interactions (tilt, parallax, reveal)
   ============================================================ */

/* (3D tilt + specular highlight removidos — preferência do usuário: card estático) */
.login-card .login-card-highlight { display: none !important; }

/* Hero title — per-word reveal */
.login-hero-title .hero-word {
  display: inline-block;
  opacity: 0;
  transform: translateY(24px) rotateX(-20deg);
  transform-origin: bottom;
  animation: heroWordReveal 0.9s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.login-hero-title em .hero-word {
  animation-delay: inherit;
}

@keyframes heroWordReveal {
  to { opacity: 1; transform: translateY(0) rotateX(0); }
}

/* (showcase parallax + social magnetic removidos — preferência do usuário) */

/* Input ripple on focus (enter state) */
@keyframes inputFocusRing {
  0%   { box-shadow: 0 0 0 0 rgba(30,58,138,0.35), 0 0 0 4px rgba(30,58,138,0.14), 0 0 20px rgba(30,58,138,0.10); }
  100% { box-shadow: 0 0 0 6px rgba(30,58,138,0),  0 0 0 4px rgba(30,58,138,0.14), 0 0 20px rgba(30,58,138,0.10); }
}

/* loginFocusPulse removido (distrai do focus ring novo) */

/* Ksys logo floating idle */
.login-logo img {
  animation:
    loginLogoEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards,
    logoFloat 6s ease-in-out 1.2s infinite alternate !important;
}

@keyframes logoFloat {
  0%   { transform: translateY(0); }
  100% { transform: translateY(-4px); }
}

/* Showcase-inner aligned left, generous padding, vertically centered */
.login-panel-showcase .login-showcase-inner {
  text-align: left !important;
  max-width: 560px;
  padding: 64px 60px !important;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

/* Legacy trust-badges (kept for backward compat elsewhere) --- */
.login-trust-badges {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
  opacity: 0;
  animation: loginSlideUp 0.8s ease-out 1s forwards;
}

.login-trust-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  background: rgba(255, 255, 255, 0.10);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  font-size: 0.78rem;
  color: rgba(255, 255, 255, 0.95);
  font-weight: 500;
  font-family: var(--login-font-display);
  text-shadow: 0 1px 2px rgba(0,0,0,0.12);
  transition: transform 0.25s cubic-bezier(0.34,1.56,0.64,1), background 0.25s ease;
}

.login-trust-badge:hover {
  transform: translateY(-2px);
  background: rgba(255, 255, 255, 0.18);
}

.login-trust-badge i {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.95);
  opacity: 1;
}

/* --- Timestamps in chat --- */
.hd-scene__msg-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 3px;
}

.hd-scene__time {
  font-size: 0.56rem;
  color: #94a3b8;
  font-family: var(--login-font-display);
  font-weight: 500;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

/* --- Progress bar in ticket --- */
.hd-scene__progress {
  height: 3px;
  background: #f1f5f9;
  position: relative;
  overflow: hidden;
}

.hd-scene__progress-bar {
  height: 100%;
  width: 0%;
  border-radius: 0 3px 3px 0;
  background: #cbd5e1;
  transition: width 1.2s cubic-bezier(0.4, 0, 0.2, 1), background 0.5s ease;
}

.hd-step-open .hd-scene__progress-bar {
  width: 15%;
  background: var(--login-accent);
}

.hd-step-progress .hd-scene__progress-bar {
  width: 55%;
  background: #f59e0b;
}

.hd-step-resolve-msg .hd-scene__progress-bar {
  width: 85%;
  background: #22c55e;
}

.hd-step-resolved .hd-scene__progress-bar {
  width: 100%;
  background: #22c55e;
}

/* --- Override for old styles that might conflict --- */
body.login-page .d-md-flex { display: none !important; }
body.login-page .staycenter { display: none !important; }

/* ==========================================================
   DASHBOARD / REPORTS ANIMATION — Second showcase scene
   ========================================================== */

/* --- KPI Cards --- */
.hd-dash__kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px 14px 8px;
}

.hd-dash__kpi {
  background: #f8fafc;
  border: 1px solid #f1f5f9;
  border-radius: 10px;
  padding: 10px 10px 8px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  opacity: 0;
  transform: translateY(12px) scale(0.95);
  transition: opacity 0.5s ease, transform 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hd-dash__kpi-icon {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  flex-shrink: 0;
}

.hd-dash__kpi-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.hd-dash__kpi-value {
  font-family: var(--login-font-display);
  font-size: 1.2rem;
  font-weight: 700;
  color: #1e293b;
  line-height: 1.1;
}

.hd-dash__kpi-label {
  font-size: 0.56rem;
  color: #94a3b8;
  font-weight: 500;
  font-family: var(--login-font-display);
}

.hd-dash__kpi-trend {
  font-size: 0.52rem;
  font-weight: 700;
  font-family: var(--login-font-display);
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 1px 6px;
  border-radius: 4px;
  width: fit-content;
  letter-spacing: 0.02em;
  opacity: 0;
  transform: scale(0.7);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hd-dash__trend-up { background: #f0fdf4; color: #16a34a; }
.hd-dash__trend-down-good { background: #f0fdf4; color: #16a34a; }

/* KPI state visibility */
.hd-dash-kpi-1 .hd-dash__kpi:nth-child(1) { opacity: 1; transform: translateY(0) scale(1); }
.hd-dash-kpi-2 .hd-dash__kpi:nth-child(2) { opacity: 1; transform: translateY(0) scale(1); }
.hd-dash-kpi-3 .hd-dash__kpi:nth-child(3) { opacity: 1; transform: translateY(0) scale(1); }
.hd-dash-trends .hd-dash__kpi-trend { opacity: 1; transform: scale(1); }

/* --- Bar Chart --- */
.hd-dash__chart {
  padding: 0 14px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hd-dash-chart .hd-dash__chart { opacity: 1; transform: translateY(0); }

.hd-dash__chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
  padding: 0 2px;
}

.hd-dash__chart-title {
  font-family: var(--login-font-display);
  font-size: 0.64rem;
  font-weight: 600;
  color: #334155;
}

.hd-dash__chart-period {
  font-size: 0.54rem;
  color: #94a3b8;
  font-weight: 500;
  font-family: var(--login-font-display);
}

.hd-dash__chart-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 65px;
  padding: 0 4px;
  border-bottom: 1px solid #e2e8f0;
}

.hd-dash__bar {
  flex: 1;
  height: 0;
  background: linear-gradient(180deg, var(--login-accent-light), var(--login-accent));
  border-radius: 3px 3px 0 0;
  max-width: 30px;
  transition: height 0.8s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.4s ease, box-shadow 0.4s ease;
}

.hd-dash-bars .hd-dash__bar { height: var(--h); }

.hd-dash-bars .hd-dash__bar:nth-child(1) { transition-delay: 0s; }
.hd-dash-bars .hd-dash__bar:nth-child(2) { transition-delay: 0.08s; }
.hd-dash-bars .hd-dash__bar:nth-child(3) { transition-delay: 0.16s; }
.hd-dash-bars .hd-dash__bar:nth-child(4) { transition-delay: 0.24s; }
.hd-dash-bars .hd-dash__bar:nth-child(5) { transition-delay: 0.32s; }
.hd-dash-bars .hd-dash__bar:nth-child(6) { transition-delay: 0.40s; }
.hd-dash-bars .hd-dash__bar:nth-child(7) { transition-delay: 0.48s; }

.hd-dash-highlight .hd-dash__bar:nth-child(5) {
  background: linear-gradient(180deg, #f59e0b, #d97706);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.3);
}

.hd-dash__chart-labels {
  display: flex;
  gap: 8px;
  padding: 4px 4px 0;
}

.hd-dash__chart-labels span {
  flex: 1;
  text-align: center;
  font-size: 0.48rem;
  color: #94a3b8;
  font-weight: 500;
  font-family: var(--login-font-display);
  max-width: 30px;
}

/* --- Ranking Table --- */
.hd-dash__ranking {
  padding: 10px 14px 14px;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}

.hd-dash-ranking .hd-dash__ranking { opacity: 1; transform: translateY(0); }

.hd-dash__ranking-head { margin-bottom: 8px; }

.hd-dash__ranking-title {
  font-family: var(--login-font-display);
  font-size: 0.64rem;
  font-weight: 600;
  color: #334155;
}

.hd-dash__ranking-list {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hd-dash__rank-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 8px;
  background: #f8fafc;
  border-radius: 8px;
  border: 1px solid transparent;
  opacity: 0;
  transform: translateX(-10px);
  transition: opacity 0.4s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), background 0.3s ease, border-color 0.3s ease;
}

.hd-dash-row-1 .hd-dash__rank-row:nth-child(1) { opacity: 1; transform: translateX(0); }
.hd-dash-row-2 .hd-dash__rank-row:nth-child(2) { opacity: 1; transform: translateX(0); }
.hd-dash-row-3 .hd-dash__rank-row:nth-child(3) { opacity: 1; transform: translateX(0); }

.hd-dash-highlight .hd-dash__rank-row:nth-child(1) {
  background: #fffbeb;
  border-color: rgba(245, 158, 11, 0.2);
}

.hd-dash__rank-pos {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #e2e8f0;
  color: #64748b;
  font-size: 0.56rem;
  font-weight: 700;
  font-family: var(--login-font-display);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hd-dash__rank-row:nth-child(1) .hd-dash__rank-pos {
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #fff;
}

.hd-dash__rank-info {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.hd-dash__rank-name {
  font-family: var(--login-font-display);
  font-size: 0.62rem;
  font-weight: 600;
  color: #334155;
}

.hd-dash__rank-bar-bg {
  height: 4px;
  background: #e2e8f0;
  border-radius: 2px;
  overflow: hidden;
}

.hd-dash__rank-bar-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--login-accent), var(--login-accent-light));
  border-radius: 2px;
  transition: width 1s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.hd-dash-bars-rank .hd-dash__rank-bar-fill { width: var(--w); }
.hd-dash-bars-rank .hd-dash__rank-row:nth-child(1) .hd-dash__rank-bar-fill { transition-delay: 0s; }
.hd-dash-bars-rank .hd-dash__rank-row:nth-child(2) .hd-dash__rank-bar-fill { transition-delay: 0.15s; }
.hd-dash-bars-rank .hd-dash__rank-row:nth-child(3) .hd-dash__rank-bar-fill { transition-delay: 0.3s; }

.hd-dash__rank-val {
  font-family: var(--login-font-display);
  font-size: 0.62rem;
  font-weight: 700;
  color: var(--login-accent);
  white-space: nowrap;
  flex-shrink: 0;
}

/* ============================================================
   MOTION UPGRADE v3 — Cinematic premium motion
   3D tilt, light sweep, choreographed entrance,
   gradient text, atmospheric depth, spring physics
   ============================================================ */

/* --- Aurora breathing gradient --- */
.login-bg-aurora {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 10% 20%, rgba(30,58,138,0.08) 0%, transparent 60%),
    radial-gradient(ellipse 60% 80% at 90% 80%, rgba(59,89,152,0.06) 0%, transparent 50%),
    radial-gradient(ellipse 50% 50% at 50% 50%, rgba(15,44,92,0.05) 0%, transparent 60%);
  background-size: 200% 200%;
  animation: loginAurora 20s ease-in-out infinite alternate;
  pointer-events: none;
  z-index: 0;
  mix-blend-mode: multiply;
}

@keyframes loginAurora {
  0% { background-position: 0% 0%; opacity: 0.6; }
  50% { background-position: 100% 100%; opacity: 1; }
  100% { background-position: 50% 0%; opacity: 0.8; }
}

/* Extra particles (9-15) — varied colors + organic motion */
.login-particle:nth-child(9)  { left: 5%;  animation-duration: 23s; animation-delay: 1.5s; width: 2px; height: 2px; background: rgba(15,44,92,0.20); border-radius: 50%; box-shadow: 0 0 6px rgba(15,44,92,0.3); }
.login-particle:nth-child(10) { left: 30%; animation-duration: 19s; animation-delay: 3.5s; width: 3px; height: 3px; background: rgba(30,58,138,0.18); box-shadow: 0 0 8px rgba(30,58,138,0.25); }
.login-particle:nth-child(11) { left: 48%; animation-duration: 25s; animation-delay: 0.5s; width: 2px; height: 2px; background: rgba(30,58,138,0.22); box-shadow: 0 0 6px rgba(30,58,138,0.3); }
.login-particle:nth-child(12) { left: 65%; animation-duration: 20s; animation-delay: 4.5s; width: 4px; height: 4px; background: rgba(15,44,92,0.14); box-shadow: 0 0 10px rgba(15,44,92,0.2); }
.login-particle:nth-child(13) { left: 78%; animation-duration: 22s; animation-delay: 2.5s; width: 2px; height: 2px; background: rgba(30,58,138,0.12); }
.login-particle:nth-child(14) { left: 92%; animation-duration: 18s; animation-delay: 5.5s; width: 3px; height: 3px; background: rgba(59,89,152,0.16); box-shadow: 0 0 8px rgba(59,89,152,0.2); }
.login-particle:nth-child(15) { left: 20%; animation-duration: 26s; animation-delay: 6.5s; width: 2px; height: 2px; background: rgba(45,74,122,0.15); box-shadow: 0 0 6px rgba(45,74,122,0.25); }

/* ---- LIGHT SWEEP across card on load ---- */
.login-card::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -60%;
  width: 40%;
  height: 200%;
  background: linear-gradient(
    105deg,
    transparent 0%,
    rgba(255,255,255,0) 40%,
    rgba(255,255,255,0.35) 50%,
    rgba(255,255,255,0) 60%,
    transparent 100%
  );
  transform: skewX(-15deg);
  animation: loginLightSweep 1.2s cubic-bezier(0.4, 0, 0.2, 1) 0.8s forwards;
  opacity: 0;
  pointer-events: none;
  z-index: 10;
}

@keyframes loginLightSweep {
  0% { left: -60%; opacity: 1; }
  100% { left: 160%; opacity: 0; }
}

/* ---- Welcome heading — modern bold sans ---- */
.login-welcome h1 {
  font-family: var(--login-font-display) !important;
  font-weight: 600 !important;
  font-size: 1.85rem !important;
  line-height: 1.1 !important;
  letter-spacing: -0.035em !important;
  background: linear-gradient(135deg, #0a1f44 0%, #1e3a8a 50%, #2d4a7a 100%) !important;
  background-size: 200% 100% !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  animation: loginGradientShift 8s ease-in-out infinite alternate !important;
}

.login-welcome p {
  font-family: var(--login-font-body) !important;
  font-size: 0.88rem !important;
  color: #64748b !important;
  letter-spacing: -0.005em;
  font-weight: 400;
}

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

/* ---- CHOREOGRAPHED ENTRANCE — varied directions, not all slide-up ---- */

/* Logo: scale + rotate from zero */
@keyframes loginLogoEntrance {
  0% { opacity: 0; transform: scale(0.3) rotate(-8deg); filter: blur(8px); }
  60% { opacity: 1; transform: scale(1.05) rotate(1deg); filter: blur(0); }
  100% { opacity: 1; transform: scale(1) rotate(0); }
}

.login-logo img {
  animation: loginLogoEntrance 0.8s cubic-bezier(0.34, 1.56, 0.64, 1) 0.2s forwards !important;
}

/* Welcome: fade + slide from the left */
@keyframes loginSlideFromLeft {
  0% { opacity: 0; transform: translateX(-30px); filter: blur(4px); }
  100% { opacity: 1; transform: translateX(0); filter: blur(0); }
}

.login-welcome {
  animation: loginSlideFromLeft 0.7s cubic-bezier(0.22, 1, 0.36, 1) 0.45s forwards !important;
}

/* Field 1 (username): slide from left with slight rotation */
@keyframes loginFieldEntrance1 {
  0% { opacity: 0; transform: translateX(-24px) rotate(-1deg); }
  100% { opacity: 1; transform: translateX(0) rotate(0); }
}

.login-field--1 {
  animation: loginFieldEntrance1 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.55s forwards !important;
}

/* Field 2 (password): slide from right with slight rotation */
@keyframes loginFieldEntrance2 {
  0% { opacity: 0; transform: translateX(24px) rotate(1deg); }
  100% { opacity: 1; transform: translateX(0) rotate(0); }
}

.login-field--2 {
  animation: loginFieldEntrance2 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.65s forwards !important;
}

/* Options row: fade up with spring */
.login-options {
  animation: loginSlideUp 0.5s cubic-bezier(0.34, 1.56, 0.64, 1) 0.75s forwards !important;
}

/* Submit button: dramatic scale-in with overshoot */
@keyframes loginBtnEntrance {
  0% { opacity: 0; transform: scaleX(0.3) scaleY(0.8); }
  60% { opacity: 1; transform: scaleX(1.04) scaleY(1.02); }
  80% { transform: scaleX(0.98) scaleY(1); }
  100% { opacity: 1; transform: scaleX(1) scaleY(1); }
}

.login-btn-submit {
  animation: loginBtnEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) 0.85s forwards !important;
}

/* Divider: expand from center */
@keyframes loginDividerExpand {
  0% { opacity: 0; transform: scaleX(0); }
  100% { opacity: 1; transform: scaleX(1); }
}

.login-divider {
  animation: loginDividerExpand 0.5s cubic-bezier(0.22, 1, 0.36, 1) 0.92s forwards !important;
}

/* Register button: slide from bottom with bounce */
@keyframes loginRegisterEntrance {
  0% { opacity: 0; transform: translateY(20px) scale(0.95); }
  70% { transform: translateY(-3px) scale(1.01); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

.login-btn-register {
  animation: loginRegisterEntrance 0.6s cubic-bezier(0.22, 1, 0.36, 1) 0.98s forwards !important;
}

/* Footer: gentle fade */
.login-footer {
  animation: loginSlideUp 0.5s ease-out 1.05s forwards !important;
}

/* Socials: staggered pop-in */
@keyframes loginSocialEntrance {
  0% { opacity: 0; transform: scale(0.4) translateY(10px); }
  70% { transform: scale(1.1) translateY(-2px); }
  100% { opacity: 1; transform: scale(1) translateY(0); }
}

.login-social-link:nth-child(1) { opacity: 0; animation: loginSocialEntrance 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 1.08s forwards; }
.login-social-link:nth-child(2) { opacity: 0; animation: loginSocialEntrance 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 1.14s forwards; }
.login-social-link:nth-child(3) { opacity: 0; animation: loginSocialEntrance 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 1.20s forwards; }
.login-social-link:nth-child(4) { opacity: 0; animation: loginSocialEntrance 0.4s cubic-bezier(0.34, 1.56, 0.64, 1) 1.26s forwards; }

/* loginFocusPulse removido — Task 4 redesign */

/* Icon morph on focus */
@keyframes loginIconMorph {
  0% { transform: scale(1) rotate(0); color: var(--login-text-dim); }
  40% { transform: scale(1.3) rotate(-12deg); color: var(--acc-indigo); }
  70% { transform: scale(0.95) rotate(3deg); }
  100% { transform: scale(1) rotate(0); color: var(--acc-indigo); }
}

.login-input-wrapper:focus-within .login-field-icon {
  animation: loginIconMorph 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
  color: var(--acc-indigo);
}

/* ---- RIPPLE on submit ---- */
.login-btn-submit .login-ripple {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255,255,255,0.5) 0%, rgba(255,255,255,0) 70%);
  transform: scale(0);
  animation: loginRippleOut 0.7s cubic-bezier(0, 0.5, 0.25, 1) forwards;
  pointer-events: none;
}

@keyframes loginRippleOut {
  to { transform: scale(5); opacity: 0; }
}

/* ---- SUBMIT BUTTON: enhanced hover glow ---- */
.login-btn-submit {
  transition: transform 0.25s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease, background-position 0.4s ease !important;
}

.login-btn-submit:hover {
  transform: translateY(-2px) scale(1.01) !important;
  background-position: 100% 0 !important;
  box-shadow:
    0 12px 32px -6px rgba(10, 31, 68, 0.45),
    0 0 40px rgba(30, 58, 138, 0.18) !important;
}

.login-btn-submit:active {
  transform: translateY(0) scale(0.98) !important;
  transition-duration: 0.08s !important;
}

/* ---- SUCCESS EXIT (cinematic) ---- */
@keyframes loginSuccessExit {
  0% { opacity: 1; transform: scale(1) perspective(800px) rotateX(0); filter: blur(0) brightness(1); }
  30% { opacity: 1; transform: scale(1.03) perspective(800px) rotateX(0); filter: blur(0) brightness(1.1); }
  100% { opacity: 0; transform: scale(0.92) perspective(800px) rotateX(8deg) translateY(-40px); filter: blur(12px) brightness(1.3); }
}

.login-card.login-success-exit {
  animation: loginSuccessExit 1s cubic-bezier(0.4, 0, 0.2, 1) forwards;
  pointer-events: none;
}

/* ---- SOCIAL LINKS: magnetic hover ---- */
.login-social-link {
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  position: relative;
}

.login-social-link::before {
  content: '';
  position: absolute;
  inset: -4px;
  border-radius: 14px;
  background: radial-gradient(circle, rgba(30,58,138,0.08) 0%, transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.login-social-link:hover::before { opacity: 1; }

.login-social-link:hover {
  transform: translateY(-5px) scale(1.18) !important;
  box-shadow: 0 10px 28px rgba(45, 74, 122, 0.20) !important;
  border-color: rgba(30,58,138,0.25) !important;
}

@keyframes loginSocialPop {
  0% { transform: scale(1) rotate(0); }
  25% { transform: scale(1.35) rotate(-12deg); }
  50% { transform: scale(0.9) rotate(5deg); }
  75% { transform: scale(1.08) rotate(-2deg); }
  100% { transform: scale(1) rotate(0); }
}

.login-social-link:hover i {
  animation: loginSocialPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- SCENE TRANSITIONS: blur + scale ---- */
.hd-scene.hd-step-fade {
  filter: blur(6px) !important;
  transform: translateY(-10px) scale(0.96) !important;
  transition: opacity 0.9s ease, transform 0.9s ease, filter 0.9s ease !important;
}

/* (parallax removed — user preference) */

/* ---- SPRING PHYSICS (global) ---- */
.login-card {
  transition-timing-function: cubic-bezier(0.34, 1.56, 0.64, 1);
}

.login-btn-register {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

.login-btn-register:hover {
  transform: translateY(-2px) scale(1.01) !important;
  border-color: rgba(45,74,122,0.25) !important;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06) !important;
}

.login-pw-toggle {
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

/* ---- TRUST BADGES: staggered entrance + hover ---- */
.login-trust-badges {
  opacity: 0;
  animation: loginSlideUp 0.6s ease-out 1.1s forwards;
}

.login-trust-badge {
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
  position: relative;
}

.login-trust-badge:hover {
  transform: translateY(-4px) scale(1.1) !important;
  color: var(--login-accent) !important;
}

.login-trust-badge:hover i {
  opacity: 1 !important;
  transform: scale(1.15);
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ---- CHECKBOX: pop + glow ---- */
.login-remember input[type="checkbox"] {
  transition: all 0.25s cubic-bezier(0.34, 1.56, 0.64, 1) !important;
}

@keyframes loginCheckPop {
  0% { transform: scale(0.6) rotate(-10deg); }
  50% { transform: scale(1.25) rotate(5deg); }
  100% { transform: scale(1) rotate(0); }
}

.login-remember input[type="checkbox"]:checked {
  animation: loginCheckPop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 0 8px rgba(45,74,122,0.25);
}

/* ---- FORGOT LINK: underline reveal ---- */
.login-forgot {
  position: relative;
}

.login-forgot::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 50%;
  width: 0;
  height: 1.5px;
  background: linear-gradient(90deg, transparent, var(--login-accent-light), transparent);
  transition: width 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), left 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.login-forgot:hover::after {
  width: 100%;
  left: 0%;
}

/* ---- PASSWORD TOGGLE: elegant flip ---- */
@keyframes loginToggleFlip {
  0% { transform: scale(1) rotateY(0); }
  50% { transform: scale(1.2) rotateY(90deg); }
  100% { transform: scale(1) rotateY(0); }
}

.login-pw-toggle:active i {
  animation: loginToggleFlip 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* (3D tilt removed — user preference) */

/* ---- ERROR MESSAGE: dramatic entrance ---- */
@keyframes loginErrorEntrance {
  0% { opacity: 0; transform: translateY(-10px) scaleY(0.7); }
  40% { opacity: 1; transform: translateY(3px) scaleY(1.03); }
  60% { transform: translateX(-6px); }
  75% { transform: translateX(6px); }
  85% { transform: translateX(-3px); }
  95% { transform: translateX(2px); }
  100% { opacity: 1; transform: translate(0) scaleY(1); }
}

.login-error {
  animation: loginErrorEntrance 0.6s cubic-bezier(0.22, 1, 0.36, 1) !important;
}

/* ---- ORB GLOW ENHANCEMENT ---- */
.login-orb {
  filter: blur(80px) saturate(1.5) !important;
}

.login-orb--1 { animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1) !important; }
.login-orb--2 { animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1) !important; }
.login-orb--3 { animation-timing-function: cubic-bezier(0.45, 0, 0.55, 1) !important; }

/* ---- ACCESSIBILITY: Reduced Motion ---- */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .login-bg-aurora,
  .login-bg-topo,
  .login-bg::after,
  .login-orb,
  .login-particle,
  .login-showcase-ring,
  .login-showcase-ring::before,
  .login-showcase-ring::after,
  .hd-scene__confetti span {
    animation: none !important;
  }
  .login-input-wrapper:focus-within {
    animation: none !important;
    box-shadow: 0 0 0 3px rgba(30,58,138,0.18) !important;
  }
  .login-welcome h1 {
    -webkit-text-fill-color: #1e293b !important;
    background: none !important;
  }
  .login-card::after { animation: none !important; opacity: 0 !important; }
}

/* ============================================================
   SHOWCASE — Eyebrow + Pitch + Typewriter
   ============================================================ */

/* Brand pill / eyebrow antigos — substituídos pelo logo SVG */
.hd-brand-pill,
.hd-eyebrow { display: none; }

.hd-pitch {
  text-align: center;
  max-width: 520px;
  position: relative;
  z-index: 2;
}


.hd-pitch__title {
  font-size: 44px;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #fff;
  margin: 0 0 18px;
  /* Reserva altura pra evitar layout shift do typewriter */
  min-height: calc(1.15em * 2);
}

.hd-pitch__static {
  display: inline-block;
}

.hd-pitch__rotating {
  display: inline-block;
  position: relative;
  color: #fff;
  background: linear-gradient(90deg, #fff 0%, rgba(255,255,255,0.7) 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hd-pitch__cursor {
  display: inline-block;
  width: 3px;
  height: 0.85em;
  vertical-align: -3px;
  margin-left: 4px;
  background: #fff;
  border-radius: 2px;
  animation: hdCursorBlink 0.8s steps(2) infinite;
  -webkit-text-fill-color: #fff;
}

@keyframes hdCursorBlink {
  0%, 50%   { opacity: 1; }
  51%, 100% { opacity: 0; }
}

.hd-pitch__sub {
  font-size: 16px;
  color: rgba(255,255,255,0.72);
  line-height: 1.55;
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .hd-pitch__cursor { animation: none; opacity: 0; }
}

/* Trust pills */
.hd-trust {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.hd-trust__pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  background: rgba(255,255,255,0.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
  color: rgba(255,255,255,0.92);
}

.hd-trust__pill i {
  font-size: 11px;
  color: rgba(255,255,255,0.85);
}

/* Legacy hero title — substituído por .hd-pitch */
.login-hero-title { display: none !important; }

/* ============================================================
   PRODUCT PREVIEW MOCKUP — Static final state (2026-04-17 v2)
   Animações do fluxo de tickets REMOVIDAS por feedback do user.
   ============================================================ */

/* hd-ai__pulse / hd-ai__cursor já escondidos via display:none no bloco base.
   Nenhuma classe .hd-ticket--enter está presente no HTML (removida). */

/* ============================================================
   Reduce motion fallback
   ============================================================ */

@media (prefers-reduced-motion: reduce) {
  .login-orb {
    animation: none !important;
  }
}

/* ============================================================
   MODAL — Recuperar Senha (inline, sem popup)
   ============================================================ */

.hd-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: hdModalIn 0.2s ease-out;
}

.hd-modal[hidden] { display: none; }

@keyframes hdModalIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.hd-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 31, 68, 0.55);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hd-modal__card {
  position: relative;
  width: 100%;
  max-width: 420px;
  background: #fff;
  border-radius: 18px;
  padding: 36px 32px 32px;
  box-shadow:
    0 1px 2px rgba(0,0,0,0.04),
    0 24px 64px -12px rgba(10,31,68,0.35);
  animation: hdModalCardIn 0.25s cubic-bezier(0.34, 1.4, 0.64, 1);
}

@keyframes hdModalCardIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.hd-modal__close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s, color 0.15s;
}

.hd-modal__close:hover {
  background: rgba(10, 31, 68, 0.06);
  color: var(--text-primary);
}

.hd-modal__header {
  text-align: center;
  margin-bottom: 22px;
}

.hd-modal__icon {
  width: 52px;
  height: 52px;
  margin: 0 auto 14px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--navy-900), var(--navy-700));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  box-shadow: 0 8px 20px -6px rgba(10, 31, 68, 0.45);
}

.hd-modal__title {
  font-size: 20px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text-primary);
  margin: 0 0 6px;
}

.hd-modal__subtitle {
  font-size: 13.5px;
  color: var(--text-muted);
  line-height: 1.5;
  margin: 0;
}

.hd-modal__form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.hd-modal__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.hd-modal__field label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-secondary);
}

.hd-modal__field input {
  height: 44px;
  border: 1.5px solid rgba(10, 31, 68, 0.12);
  border-radius: 10px;
  padding: 0 14px;
  font-size: 14px;
  color: var(--text-primary);
  background: #fff;
  font-family: inherit;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.hd-modal__field input:focus {
  border-color: var(--navy-700);
  box-shadow: 0 0 0 4px rgba(30, 58, 138, 0.12);
}

.hd-modal__btn {
  height: 44px;
  background: var(--acc-grad);
  color: #fff;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: var(--shadow-btn);
  transition: transform 0.15s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.2s;
  position: relative;
  overflow: hidden;
}

.hd-modal__btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 32px -6px rgba(10, 31, 68, 0.50);
}

.hd-modal__btn--ghost {
  background: rgba(10, 31, 68, 0.04);
  color: var(--text-primary);
  border: 1.5px solid rgba(10, 31, 68, 0.10);
  box-shadow: none;
  margin-top: 18px;
}

.hd-modal__btn--ghost:hover {
  background: rgba(10, 31, 68, 0.08);
  box-shadow: none;
}

.hd-modal__btn-loading { display: none; }
.hd-modal__form--loading .hd-modal__btn-label { display: none; }
.hd-modal__form--loading .hd-modal__btn-loading { display: inline; }
.hd-modal__form--loading .hd-modal__btn { pointer-events: none; opacity: 0.85; }

/* Result states */
.hd-modal__result {
  text-align: center;
  padding: 4px 0 0;
}

.hd-modal__result-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 26px;
}

.hd-modal__result-icon--success {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
}

.hd-modal__result-icon--error {
  background: rgba(239, 68, 68, 0.12);
  color: #ef4444;
}

.hd-modal__result-icon--warning {
  background: rgba(245, 158, 11, 0.14);
  color: #f59e0b;
}

.hd-modal__result-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 6px;
  letter-spacing: -0.01em;
}

.hd-modal__result-text {
  font-size: 13.5px;
  color: var(--text-secondary);
  line-height: 1.55;
  margin: 0;
}

.hd-modal__result-text strong {
  color: var(--navy-700);
  font-weight: 600;
}

@media (max-width: 480px) {
  .hd-modal { padding: 16px; }
  .hd-modal__card { padding: 28px 22px 22px; border-radius: 14px; }
  .hd-modal__icon { width: 44px; height: 44px; font-size: 17px; }
  .hd-modal__title { font-size: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .hd-modal,
  .hd-modal__card { animation: none; }
}

/* ============================================================
   LOGIN — visual refresh (Operations Center, navy-only)
   ============================================================ */
:root {
  --hd-navy-deepest: #050b1a;
  --hd-navy-deep:    #0a1628;
  --hd-navy:         #0f1e3a;
  --hd-navy-mid:     #1a2f5a;
  --hd-navy-light:   #1e3a8a;
  --hd-blue-royal:   #1e40af;
  --hd-blue:         #2563eb;
  --hd-blue-bright:  #3b82f6;
  --hd-blue-cyan:    #38bdf8;
  --hd-blue-soft:    #60a5fa;
  --hd-blue-pale:    #93c5fd;
  --hd-blue-mist:    #bfdbfe;
}

/* Page background — navy mist with subtle radial pools */
body.login-page {
  background:
    radial-gradient(at 18% 22%, rgba(59,130,246,0.16) 0%, transparent 55%),
    radial-gradient(at 82% 30%, rgba(96,165,250,0.13) 0%, transparent 50%),
    radial-gradient(at 25% 80%, rgba(14,165,233,0.12) 0%, transparent 55%),
    radial-gradient(at 85% 78%, rgba(30,64,175,0.16) 0%, transparent 55%),
    linear-gradient(135deg, #edf3fb 0%, #e5edf7 100%) !important;
  background-attachment: fixed !important;
}

/* Body-level animated orbs — all navy family */
.login-orb { filter: blur(80px) !important; opacity: 0.55 !important; animation-duration: 22s !important; }
.login-orb--1 {
  width: 520px !important; height: 520px !important;
  background: radial-gradient(circle, #3b82f6 0%, transparent 70%) !important;
  top: -10% !important; left: -8% !important;
}
.login-orb--2 {
  width: 460px !important; height: 460px !important;
  background: radial-gradient(circle, #1e40af 0%, transparent 70%) !important;
  bottom: -12% !important; right: 32% !important;
}
.login-orb--3 {
  width: 380px !important; height: 380px !important;
  background: radial-gradient(circle, #0ea5e9 0%, transparent 70%) !important;
  top: 42% !important; right: -8% !important;
}
.login-bg-aurora {
  background:
    radial-gradient(ellipse 60% 40% at 30% 10%, rgba(30,64,175,0.20) 0%, transparent 60%),
    radial-gradient(ellipse 50% 35% at 70% 90%, rgba(59,130,246,0.18) 0%, transparent 60%) !important;
  opacity: 1 !important;
}

/* === RIGHT SHOWCASE — deep navy command-center === */
.login-panel-showcase {
  background:
    radial-gradient(at 30% 25%, rgba(59,130,246,0.40) 0%, transparent 55%),
    radial-gradient(at 75% 75%, rgba(14,165,233,0.25) 0%, transparent 55%),
    linear-gradient(140deg, #050b1a 0%, #0a1628 35%, #0f1e3a 70%, #1a2f5a 100%) !important;
  box-shadow: inset 80px 0 80px -80px rgba(0,0,0,0.45);
  position: relative;
  overflow: hidden;
}
/* fine scan-line texture */
.login-panel-showcase::after {
  content: "";
  position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0 3px, rgba(96,165,250,0.025) 3px 4px);
  pointer-events: none; z-index: 1;
}
/* drifting starfield dots */
.login-panel-showcase > .hd-stars {
  position: absolute; inset: 0;
  background-image:
    radial-gradient(1px 1px at 20% 30%, rgba(96,165,250,0.4) 50%, transparent),
    radial-gradient(1px 1px at 60% 70%, rgba(96,165,250,0.3) 50%, transparent),
    radial-gradient(1px 1px at 80% 20%, rgba(96,165,250,0.5) 50%, transparent),
    radial-gradient(1px 1px at 40% 80%, rgba(96,165,250,0.35) 50%, transparent),
    radial-gradient(1px 1px at 90% 60%, rgba(96,165,250,0.4) 50%, transparent),
    radial-gradient(1px 1px at 10% 90%, rgba(96,165,250,0.3) 50%, transparent),
    radial-gradient(1px 1px at 70% 40%, rgba(96,165,250,0.45) 50%, transparent);
  background-size: 100% 100%;
  pointer-events: none; z-index: 1;
  opacity: 0.7;
  animation: hd-stars-drift 60s linear infinite;
}
@keyframes hd-stars-drift {
  0%   { background-position: 0 0; }
  100% { background-position: 200px 200px; }
}

.login-showcase-inner {
  z-index: 2;
  gap: 28px !important;
  padding: 64px 48px !important;
}

/* Pitch typography refined */
.hd-pitch__title {
  font-size: 52px !important;
  line-height: 1.05 !important;
  letter-spacing: -0.035em !important;
  font-weight: 700 !important;
  color: #ffffff !important;
}
.hd-pitch__static { color: rgba(255,255,255,0.94) !important; }
.hd-pitch__rotating {
  background: linear-gradient(135deg, #60a5fa 0%, #93c5fd 50%, #ffffff 100%) !important;
  -webkit-background-clip: text !important;
          background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
}
.hd-pitch__cursor { background: #60a5fa !important; }
.hd-pitch__sub {
  font-size: 16.5px !important;
  color: rgba(191,219,254,0.72) !important;
  font-weight: 400;
}

/* Trust pills — stat-style */
.hd-trust { gap: 8px !important; flex-wrap: wrap; justify-content: center; }
.hd-trust__pill {
  background: rgba(15,30,60,0.55) !important;
  border: 1px solid rgba(96,165,250,0.22) !important;
  color: rgba(219,234,254,0.92) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  letter-spacing: 0.02em;
  padding: 8px 14px !important;
  border-radius: 999px !important;
  backdrop-filter: blur(8px);
  box-shadow: 0 0 0 1px rgba(96,165,250,0.05) inset, 0 4px 12px -4px rgba(0,0,0,0.30);
}
.hd-trust__pill i { color: #60a5fa !important; opacity: 0.85; margin-right: 4px; }

/* === ILLUSTRATION === */
.hd-illus {
  width: 100%;
  max-width: 560px;
  height: auto;
  margin: 4px auto 0;
  display: block;
  filter: drop-shadow(0 24px 60px rgba(5,11,26,0.6));
  position: relative;
  z-index: 2;
}

/* floating tickets — two phases */
@keyframes hd-float-a {
  0%, 100% { transform: translate(40px, 60px); }
  50%      { transform: translate(38px, 50px); }
}
@keyframes hd-float-b {
  0%, 100% { transform: translate(350px, 70px); }
  50%      { transform: translate(352px, 82px); }
}
.hd-illus .hd-ticket--a { animation: hd-float-a 6s ease-in-out infinite; }
.hd-illus .hd-ticket--b { animation: hd-float-b 7s ease-in-out infinite; animation-delay: -2.5s; }

/* status blink */
@keyframes hd-blink { 0%, 100% { opacity: 1; } 50% { opacity: 0.45; } }
.hd-illus .hd-blink { animation: hd-blink 1.8s ease-in-out infinite; }
.hd-illus .hd-blink--late { animation-delay: -0.9s; }

/* chart bar wave */
@keyframes hd-bar-wave { 0%, 100% { transform: scaleY(1); } 50% { transform: scaleY(0.62); } }
.hd-illus .hd-chart-bars rect {
  transform-origin: bottom; transform-box: fill-box;
  animation: hd-bar-wave 1.8s ease-in-out infinite;
}
.hd-illus .hd-chart-bars rect:nth-child(1) { animation-delay: 0s; }
.hd-illus .hd-chart-bars rect:nth-child(2) { animation-delay: 0.15s; }
.hd-illus .hd-chart-bars rect:nth-child(3) { animation-delay: 0.30s; }
.hd-illus .hd-chart-bars rect:nth-child(4) { animation-delay: 0.45s; }
.hd-illus .hd-chart-bars rect:nth-child(5) { animation-delay: 0.60s; }
.hd-illus .hd-chart-bars rect:nth-child(6) { animation-delay: 0.75s; }
.hd-illus .hd-chart-bars rect:nth-child(7) { animation-delay: 0.90s; }
.hd-illus .hd-chart-bars rect:nth-child(8) { animation-delay: 1.05s; }

/* cursor blink */
@keyframes hd-cursor { 0%, 49% { opacity: 1; } 50%, 100% { opacity: 0; } }
.hd-illus .hd-cursor { animation: hd-cursor 1.05s steps(2) infinite; }

/* headset pulse rings */
@keyframes hd-ring-pulse {
  0%   { r: 14; opacity: 0.85; }
  100% { r: 34; opacity: 0; }
}
.hd-illus .hd-ring { transform-origin: center; animation: hd-ring-pulse 2.4s ease-out infinite; }
.hd-illus .hd-ring--2 { animation-delay: -1.2s; }

/* chat typing */
@keyframes hd-typing {
  0%, 60%, 100% { transform: translateY(0);    opacity: 0.4; }
  30%           { transform: translateY(-4px); opacity: 1;   }
}
.hd-illus .hd-dot-typing {
  transform-origin: center; transform-box: fill-box;
  animation: hd-typing 1.4s ease-in-out infinite;
}
.hd-illus .hd-dot-typing--2 { animation-delay: 0.18s; }
.hd-illus .hd-dot-typing--3 { animation-delay: 0.36s; }

/* grid drift inside SVG */
@keyframes hd-grid-drift {
  0%   { transform: translate(0,0); }
  100% { transform: translate(22px, 22px); }
}
.hd-illus .hd-grid { animation: hd-grid-drift 40s linear infinite; transform-origin: 0 0; }

/* queue items entrance */
@keyframes hd-q-in {
  0%   { opacity: 0; transform: translate(0px, 4px) scaleX(0.96); }
  100% { opacity: 1; transform: translate(0px, 0px) scaleX(1);    }
}
.hd-illus .hd-queue__item {
  transform-origin: left center; transform-box: fill-box;
  animation: hd-q-in 0.7s cubic-bezier(0.22,1,0.36,1) backwards;
}
.hd-illus .hd-queue__item:nth-of-type(2) { animation-delay: 0.5s; }
.hd-illus .hd-queue__item:nth-of-type(3) { animation-delay: 0.7s; }
.hd-illus .hd-queue__item:nth-of-type(4) { animation-delay: 0.9s; }

/* === FORM CARD — refined glass === */
.login-card {
  background: rgba(255,255,255,0.78) !important;
  backdrop-filter: blur(20px) saturate(140%) !important;
  -webkit-backdrop-filter: blur(20px) saturate(140%) !important;
  border: 1px solid rgba(255,255,255,0.7) !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 24px 60px -20px rgba(15,23,42,0.18),
    0 8px 24px -8px rgba(15,23,42,0.10) !important;
  border-radius: 20px !important;
}
[data-theme="dark"] .login-card {
  background: rgba(15,23,42,0.78) !important;
  border-color: rgba(255,255,255,0.10) !important;
}

/* Inputs */
.login-input-wrapper input {
  background: rgba(255,255,255,0.85) !important;
  border: 1.5px solid rgba(148,163,184,0.35) !important;
  border-radius: 12px !important;
  padding: 14px 14px 14px 44px !important;
  font-size: 14.5px !important;
  transition: border-color 0.18s, box-shadow 0.18s, background 0.18s !important;
}
.login-input-wrapper input:focus {
  background: #ffffff !important;
  border-color: var(--hd-blue-bright) !important;
  box-shadow: 0 0 0 4px rgba(59,130,246,0.16) !important;
  outline: none !important;
}
.login-field-icon { color: #64748b !important; }

/* Submit button — navy gradient */
.login-btn-submit {
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #3b82f6 100%) !important;
  border: none !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 14.5px !important;
  letter-spacing: 0.02em !important;
  padding: 14px 18px !important;
  border-radius: 12px !important;
  box-shadow:
    0 8px 24px -8px rgba(37,99,235,0.55) !important,
    0 0 0 1px rgba(96,165,250,0.18) inset !important;
  transition: transform 0.15s, box-shadow 0.18s, background 0.3s !important;
  position: relative; overflow: hidden;
}
.login-btn-submit::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255,255,255,0.22) 50%, transparent 70%);
  transform: translateX(-100%);
  transition: transform 0.6s;
}
.login-btn-submit:hover { transform: translateY(-1px); box-shadow: 0 12px 32px -8px rgba(37,99,235,0.65) !important; }
.login-btn-submit:hover::before { transform: translateX(100%); }
.login-btn-submit:active { transform: translateY(0); }

/* Register button */
.login-btn-register {
  background: rgba(30,64,175,0.06) !important;
  border: 1.5px solid rgba(30,64,175,0.18) !important;
  color: var(--hd-blue-royal) !important;
  border-radius: 12px !important;
  font-weight: 600 !important;
  padding: 12px 16px !important;
  transition: background 0.15s, border-color 0.15s !important;
}
.login-btn-register:hover {
  background: rgba(30,64,175,0.12) !important;
  border-color: rgba(30,64,175,0.32) !important;
}

/* Welcome heading - navy gradient text */
.login-welcome h1 {
  background: linear-gradient(135deg, #0a1628 0%, #1e40af 60%, #2563eb 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800 !important;
}

/* Forgot link */
.login-forgot { color: var(--hd-blue) !important; font-weight: 600; }
.login-forgot:hover { color: var(--hd-blue-royal) !important; }

/* Social icons */
.login-social-link {
  background: rgba(30,64,175,0.06) !important;
  border: 1px solid rgba(30,64,175,0.14) !important;
  color: var(--hd-blue-royal) !important;
  border-radius: 10px !important;
  transition: transform 0.15s, background 0.15s !important;
}
.login-social-link:hover {
  background: rgba(30,64,175,0.14) !important;
  color: var(--hd-blue) !important;
  transform: translateY(-2px);
}

/* Divider */
.login-divider { color: #94a3b8 !important; font-size: 12px !important; letter-spacing: 0.06em; text-transform: uppercase; }
.login-divider::before, .login-divider::after { background: rgba(148,163,184,0.25) !important; }

/* Hide noise overlay; we draw our own */
.login-panel-showcase::before { opacity: 0.05 !important; }

/* Reduce motion */
@media (prefers-reduced-motion: reduce) {
  .hd-illus .hd-ticket--a, .hd-illus .hd-ticket--b,
  .hd-illus .hd-blink, .hd-illus .hd-chart-bars rect,
  .hd-illus .hd-cursor, .hd-illus .hd-ring, .hd-illus .hd-dot-typing,
  .hd-illus .hd-grid, .hd-illus .hd-queue__item,
  .login-panel-showcase > .hd-stars,
  .login-btn-submit::before {
    animation: none !important;
  }
}

/* Input wrapper layout — icon sits over the input padding, input fills full width */
.login-input-wrapper {
  position: relative !important;
  display: block !important;
  width: 100% !important;
}
.login-input-wrapper input {
  width: 100% !important;
  display: block !important;
}
.login-input-wrapper .login-field-icon {
  position: absolute !important;
  left: 16px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  pointer-events: none !important;
  font-size: 15px !important;
  color: #94a3b8 !important;
  z-index: 1 !important;
}
.login-input-wrapper input:focus + .login-field-icon,
.login-input-wrapper:has(input:focus) .login-field-icon {
  color: var(--hd-blue-bright) !important;
}
/* Password toggle button on the right */
.login-input-wrapper .login-pw-toggle {
  position: absolute !important;
  right: 12px !important;
  top: 50% !important;
  transform: translateY(-50%) !important;
  background: transparent !important;
  border: none !important;
  color: #94a3b8 !important;
  width: 32px; height: 32px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  border-radius: 8px;
  z-index: 1;
  transition: color 0.15s, background 0.15s;
}
.login-input-wrapper .login-pw-toggle:hover {
  color: var(--hd-blue-bright) !important;
  background: rgba(59,130,246,0.08) !important;
}
/* When password toggle is present, reserve right padding so text doesnt collide */
.login-input-wrapper input[type="password"] {
  padding-right: 48px !important;
}

/* Make input wrapper full-bleed so input width matches button width below */
.login-input-wrapper { padding: 0 !important; margin: 0 !important; }
.login-field { width: 100% !important; }
.login-field .login-input-wrapper { width: 100% !important; }
.login-input-wrapper input {
  height: 48px !important;
  padding: 0 14px 0 44px !important;
}
.login-input-wrapper input[type="password"] { padding-right: 44px !important; }
.login-input-wrapper .login-field-icon { left: 14px !important; }
