body.login-page {
  min-height: 100vh;
  background: url("../images/login.png") center/cover no-repeat fixed;
  position: relative;
  overflow: hidden;
  margin: 0;
  padding: 0;
}

/* Prevent horizontal scroll on small screens */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Dark overlay
        body.login-page::before {
            content: '';
            position: absolute;
            inset: 0;
            background: linear-gradient(135deg, rgba(10, 14, 20, 0.92) 0%, rgba(26, 29, 36, 0.88) 50%, rgba(35, 39, 47, 0.9) 100%);
            z-index: 0;
        } */

/* Animated background particles */
body.login-page::after {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(
      circle at 20% 30%,
      rgba(229, 9, 20, 0.08) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 80% 70%,
      rgba(229, 9, 20, 0.06) 0%,
      transparent 40%
    ),
    radial-gradient(
      circle at 50% 50%,
      rgba(229, 9, 20, 0.04) 0%,
      transparent 50%
    );
  animation: floatParticles 25s ease-in-out infinite;
  z-index: 0;
}

@keyframes floatParticles {
  0%,
  100% {
    transform: translate(0, 0) rotate(0deg);
  }

  33% {
    transform: translate(30px, -30px) rotate(120deg);
  }

  66% {
    transform: translate(-20px, 20px) rotate(240deg);
  }
}

.login-container {
  min-height: 100vh;
  display: flex;
  align-items: center;
  position: relative;
  z-index: 1;
  flex-direction: row;
}

/* Left Side - Login Form */
.login-section {
  flex: 0 0 42%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
}

.login-card {
  width: 100%;
  max-width: 480px;
  background: rgba(14, 14, 14, 0.75);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(229, 9, 20, 0.2);
  border-radius: 32px;
  padding: 2.5rem;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.6),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  position: relative;
  margin: auto 0;
}

/* Glowing border effect */
.login-card::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    135deg,
    rgba(229, 9, 20, 0.35) 0%,
    rgba(229, 9, 20, 0.25) 50%,
    rgba(229, 9, 20, 0.35) 100%
  );
  border-radius: 32px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.login-card:hover::before {
  opacity: 0.6;
}

.logo-wrapper {
  text-align: center;
  margin-bottom: 2rem;
}

.logo-wrapper img {
  width: 70px;
  height: 70px;
  margin-bottom: 1rem;
  filter: drop-shadow(0 0 20px rgba(229, 9, 20, 0.45));
}

.brand-title {
  font-size: 1.75rem;
  font-weight: 700;
  background: linear-gradient(135deg, #ff4d4f 0%, #e50914 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin-bottom: 0.5rem;
}

.brand-subtitle {
  font-size: 0.95rem;
  color: #8b92a6;
  margin-bottom: 2rem;
}

.welcome-section {
  text-align: center;
  margin-bottom: 2rem;
}

.welcome-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #e8eaed;
  margin-bottom: 0.5rem;
}

.welcome-subtitle {
  font-size: 0.9rem;
  color: #8b92a6;
}

