/* Login portal: game-styled access screen without changing authentication behavior. */
.sgl-login-page {
  grid-template-columns: minmax(520px, 44%) minmax(0, 56%);
  background: #03142e;
}

.sgl-login-side {
  padding: 54px 48px !important;
  background:
    radial-gradient(circle at 15% 15%, rgba(44, 208, 255, .2), transparent 25%),
    radial-gradient(circle at 88% 84%, rgba(105, 71, 255, .2), transparent 28%),
    linear-gradient(rgba(48, 164, 255, .055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(48, 164, 255, .055) 1px, transparent 1px),
    linear-gradient(145deg, #082c5e, #03142e 65%, #061c3d) !important;
  background-size: auto, auto, 28px 28px, 28px 28px, auto !important;
}

.sgl-login-side::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle, #7eeaff 0 2px, transparent 3px) 8% 18% / 150px 150px,
    radial-gradient(circle, #ffe46d 0 1px, transparent 2px) 35% 8% / 190px 190px;
  opacity: .5;
  animation: sglLoginStars 8s linear infinite alternate;
}

.sgl-login-content {
  box-sizing: border-box;
  width: min(100%, 540px) !important;
  padding: 47px 42px 35px;
  border: 2px solid #3daeff;
  border-radius: 32px;
  color: #fff;
  background:
    radial-gradient(circle at 85% 0, rgba(55, 215, 255, .18), transparent 30%),
    linear-gradient(155deg, rgba(11, 52, 104, .98), rgba(3, 22, 49, .99));
  box-shadow:
    inset 0 2px rgba(255, 255, 255, .22),
    inset 0 0 0 6px rgba(3, 20, 46, .74),
    0 10px 0 #011126,
    0 18px 0 #2c7fbc,
    0 35px 75px rgba(0, 6, 24, .55),
    0 0 40px rgba(35, 177, 255, .22);
  animation: sglLoginPanelFloat 5s ease-in-out infinite;
}

.sgl-login-content::before {
  content: "ACCESO A LA MISIÓN";
  position: absolute;
  top: -20px;
  left: 50%;
  translate: -50% 0;
  min-width: 230px;
  padding: 10px 24px;
  border: 2px solid #fff2a5;
  border-radius: 999px;
  color: #3d2400;
  background: linear-gradient(180deg, #fff27a, #ffb714 72%, #cf7300);
  box-shadow: inset 0 2px #fffbd0, 0 5px 0 #874600, 0 0 25px rgba(255, 207, 44, .52);
  text-align: center;
  font-size: 12px;
  font-weight: 1000;
  letter-spacing: .14em;
  text-shadow: 0 1px rgba(255, 255, 255, .5);
}

.sgl-login-content::after {
  content: "★";
  position: absolute;
  top: -31px;
  left: calc(50% - 8px);
  color: #fff9bd;
  font-size: 16px;
  text-shadow: -126px 22px #49dfff, 126px 22px #49dfff, 0 0 14px #fff;
}

.sgl-login-logo {
  justify-content: center;
  gap: 16px !important;
  text-align: left;
}

.sgl-login-logo > i {
  width: 78px;
  height: 78px;
  display: grid;
  place-items: center;
  border: 3px solid #fff2a0;
  border-radius: 24px;
  background: linear-gradient(145deg, #21dcff, #0879f5 55%, #163b9e) !important;
  -webkit-background-clip: border-box !important;
  color: #fff !important;
  box-shadow: inset 0 2px rgba(255, 255, 255, .55), 0 6px 0 #041a43, 0 0 22px rgba(40, 208, 255, .55);
  font-size: 35px !important;
  text-shadow: 0 3px #07317b;
}

.sgl-login-logo strong,
.sgl-login-logo b {
  color: #fff !important;
  font-size: clamp(29px, 2.25vw, 39px) !important;
  text-shadow: 0 3px 0 #00132d, 0 0 14px rgba(68, 197, 255, .22);
}

.sgl-login-logo b {
  color: #5be3ff !important;
}

.sgl-gold-line {
  width: 100% !important;
  height: 7px !important;
  margin: 25px 0 20px !important;
  border: 1px solid #0f6db4;
  border-radius: 999px;
  background: #02142e !important;
  box-shadow: inset 0 2px 4px #000, 0 1px rgba(106, 222, 255, .35);
}

.sgl-gold-line::before {
  content: "";
  display: block;
  width: 68%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #24dfff, #1688ff, #8b5cff);
  box-shadow: 0 0 16px #27cfff;
}

.sgl-login-subtitle {
  margin: 0 0 26px !important;
  color: #c5def4 !important;
  text-align: center;
  font-size: 16px !important;
}

#sgl-login-form {
  position: relative;
  padding-top: 27px;
  border-top: 1px solid rgba(111, 203, 255, .22);
}

#sgl-login-form::before {
  content: "IDENTIFICA A TU JUGADOR";
  position: absolute;
  top: 8px;
  left: 0;
  color: #55dcff;
  font-size: 9px;
  font-weight: 900;
  letter-spacing: .16em;
}

.sgl-login-content > form > label {
  margin: 16px 0 8px !important;
  color: #d8ebff;
  font-size: 12px !important;
  letter-spacing: .025em;
}

.sgl-login-field {
  position: relative;
  min-height: 58px !important;
  border: 2px solid #2d6da7 !important;
  border-radius: 16px !important;
  background: linear-gradient(180deg, rgba(2, 16, 39, .9), rgba(8, 35, 73, .95));
  box-shadow: inset 0 4px 8px rgba(0, 0, 0, .45), 0 3px 0 #011125;
  transition: border-color .2s, box-shadow .2s, transform .2s;
}

.sgl-login-field:focus-within {
  border-color: #45e2ff !important;
  box-shadow: inset 0 4px 8px rgba(0, 0, 0, .45), 0 3px 0 #05234b, 0 0 19px rgba(50, 215, 255, .45);
  transform: translateY(-1px);
}

.sgl-login-field > i {
  width: 31px;
  height: 31px;
  display: grid;
  place-items: center;
  border-radius: 10px;
  color: #fff !important;
  background: linear-gradient(#2bcfff, #0874ee);
  box-shadow: 0 3px 0 #034282;
  font-size: 14px !important;
}

.sgl-login-field input {
  color: #fff !important;
  background: transparent !important;
  caret-color: #54eaff;
}

.sgl-login-field input::placeholder {
  color: #7695b7;
}

.sgl-login-field input:-webkit-autofill,
.sgl-login-field input:-webkit-autofill:hover,
.sgl-login-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #fff;
  -webkit-box-shadow: 0 0 0 1000px #071e40 inset;
  transition: background-color 9999s ease-in-out 0s;
}

.sgl-login-field button {
  color: #77dfff !important;
}

.sgl-remember {
  align-items: center;
  margin-top: 16px !important;
  color: #a9c4df !important;
}

.sgl-remember input {
  width: 18px;
  height: 18px;
  accent-color: #1bcfff;
}

.sgl-login-submit {
  position: relative;
  min-height: 62px !important;
  margin-top: 12px !important;
  border: 2px solid #b9f7ff !important;
  border-radius: 17px !important;
  background: linear-gradient(180deg, #35d9ff, #0875f2 58%, #064bbb) !important;
  box-shadow: inset 0 2px rgba(255, 255, 255, .55), 0 7px 0 #032b72, 0 12px 25px rgba(0, 12, 45, .5) !important;
  text-transform: uppercase;
  letter-spacing: .08em;
  text-shadow: 0 2px #063178;
  animation: sglLoginButtonGlow 2.2s ease-in-out infinite;
}

.sgl-login-submit::before {
  content: "▶";
  display: inline-grid;
  place-items: center;
  width: 29px;
  height: 29px;
  margin-right: 10px;
  border-radius: 50%;
  color: #0754be;
  background: #fff;
  text-shadow: none;
}

.sgl-login-submit:hover {
  filter: brightness(1.12);
  transform: translateY(-2px);
}

.sgl-login-submit:active {
  transform: translateY(5px);
  box-shadow: inset 0 2px rgba(255, 255, 255, .4), 0 2px 0 #032b72 !important;
}

.sgl-forgot {
  margin-top: 21px !important;
  color: #72ddff !important;
  font-weight: 700;
}

.sgl-forgot:hover {
  color: #fff !important;
}

.sgl-login-error {
  border: 2px solid #ff777d !important;
  border-radius: 14px !important;
  color: #ffe8e8 !important;
  background: rgba(137, 24, 40, .75) !important;
  box-shadow: 0 5px 0 #4b0915;
}

.sgl-login-waves {
  opacity: .32;
  filter: hue-rotate(18deg) saturate(1.8);
}

.sgl-login-hero {
  border-left: 3px solid #25caff;
  box-shadow: inset 18px 0 35px rgba(0, 0, 0, .42);
  overflow: hidden;
}

.sgl-login-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, rgba(2, 10, 31, .24), transparent 45%), repeating-linear-gradient(0deg, transparent 0 39px, rgba(75, 211, 255, .045) 40px);
  pointer-events: none;
}

.sgl-login-hero::after {
  content: "NUEVOS LEADS  •  MAYOR NIVEL  •  MÁS VENTAS";
  position: absolute;
  top: 34px;
  right: 4%;
  padding: 10px 18px;
  border: 1px solid rgba(99, 226, 255, .6);
  border-radius: 999px;
  color: #8aebff;
  background: rgba(3, 28, 61, .8);
  box-shadow: 0 0 22px rgba(33, 200, 255, .18);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .14em;
  backdrop-filter: blur(8px);
}

.sgl-hero-callout {
  border: 2px solid #37cfff !important;
  border-radius: 21px !important;
  background: linear-gradient(145deg, rgba(10, 57, 111, .94), rgba(3, 26, 59, .96)) !important;
  box-shadow: inset 0 2px rgba(255, 255, 255, .18), 0 7px 0 #01152f, 0 0 25px rgba(45, 205, 255, .22);
  animation: sglHeroCalloutFloat 3.6s ease-in-out infinite;
}

.sgl-hero-callout > i:first-child {
  border: 2px solid #fff3a0;
  background: linear-gradient(#ffd943, #ef8c00) !important;
  box-shadow: 0 4px 0 #834600, 0 0 18px rgba(255, 197, 30, .42) !important;
}

@keyframes sglLoginPanelFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}

@keyframes sglLoginButtonGlow {
  0%, 100% { filter: brightness(1); }
  50% { filter: brightness(1.1) drop-shadow(0 0 9px rgba(55, 218, 255, .42)); }
}

@keyframes sglLoginStars {
  to { transform: translate3d(12px, -10px, 0); opacity: .8; }
}

@keyframes sglHeroCalloutFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-9px); }
}

