/* css/packs/f.css | Source: MonarqueXD_v95L_GUILDORIGINS.html lignes 56163-56575 (id="mx-fx-pack-f-styles") */
/* ============================================================ */
/*  PACK F — LOGIN AAA 2026 + TITRE MONARQUE 3D HORROR         */
/* ============================================================ */

/* Cache le sous-titre et le badge "Royaume en ligne" */
body.mx-on-login #lx-login-subtitle,
body.mx-on-login #login-screen .lx-badge {
  display: none !important;
}

/* === LAYOUT AAA : centrage + cadre HUD === */
body.mx-on-login #login-screen .lx-wrap {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}
body.mx-on-login #login-screen .lx-card {
  position: relative;
  background:
    linear-gradient(160deg,
      rgba(20, 12, 30, .82) 0%,
      rgba(8, 4, 16, .92) 100%) !important;
  border: 1px solid rgba(255, 60, 90, .35) !important;
  border-radius: 18px !important;
  box-shadow:
    0 0 0 1px rgba(80, 220, 255, .2),
    0 0 60px rgba(120, 0, 30, .35),
    0 0 120px rgba(60, 20, 90, .25),
    inset 0 1px 0 rgba(255, 255, 255, .06),
    inset 0 -2px 30px rgba(0, 0, 0, .6) !important;
  backdrop-filter: blur(14px) saturate(140%);
  overflow: visible !important;
  z-index: 10;
}
/* Bordure néon animée autour de la card */
body.mx-on-login #login-screen .lx-card::before {
  content: '';
  position: absolute;
  inset: -2px;
  border-radius: 20px;
  padding: 2px;
  background: linear-gradient(135deg,
    #ff3060 0%,
    #aa44ff 25%,
    #50dcff 50%,
    #ff8c1a 75%,
    #ff3060 100%);
  background-size: 300% 300%;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: mx-aaa-border 7s linear infinite;
  pointer-events: none;
  opacity: .9;
  z-index: -1;
}
@keyframes mx-aaa-border {
  0%   { background-position: 0% 50%; }
  100% { background-position: 300% 50%; }
}

/* === TITRE MONARQUE — 3D HORROR ÉPIQUE === */
body.mx-on-login #lx-login-title {
  font-family: 'Cinzel', 'UnifrakturCook', serif !important;
  font-weight: 900 !important;
  font-size: clamp(60px, 14vw, 160px) !important;
  text-transform: uppercase;
  letter-spacing: 0.06em !important;
  line-height: 0.95 !important;
  color: #ffe0b8 !important;
  background: none !important;
  -webkit-text-fill-color: #ffe0b8 !important;
  margin: 30px 0 8px !important;
  perspective: 1000px;
  transform-style: preserve-3d;
  position: relative;
  text-align: center;
  z-index: 12;
  user-select: none;
  animation: mx-monarque-3d 6s ease-in-out infinite;
  will-change: transform;
}
body.mx-on-login #lx-login-title em {
  font-style: normal !important;
  display: inline-block !important;
  color: #ffe0b8 !important;
  -webkit-text-fill-color: #ffe0b8 !important;
  text-shadow:
    0 1px 0 #6a3a00,
    0 2px 0 #5e3300,
    0 3px 0 #532c00,
    0 4px 0 #482600,
    0 5px 0 #3d2000,
    0 6px 0 #321a00,
    0 7px 0 #271400,
    0 8px 0 #1c0e00,
    0 9px 0 #110800,
    0 10px 8px rgba(0, 0, 0, .9),
    0 0 18px rgba(255, 100, 30, .6),
    0 0 38px rgba(180, 20, 30, .55),
    0 0 70px rgba(255, 0, 30, .35),
    2px 2px 0 #4a0000,
    -2px 1px 0 #4a0000 !important;
  filter:
    drop-shadow(0 0 16px rgba(255, 50, 30, .35))
    drop-shadow(0 4px 0 rgba(0, 0, 0, .5));
}
@keyframes mx-monarque-3d {
  0%, 100% {
    transform: perspective(1000px) rotateX(2deg) rotateY(0deg) scale(1);
  }
  25% {
    transform: perspective(1000px) rotateX(0deg) rotateY(-1.5deg) scale(1.01);
  }
  50% {
    transform: perspective(1000px) rotateX(-1.5deg) rotateY(0deg) scale(1.02);
  }
  75% {
    transform: perspective(1000px) rotateX(0deg) rotateY(1.5deg) scale(1.01);
  }
}
/* Filet de sang qui coule sous le titre — déjà défini en Pack D, on rafine */
body.mx-on-login #lx-login-title::before {
  z-index: 11 !important;
  width: 4px !important;
}
body.mx-on-login #lx-login-title::after {
  width: 18px !important;
  height: 18px !important;
}

