﻿.login-side {
  width: 32%;
  min-width: 340px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(160deg, #0a3196 0%, #06277a 45%, #041a55 100%);
}

.login-box {
  max-width: 450px;
}

@media (max-width: 991px) {
  .login-box {
    max-width: 420px;
  }
}

/* ---------- Background decoration ---------- */
.side-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  /* faint gym-floor grid */
  background-image:
    linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 36px 36px;
  mask-image: radial-gradient(ellipse at center, #000 40%, transparent 85%);
  -webkit-mask-image: radial-gradient(ellipse at center, #000 40%, transparent 85%);
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: .45;
}

.glow-1 {
  width: 280px;
  height: 280px;
  background: #2f6bff;
  top: -80px;
  right: -90px;
  animation: drift 12s ease-in-out infinite alternate;
}

.glow-2 {
  width: 240px;
  height: 240px;
  background: #00c2ff;
  bottom: -90px;
  left: -80px;
  opacity: .25;
  animation: drift 14s ease-in-out infinite alternate-reverse;
}

.float-icon {
  position: absolute;
  color: rgba(255, 255, 255, .07);
  animation: floaty 8s ease-in-out infinite;
}

.fi-1 { font-size: 4.5rem; top: 9%;  left: 8%;  transform: rotate(-12deg); }
.fi-2 { font-size: 3.5rem; top: 16%; right: 9%; animation-delay: -3s; }
.fi-3 { font-size: 4rem;   bottom: 13%; right: 12%; animation-delay: -5s; }

.pulse-line {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 22%;
  width: 100%;
  height: 70px;
  opacity: .18;
}

.pulse-line path {
  fill: none;
  stroke: #7fb2ff;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-dasharray: 900;
  stroke-dashoffset: 900;
  animation: pulseDraw 4s ease-in-out infinite;
}

.side-content {
  position: relative;
  z-index: 1;
  max-width: 440px;
}

.side-footer {
  z-index: 1;
}

.side-footer a {
  color: inherit;
  text-decoration: none;
}

.side-footer a:hover {
  color: #fff;
}

/* ---------- Feature cards ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.feature-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 14px 6px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  font-size: .75rem;
  color: rgba(255, 255, 255, .85);
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
  cursor: default;
  opacity: 0;
  animation: cardIn .5s ease forwards;
}

.feature-card i {
  font-size: 1.25rem;
  color: #8fbaff;
  transition: transform .25s ease, color .25s ease;
}

.feature-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, .12);
  border-color: rgba(143, 186, 255, .45);
}

.feature-card:hover i {
  transform: scale(1.15);
  color: #fff;
}

.color-red{
  color: #ff4d4d;
}

.color-green{
  color: #4dff4d !important;
}

.feature-card:nth-child(1) { animation-delay: .05s; }
.feature-card:nth-child(2) { animation-delay: .1s; }
.feature-card:nth-child(3) { animation-delay: .15s; }
.feature-card:nth-child(4) { animation-delay: .2s; }
.feature-card:nth-child(5) { animation-delay: .25s; }
.feature-card:nth-child(6) { animation-delay: .3s; }

/* ---------- Add-ons slider card ---------- */
.promo-card {
  position: relative;
  padding: 22px 20px 16px;
  border-radius: 16px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.promo-label {
  position: absolute;
  top: -10px;
  left: 50%;
  transform: translateX(-50%);
  padding: 2px 12px;
  border-radius: 20px;
  background: #2f6bff;
  font-size: .65rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.promo-slider {
  min-height: 140px;
  position: relative;
}

.promo-slide {
  display: none;
  animation: fadeIn .4s ease;
}

.promo-slide.active {
  display: block;
}

.promo-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px;
  height: 46px;
  margin-bottom: 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .12);
  font-size: 1.4rem;
}

.promo-price {
  font-size: 1.3rem;
  font-weight: 700;
  color: #8fbaff;
  margin-bottom: 4px;
}

.promo-price small {
  font-size: .75rem;
  font-weight: 400;
  color: rgba(255, 255, 255, .6);
}

.promo-progress {
  height: 3px;
  margin-top: 12px;
  border-radius: 3px;
  background: rgba(255, 255, 255, .12);
  overflow: hidden;
}

.promo-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: #8fbaff;
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .4);
  display: inline-block;
  cursor: pointer;
  transition: .3s;
}

.dot.active {
  width: 22px;
  border-radius: 20px;
  background: #fff;
}

/* ---------- Animations ---------- */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

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

@keyframes promoFill {
  from { width: 0; }
  to   { width: 100%; }
}

@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50%      { translate: 0 -12px; }
}

@keyframes drift {
  from { transform: translate(0, 0); }
  to   { transform: translate(-30px, 40px); }
}

@keyframes pulseDraw {
  0%   { stroke-dashoffset: 900; }
  60%  { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -900; }
}

@media (prefers-reduced-motion: reduce) {
  .glow, .float-icon, .pulse-line path, .feature-card, .promo-progress span {
    animation: none !important;
  }
  .feature-card { opacity: 1; }
  .pulse-line path { stroke-dashoffset: 0; }
}