@media (max-width: 1100px) {
  .sgl-login-page {
    grid-template-columns: minmax(480px, 49%) minmax(0, 51%);
  }

  .sgl-login-side {
    padding: 48px 30px !important;
  }

  .sgl-login-content {
    padding-inline: 30px;
  }
}

@media (max-width: 900px) {
  .sgl-login-page {
    display: grid;
    grid-template-columns: 1fr;
  }

  .sgl-login-side {
    min-height: 100vh;
    padding: 56px 22px !important;
  }
}

@media (max-width: 560px) {
  .sgl-login-side {
    padding: 46px 14px 36px !important;
  }

  .sgl-login-content {
    padding: 43px 20px 29px;
    border-radius: 25px;
  }

  .sgl-login-content::before {
    min-width: 195px;
    padding-inline: 15px;
    font-size: 10px;
  }

  .sgl-login-logo {
    gap: 11px !important;
  }

  .sgl-login-logo > i {
    width: 60px;
    height: 60px;
    border-radius: 18px;
    font-size: 27px !important;
  }

  .sgl-login-logo strong,
  .sgl-login-logo b {
    font-size: clamp(24px, 8vw, 31px) !important;
  }
}

.sgl-no-animations .sgl-login-content,
.sgl-no-animations .sgl-login-side::before,
.sgl-no-animations .sgl-login-submit,
.sgl-no-animations .sgl-hero-callout {
  animation: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .sgl-login-content,
  .sgl-login-side::before,
  .sgl-login-submit,
  .sgl-hero-callout {
    animation: none !important;
  }
}