/* === COURONNE SVG au-dessus du titre === */
.mx-crown-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-bottom: -10px;
  z-index: 13;
  animation: mx-crown-float 5s ease-in-out infinite;
}
.mx-crown-wrapper svg {
  width: clamp(110px, 22vw, 220px);
  height: auto;
  filter:
    drop-shadow(0 0 22px rgba(255, 200, 40, .55))
    drop-shadow(0 4px 12px rgba(0, 0, 0, .8))
    drop-shadow(0 0 38px rgba(180, 0, 30, .35));
}
@keyframes mx-crown-float {
  0%, 100% { transform: translateY(0) rotate(0); }
  50%      { transform: translateY(-6px) rotate(0.5deg); }
}
.mx-crown-wrapper .crown-gem-pulse {
  animation: mx-gem-pulse 2.4s ease-in-out infinite;
  transform-origin: center;
  transform-box: fill-box;
}
@keyframes mx-gem-pulse {
  0%, 100% { filter: brightness(1); }
  50%      { filter: brightness(1.6); }
}

/* === HUD CYBER — corners + stats === */
.mx-hud-corner {
  position: fixed;
  width: 80px; height: 80px;
  pointer-events: none;
  z-index: 7;
  opacity: .9;
}
.mx-hud-corner.tl { top: 16px;  left: 16px;  }
.mx-hud-corner.tr { top: 16px;  right: 16px; transform: scaleX(-1); }
.mx-hud-corner.bl { bottom: 16px; left: 16px; transform: scaleY(-1); }
.mx-hud-corner.br { bottom: 16px; right: 16px; transform: scale(-1, -1); }
.mx-hud-corner svg {
  width: 100%; height: 100%;
  filter: drop-shadow(0 0 8px rgba(80, 220, 255, .5)) drop-shadow(0 0 14px rgba(255, 30, 90, .4));
}