.form-label-text {
  font-size: 0.85rem;
  font-weight: 600;
  color: #b4b8c5;
  margin-bottom: 0.5rem;
  display: block;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.form-control {
  background: rgba(10, 10, 10, 0.6);
  border: 1px solid rgba(229, 9, 20, 0.2);
  border-radius: 14px;
  color: #e8eaed;
  padding: 0.875rem 1.125rem;
  font-size: 0.95rem;
  transition: all 0.3s ease;
}

.form-control:focus {
  background: rgba(15, 15, 15, 0.85);
  border-color: #e50914;
  color: #e8eaed;
  box-shadow: 0 0 0 4px rgba(229, 9, 20, 0.18), 0 0 20px rgba(229, 9, 20, 0.25);
  outline: none;
  transform: translateY(-1px);
}

.form-control::placeholder {
  color: #5a5f6f;
}

.form-group {
  margin-bottom: 1.25rem;
}

.btn-login {
  width: 100%;
  padding: 1rem;
  background: linear-gradient(135deg, #ff4d4f 0%, #e50914 100%);
  border: none;
  border-radius: 14px;
  color: white;
  font-weight: 600;
  font-size: 1rem;
  transition: all 0.3s ease;
  margin-top: 1.5rem;
  box-shadow: 0 8px 20px rgba(229, 9, 20, 0.35);
  position: relative;
  overflow: hidden;
}

.btn-login::before {
  content: "";
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    90deg,
    transparent,
    rgba(255, 255, 255, 0.2),
    transparent
  );
  transition: left 0.5s;
}

.btn-login:hover::before {
  left: 100%;
}

.btn-login:hover {
  background: linear-gradient(135deg, #ff5b6a 0%, #e50914 100%);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(229, 9, 20, 0.45);
}

.toggle-auth {
  text-align: center;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  color: #8b92a6;
}

.toggle-auth button {
  background: none;
  border: none;
  color: #e50914;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
  margin-left: 0.5rem;
  text-decoration: none;
  transition: color 0.3s ease;
}

.toggle-auth button:hover {
  color: #ff6b72;
}

.alert-danger {
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  border-radius: 12px;
  padding: 0.875rem;
  margin-top: 1rem;
}

/* Right Side - Feature Showcase */
.feature-section {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 2rem;
  position: relative;
}

.feature-showcase {
  width: 100%;
  max-width: 580px;
  min-height: auto;
  max-height: calc(100vh - 6rem);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(14, 14, 14, 0.65);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(229, 9, 20, 0.2);
  border-radius: 32px;
  padding: 2rem 2rem;
  box-shadow: 0 25px 80px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.05);
  margin: auto 0;
}

/* Glowing border effect for feature showcase */
.feature-showcase::before {
  content: "";
  position: absolute;
  inset: -2px;
  background: linear-gradient(
    135deg,
    rgba(229, 9, 20, 0.35) 0%,
    rgba(229, 9, 20, 0.25) 50%,
    rgba(229, 9, 20, 0.35) 100%
  );
  border-radius: 32px;
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.feature-showcase:hover::before {
  opacity: 0.5;
}

.feature-slide {
  display: none;
  text-align: center;
  animation: slideIn 0.6s cubic-bezier(0.4, 0, 0.2, 1);
  width: 100%;
}

.feature-slide.active {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

@keyframes slideIn {
  from {
    opacity: 0;
    transform: translateX(30px) scale(0.95);
  }

  to {
    opacity: 1;
    transform: translateX(0) scale(1);
  }
}

.feature-visual {
  width: 110px;
  height: 110px;
  margin: 0 auto 1.75rem;
  background: linear-gradient(
    135deg,
    rgba(229, 9, 20, 0.18) 0%,
    rgba(229, 9, 20, 0.12) 100%
  );
  border: 3px solid rgba(229, 9, 20, 0.35);
  border-radius: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  box-shadow: 0 15px 40px rgba(229, 9, 20, 0.25);
  flex-shrink: 0;
}

.feature-visual::before {
  content: "";
  position: absolute;
  inset: -20px;
  background: radial-gradient(
    circle,
    rgba(229, 9, 20, 0.18) 0%,
    transparent 70%
  );
  border-radius: 50%;
  animation: pulse 3s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.5;
  }

  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

.feature-visual i {
  font-size: 3rem;
  background: linear-gradient(135deg, #ff4d4f 0%, #e50914 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative;
  z-index: 1;
}

.feature-title { font-size: 2rem; font-weight: 800; color: #e8eaed; margin: 0 0 1rem 0; line-height: 1.2; }

.feature-description { font-size: 1rem; color: #b4b8c5; line-height: 1.65; margin: 0 0 1.25rem 0; max-width: 95%; }

/* Single feature card content */
.feature-title .accent { color: #e50914; }
.feature-bullets { list-style: none; padding: 0; margin: 0 0 1rem 0; display: grid; gap: 1rem; width: 100%; }
.feature-bullet { display: grid; grid-template-columns: 48px 1fr; align-items: center; gap: 1rem; padding: 1rem 1.1rem; border-radius: 16px; background: rgba(229,9,20,0.06); border: 1px solid rgba(229,9,20,0.18); }
.bullet-icon { width: 48px; height: 48px; border-radius: 12px; display: flex; align-items: center; justify-content: center; background: linear-gradient(135deg, #ff4d4f 0%, #e50914 100%); color: #fff; box-shadow: 0 8px 22px rgba(229,9,20,.35); }
.bullet-icon i { font-size: 1.35rem; }
.bullet-title { font-weight: 800; color: #e8eaed; margin: 0 0 .15rem 0; }
.bullet-desc { color: #b4b8c5; margin: 0; }

.feature-metrics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; width: 100%; margin: 1rem 0 1.25rem 0; }
.metric { text-align: left; }
.metric-number { color: #e50914; font-weight: 900; font-size: 1.6rem; letter-spacing: .5px; }
.metric-label { color: #b0b5bf; }

.carousel-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1.75rem;
  margin: 1.75rem 0 1.5rem 0;
  width: 100%;
}

.nav-arrow {
  width: 46px;
  height: 46px;
  background: rgba(229, 9, 20, 0.12);
  border: 1px solid rgba(229, 9, 20, 0.35);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s ease;
  color: #e50914;
  flex-shrink: 0;
}

.nav-arrow:hover {
  background: rgba(229, 9, 20, 0.25);
  border-color: #e50914;
  transform: scale(1.1);
  box-shadow: 0 5px 15px rgba(229, 9, 20, 0.35);
}

.carousel-dots {
  display: flex;
  gap: 0.75rem;
  justify-content: center;
}

.dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(229, 9, 20, 0.25);
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.dot.active {
  background: linear-gradient(135deg, #ff4d4f 0%, #e50914 100%);
  width: 40px;
  border-radius: 8px;
  box-shadow: 0 0 15px rgba(229, 9, 20, 0.5);
}

.cta-section {
  text-align: center;
  margin-top: 1.25rem;
  width: 100%;
}

.cta-title {
  font-size: 0.75rem;
  font-weight: 700;
  color: #b0b5bf;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 0.875rem;
}

.cta-button {
  padding: 0.875rem 2.5rem;
  background: linear-gradient(135deg, #ff4d4f 0%, #e50914 100%);
  border: none;
  border-radius: 14px;
  color: white;
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 10px 30px rgba(229, 9, 20, 0.4);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.cta-button:hover {
  background: linear-gradient(135deg, #ff5b6a 0%, #e50914 100%);
  transform: translateY(-3px);
  box-shadow: 0 15px 40px rgba(229, 9, 20, 0.5);
}

/* Responsive Design */
@media (max-width: 1200px) {
  .feature-showcase {
    max-width: 500px;
    min-height: 550px;
    padding: 2.5rem 2rem;
  }
}

@media (max-width: 1024px) {
  .login-section {
    flex: 0 0 45%;
  }

  .feature-showcase {
    max-width: 450px;
    min-height: 500px;
    padding: 2rem 1.5rem;
  }

  .feature-title {
    font-size: 1.85rem;
  }

  .feature-description {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  .login-container {
    flex-direction: column;
  }

  .login-section {
    flex: 0 0 auto;
    padding: 2rem 1.5rem;
    order: 1;
  }

  .feature-section {
    flex: 0 0 auto;
    padding: 2rem 1.5rem;
    order: 2;
  }

  .login-card {
    padding: 2rem 1.5rem;
  }

  .feature-showcase {
    max-width: 100%;
    min-height: auto;
    padding: 2rem 1.5rem;
  }

  .feature-title {
    font-size: 1.5rem;
  }

  .feature-description {
    font-size: 0.95rem;
  }

  .welcome-title {
    font-size: 1.35rem;
  }

  .brand-title {
    font-size: 1.5rem;
  }
}

@media (max-width: 480px) {
  .login-card {
    padding: 1.75rem 1.25rem;
  }

  .logo-wrapper img {
    width: 55px;
    height: 55px;
  }

  .brand-title {
    font-size: 1.35rem;
  }

  .feature-section {
    padding: 1.5rem 1rem;
  }

  .feature-showcase {
    padding: 1.75rem 1.25rem;
  }

  .feature-visual {
    width: 90px;
    height: 90px;
    margin-bottom: 1.25rem;
  }

  .feature-visual i {
    font-size: 2.5rem;
  }

  .feature-title {
    font-size: 1.35rem;
  }

  .feature-description {
    font-size: 0.875rem;
  }

  .carousel-nav {
    gap: 1.25rem;
  }

  .nav-arrow {
    width: 40px;
    height: 40px;
  }

  .cta-button {
    padding: 0.75rem 2rem;
    font-size: 0.875rem;
  }
}

/* Language Selector Styles */
.language-selector {
  position: fixed;
  top: 1.5rem;
  right: 1.5rem;
  z-index: 1000;
}

[dir="rtl"] .language-selector {
  right: auto;
  left: 1.5rem;
}

.language-dropdown {
  position: relative;
}

.language-btn {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.625rem 1rem;
  background: rgba(35, 39, 47, 0.75);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(229, 9, 20, 0.3);
  border-radius: 12px;
  color: #e8eaed;
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.language-btn:hover {
  background: rgba(45, 49, 57, 0.85);
  border-color: #e50914;
  transform: translateY(-1px);
  box-shadow: 0 6px 20px rgba(229, 9, 20, 0.35);
}

.language-btn i {
  font-size: 1rem;
  color: #e50914;
}

.language-flag {
  font-size: 1.25rem;
  line-height: 1;
}

.language-menu {
  position: absolute;
  top: calc(100% + 0.5rem);
  right: 0;
  min-width: 200px;
  background: rgba(35, 39, 47, 0.95);
  backdrop-filter: blur(30px);
  border: 1px solid rgba(229, 9, 20, 0.3);
  border-radius: 12px;
  padding: 0.5rem;
  display: none;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
  animation: slideDown 0.2s ease;
}

[dir="rtl"] .language-menu {
  right: auto;
  left: 0;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.language-menu.show {
  display: block;
}

.language-option {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.875rem;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  color: #e8eaed;
  text-decoration: none;
}

.language-option:hover {
  background: rgba(229, 9, 20, 0.15);
  color: #e8eaed;
}

.language-option.active {
  background: rgba(229, 9, 20, 0.25);
  color: #ff6b72;
}

.language-option .language-flag {
  font-size: 1.5rem;
}

.language-info {
  display: flex;
  flex-direction: column;
  flex: 1;
}

.language-name {
  font-weight: 600;
  font-size: 0.875rem;
}

.language-native {
  font-size: 0.75rem;
  color: #8b92a6;
}

.language-option.active .language-native {
  color: #ff6b72;
}

.language-check {
  color: #e50914;
  font-size: 1rem;
  display: none;
}

.language-option.active .language-check {
  display: block;
}

/* RTL Adjustments */
[dir="rtl"] .toggle-auth button {
  margin-left: 0;
  margin-right: 0.5rem;
}

@media (max-width: 768px) {
  .language-selector {
    top: 1rem;
    right: 1rem;
  }

  [dir="rtl"] .language-selector {
    right: auto;
    left: 1rem;
  }
}

/* Constrain dropdown within viewport on very small screens */
@media (max-width: 480px) {
  .language-menu {
    right: 0;
    left: auto;
    width: min(90vw, 280px);
    min-width: 0;
  }

  [dir="rtl"] .language-menu {
    left: 0;
    right: auto;
  }
}
