/* ==========================================
   Authentication Page Custom Styles
   ========================================== */

/* ---- Override any background image from other CSS files ---- */
.auth-bg {
  background-image: none !important;
}

.right-side .auth-bg {
  background-image: none !important;
  background: transparent !important;
}

body .auth-page .right-side .auth-bg {
  background-image: none !important;
  background: transparent !important;
}

.auth-bg[style*="background-image"] {
  background-image: none !important;
}

/* ---- Body / Page Background ---- */
body {
  background: #ffffff;
  font-family:
    "Inter",
    -apple-system,
    BlinkMacSystemFont,
    sans-serif;
}

/* ---- Right Side Panel (Dark Minimal Theme) ---- */
.auth-page {
  height: 100vh;
  overflow: hidden;
}

.auth-page .row {
  height: 100vh;
}

.auth-full-page-content {
  height: 100vh;
  overflow-y: auto;
}

.right-side {
  background: linear-gradient(160deg, #09021a 0%, #1a0b2e 100%);
  position: relative;
  overflow: hidden;
  height: 100vh;
}

/* ---- Content Inside Right Panel ---- */
.perex {
  padding: 24px;
  font-size: 14px;
  color: #fff;
  text-align: center;
}

body .right-side h2 {
  font-size: 56px;
  line-height: 68px;
  font-weight: 800;
  letter-spacing: -1px;
  font-family: "Inter", sans-serif;
}

body .right-side .promo-subtitle {
  font-size: 17px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
  max-width: 480px;
  margin: 0 auto;
  font-family: "Inter", sans-serif;
}

body .right-side .promo-trust {
  font-size: 15px;
  color: rgba(255, 255, 255, 0.7);
  margin-top: 8px;
  font-family: "Inter", sans-serif;
}

.with-make {
  margin-bottom: 2rem;
  background: linear-gradient(to right, #e91e92, #a414a1);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-family: "Inter", sans-serif;
  display: inline-block;
}

body .auth-bg {
  flex-direction: column;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 5;
}

/* ---- Right Panel Logo ---- */
.right-panel-logo {
  position: absolute;
  top: 30px;
  right: 30px;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.right-panel-logo img {
  height: 48px; /* Slightly larger for native white logo */
  opacity: 0.95;
  background: transparent;
}

/* ---- Animated Background Elements ---- */
.background {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.element {
  position: absolute;
  border-radius: 8px;
  opacity: 0.15;
  animation: float 20s infinite;
}

.cube {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(4px);
  box-shadow: 0 0 20px rgba(233, 30, 146, 0.3);
  z-index: 2;
}

.bubble {
  border-radius: 100%;
  background: radial-gradient(
    circle at 30% 30%,
    rgba(233, 30, 146, 0.25),
    rgba(147, 51, 234, 0.15)
  );
  box-shadow: 0 0 30px rgba(233, 30, 146, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.05); /* Slight rim to increase visibility */
  z-index: 2;
}

@keyframes float {
  0% {
    transform: translate(0, 0) scale(1) rotate(0deg);
    opacity: 0.15;
  }
  25% {
    transform: translate(25vw, -25vh) scale(1.1) rotate(45deg);
    opacity: 0.2;
  }
  50% {
    transform: translate(50vw, -50vh) scale(1.2) rotate(90deg);
    opacity: 0.1;
  }
  75% {
    transform: translate(25vw, -75vh) scale(1.05) rotate(135deg);
    opacity: 0.18;
  }
  100% {
    transform: translate(-50vw, -100vh) scale(1) rotate(180deg);
    opacity: 0;
  }
}

/* Minimal floating glow orbs */
.glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.6;
  mix-blend-mode: screen;
  animation: float-glow 15s infinite alternate ease-in-out;
}

.glow-orb-1 {
  width: 400px;
  height: 400px;
  background: rgba(233, 30, 146, 0.35);
  top: -5%;
  right: 5%;
  animation-delay: 0s;
}

.glow-orb-2 {
  width: 350px;
  height: 350px;
  background: rgba(147, 51, 234, 0.35);
  bottom: -10%;
  left: -5%;
  animation-delay: 5s;
}

.glow-orb-3 {
  width: 300px;
  height: 300px;
  background: rgba(233, 30, 146, 0.25);
  top: 40%;
  left: 30%;
  animation-delay: 2s;
}

@keyframes float-glow {
  0% {
    transform: translate(0, 0) scale(1);
  }
  50% {
    transform: translate(-30px, 40px) scale(1.1);
  }
  100% {
    transform: translate(40px, -20px) scale(0.9);
  }
}

/* ---- Social button overrides for login page ---- */
.btn-social {
  color: #fff;
  padding: 10px 15px;
}

.btn-google {
  background-color: #dd4b39;
}
.btn-facebook {
  background-color: #3b5998;
}
.btn-twitter {
  background-color: #55acee;
}

.divider-text {
  position: relative;
  text-align: center;
  margin-top: 15px;
  margin-bottom: 15px;
}

.divider-text span {
  padding: 7px;
  font-size: 12px;
  position: relative;
  z-index: 2;
}

.divider-text:after {
  content: "";
  position: absolute;
  width: 100%;
  border-bottom: 1px solid #ddd;
  top: 55%;
  left: 0;
  z-index: 1;
}

/* ---- Override base button styles ONLY for non-login areas ---- */
.auth-page .btn {
  width: 100%;
  text-align: center;
  padding-top: 0;
  padding-bottom: 0;
  font-size: 14px;
  font-weight: bold;
  display: flex;
  align-items: center;
  height: 55px;
  line-height: 55px;
  justify-content: center;
  border-radius: 10px;
  border: 1px solid transparent;
}

/* Match Primary Button color to Theme Gradient */
body .auth-page .btn-primary {
  background: linear-gradient(to right, rgb(173, 123, 187), #8e2de2) !important;
  border: none !important;
  color: white !important;
}
body .auth-page .btn-primary:hover {
  background: linear-gradient(to right, #8e2de2, rgb(173, 123, 187)) !important;
}

.btn-facebook {
  background-color: #4267b2;
  color: #fff;
  border-color: #4267b2;
}

.btn-facebook:hover {
  color: #fff;
  background-color: #2d477a;
}

.btn-google {
  background: #fff;
  border-color: #d4d4d3;
  color: black;
}

.btn-google:hover {
  background-color: #f2f2f2;
}

/* ---- Responsive adjustments for right panel ---- */
@media (max-width: 767px) {
  .right-side {
    display: none !important;
  }
}

@media (min-width: 768px) and (max-width: 991px) {
  body .right-side h2 {
    font-size: 36px;
    line-height: 44px;
  }
}