.mx-hud-stat {
  position: fixed;
  z-index: 7;
  pointer-events: none;
  font-family: 'Rajdhani', 'Orbitron', monospace;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: #80e8ff;
  text-shadow: 0 0 8px rgba(80, 220, 255, .55), 0 1px 2px rgba(0, 0, 0, .9);
  padding: 4px 10px;
  background: linear-gradient(90deg, rgba(20, 30, 60, .55) 0%, transparent 100%);
  border-left: 2px solid #50dcff;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.mx-hud-stat.top-left   { top: 16px; left: 110px; }
.mx-hud-stat.top-right  { top: 16px; right: 110px; text-align: right; align-items: flex-end; border-left: 0; border-right: 2px solid #ff3060; background: linear-gradient(-90deg, rgba(60, 10, 30, .55) 0%, transparent 100%); color: #ff80a0; text-shadow: 0 0 8px rgba(255, 60, 90, .55), 0 1px 2px rgba(0, 0, 0, .9); }
.mx-hud-stat.bot-left   { bottom: 16px; left: 110px; }
.mx-hud-stat.bot-right  { bottom: 16px; right: 110px; text-align: right; align-items: flex-end; border-left: 0; border-right: 2px solid #ff3060; background: linear-gradient(-90deg, rgba(60, 10, 30, .55) 0%, transparent 100%); color: #ff80a0; text-shadow: 0 0 8px rgba(255, 60, 90, .55), 0 1px 2px rgba(0, 0, 0, .9); }

.mx-hud-stat .label  { font-size: 9px; opacity: .65; letter-spacing: 1.5px; }
.mx-hud-stat .value  { font-size: 13px; font-weight: 900; }
.mx-hud-stat .pulse  {
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: #50ff80;
  box-shadow: 0 0 8px #50ff80, 0 0 14px #50ff80;
  animation: mx-stat-pulse 1.4s ease-in-out infinite;
  margin-right: 6px;
  vertical-align: middle;
}
@keyframes mx-stat-pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50%      { opacity: .5; transform: scale(.7); }
}

/* News ticker bottom-center */
.mx-news-ticker {
  position: fixed;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 7;
  pointer-events: none;
  font-family: 'Rajdhani', 'Orbitron', monospace;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1.5px;
  color: #ffe0b8;
  text-shadow: 0 0 6px rgba(255, 200, 40, .55), 0 1px 2px #000;
  padding: 6px 18px;
  background: linear-gradient(90deg,
    transparent 0%,
    rgba(40, 20, 10, .8) 20%,
    rgba(40, 20, 10, .8) 80%,
    transparent 100%);
  border-top: 1px solid rgba(255, 200, 40, .35);
  border-bottom: 1px solid rgba(255, 200, 40, .35);
  max-width: 60vw;
  overflow: hidden;
  white-space: nowrap;
}
.mx-news-ticker .icon {
  margin-right: 8px;
  color: #ff3060;
  text-shadow: 0 0 6px #ff3060;
}

/* === INPUTS cyber 2026 === */
body.mx-on-login #login-screen .lx-input {
  background: rgba(8, 4, 16, .7) !important;
  border: 1px solid rgba(80, 220, 255, .3) !important;
  border-radius: 8px !important;
  color: #ffe0b8 !important;
  padding: 12px 14px !important;
  font-family: 'Rajdhani', 'Orbitron', monospace !important;
  font-size: 14px !important;
  letter-spacing: 1px;
  transition: all .25s ease;
  box-shadow: inset 0 1px 4px rgba(0, 0, 0, .6), 0 0 0 0 transparent;
}
body.mx-on-login #login-screen .lx-input:focus {
  outline: none !important;
  border-color: #50dcff !important;
  box-shadow:
    inset 0 1px 4px rgba(0, 0, 0, .6),
    0 0 0 1px #50dcff,
    0 0 18px rgba(80, 220, 255, .4) !important;
}
body.mx-on-login #login-screen .lx-input::placeholder {
  color: rgba(255, 224, 184, .4) !important;
  letter-spacing: 1.2px;
}
body.mx-on-login #login-screen .lx-label {
  font-family: 'Rajdhani', 'Orbitron', monospace !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 2.5px !important;
  text-transform: uppercase !important;
  color: #ff80a0 !important;
  text-shadow: 0 0 6px rgba(255, 60, 90, .3);
  margin-bottom: 6px !important;
}

/* === BOUTONS principaux === */
body.mx-on-login #login-screen .lx-btn-primary {
  position: relative;
  background: linear-gradient(135deg, #ff3060 0%, #aa44ff 50%, #50dcff 100%) !important;
  color: #fff !important;
  font-family: 'Rajdhani', 'Orbitron', sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: 3px !important;
  text-transform: uppercase !important;
  border: 0 !important;
  border-radius: 10px !important;
  padding: 14px 24px !important;
  clip-path: polygon(6% 0, 100% 0, 100% 75%, 94% 100%, 0 100%, 0 25%);
  text-shadow: 0 0 10px rgba(255, 255, 255, .55), 0 1px 2px #000 !important;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .25),
    0 6px 24px rgba(255, 30, 90, .4),
    0 0 36px rgba(170, 80, 255, .35),
    inset 0 1px 0 rgba(255, 255, 255, .35) !important;
  transition: transform .15s ease, box-shadow .25s ease;
  overflow: hidden;
}
body.mx-on-login #login-screen .lx-btn-primary::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, transparent 30%, rgba(255, 255, 255, .55) 50%, transparent 70%);
  transform: translateX(-110%);
  animation: mx-btn-shine-aaa 3s ease-in-out infinite;
  pointer-events: none;
}
@keyframes mx-btn-shine-aaa {
  0%, 100% { transform: translateX(-110%); }
  55%      { transform: translateX(110%); }
}
body.mx-on-login #login-screen .lx-btn-primary:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, .35),
    0 10px 32px rgba(255, 30, 90, .55),
    0 0 50px rgba(170, 80, 255, .5),
    inset 0 1px 0 rgba(255, 255, 255, .4) !important;
}
body.mx-on-login #login-screen .lx-btn-primary:active {
  transform: translateY(0) scale(.98);
}

body.mx-on-login #login-screen .lx-btn-secondary {
  background: rgba(8, 4, 16, .7) !important;
  color: #80e8ff !important;
  font-family: 'Rajdhani', 'Orbitron', sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: 3px !important;
  text-transform: uppercase !important;
  border: 1px solid rgba(80, 220, 255, .45) !important;
  border-radius: 8px !important;
  padding: 12px 20px !important;
  text-shadow: 0 0 8px rgba(80, 220, 255, .55);
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .5), 0 0 14px rgba(80, 220, 255, .2);
  transition: all .2s ease;
}
body.mx-on-login #login-screen .lx-btn-secondary:hover {
  background: rgba(20, 50, 80, .7) !important;
  box-shadow: inset 0 1px 3px rgba(0, 0, 0, .5), 0 0 24px rgba(80, 220, 255, .55);
}

body.mx-on-login #login-screen .lx-link {
  color: #ff80a0 !important;
  font-family: 'Rajdhani', 'Orbitron', monospace !important;
  font-size: 11px !important;
  letter-spacing: 1.5px !important;
  text-transform: uppercase;
}

/* Ornament séparateur cyber */
body.mx-on-login #login-screen .lx-ornament {
  margin: 18px 0 12px !important;
}
body.mx-on-login #login-screen .lx-ornament .lx-line {
  background: linear-gradient(90deg, transparent, rgba(80, 220, 255, .5), transparent) !important;
  height: 1px !important;
}
body.mx-on-login #login-screen .lx-ornament .lx-diamond {
  color: #50dcff !important;
  text-shadow: 0 0 10px rgba(80, 220, 255, .8) !important;
}
body.mx-on-login #login-screen .lx-ornament-label {
  color: #80e8ff !important;
  font-family: 'Rajdhani', 'Orbitron', monospace !important;
  font-size: 11px !important;
  letter-spacing: 3px !important;
  text-transform: uppercase !important;
  text-shadow: 0 0 6px rgba(80, 220, 255, .55);
}

/* === Reduced motion override === */
@media (prefers-reduced-motion: reduce) {
  body.mx-on-login #login-screen .lx-card::before,
  body.mx-on-login #lx-login-title,
  .mx-crown-wrapper, .mx-crown-wrapper .crown-gem-pulse,
  .mx-hud-stat .pulse,
  body.mx-on-login #login-screen .lx-btn-primary::after {
    animation: none !important;
  }
}

/* Mobile : ajuste les HUD pour pas chevaucher */
@media (max-width: 600px) {
  .mx-hud-corner { width: 56px; height: 56px; }
  .mx-hud-stat { font-size: 9px; padding: 3px 7px; }
  .mx-hud-stat.top-left,
  .mx-hud-stat.bot-left   { left: 78px; }
  .mx-hud-stat.top-right,
  .mx-hud-stat.bot-right  { right: 78px; }
  .mx-hud-stat .label  { font-size: 8px; }
  .mx-hud-stat .value  { font-size: 11px; }
  .mx-news-ticker { font-size: 10px; max-width: 90vw; padding: 4px 12px; }
  body.mx-on-login #lx-login-title {
    font-size: clamp(50px, 16vw, 110px) !important;
  }
  .mx-crown-wrapper svg { width: clamp(80px, 30vw, 140px); }
}
