.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Ensure consistency with body background */
}

.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  background-color: #1a1a1a; /* Dark background for hero */
  background-image: url('[GALLERY:hero_main:1920x1080:i88,login_hero,online_betting_platform,gold_red_theme]');
  background-size: cover;
  background-position: center;
  padding: 120px 20px 80px; /* Increased padding-top for header offset */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: 70vh;
  color: #ffffff;
  overflow: hidden;
}

.page-login__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0, 0, 0, 0.7), rgba(0, 0, 0, 0.9));
  z-index: 1;
}

.page-login__hero-content-wrapper {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
}

.page-login__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFD700; /* Gold brand color */
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.5);
  line-height: 1.2;
}

.page-login__intro-text {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-login__login-form-container {
  background-color: rgba(0, 0, 0, 0.8);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 0 30px rgba(0, 0, 0, 0.5);
  max-width: 450px;
  margin: 0 auto;
  border: 1px solid #FFD700;
}

.page-login__login-form {
  display: flex;
  flex-direction: column;
}

.page-login__form-group {
  margin-bottom: 20px;
  text-align: left;
}

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #f0f0f0;
}

.page-login__form-input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid #8B0000; /* Dark red border */
  border-radius: 5px;
  background-color: #2a2a2a;
  color: #ffffff;
  font-size: 1em;
  transition: border-color 0.3s ease;
}

.page-login__form-input::placeholder {
  color: #aaaaaa;
}

.page-login__form-input:focus {
  border-color: #FFD700; /* Gold focus */
  outline: none;
}

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  font-size: 0.9em;
}

.page-login__remember-me {
  display: flex;
  align-items: center;
}

.page-login__checkbox {
  margin-right: 8px;
  accent-color: #FFD700;
}

.page-login__checkbox-label {
  color: #f0f0f0;
}

.page-login__forgot-password {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
  color: #ffffff;
  text-decoration: underline;
}

.page-login__btn-primary {
  background: linear-gradient(to right, #FFD700, #FFA500);
  color: #121212; /* Dark text on gold button */
  padding: 15px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
  display: block;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-primary:hover {
  background: linear-gradient(to right, #FFA500, #FFD700);
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
}

.page-login__register-text {
  margin-top: 25px;
  font-size: 1em;
  color: #f0f0f0;
}

.page-login__register-link {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
}

.page-login__register-link:hover {
  text-decoration: underline;
}

/* General Section Styling */
.page-login__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 20px;
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.3);
}

.page-login__section-description {
  font-size: 1.1em;
  color: #e0e0e0;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px;
}

/* Benefits Section */
.page-login__benefits-section {
  background-color: #1a1a1a;
  padding: 80px 0;
}

.page-login__benefits-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-login__benefit-card {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__benefit-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(255, 215, 0, 0.15);
}

.page-login__benefit-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
  border-radius: 50%;
  border: 3px solid #FFD700;
  padding: 10px;
}

.page-login__card-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-login__card-text {
  font-size: 1em;
  color: #e0e0e0;
}

/* Security Section */
.page-login__security-section {
  background-color: #0d0d0d;
  padding: 80px 0;
}

.page-login__security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
}

.page-login__security-feature {
  background-color: rgba(139, 0, 0, 0.2);
  border: 1px solid #8B0000;
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  color: #ffffff;
  transition: background-color 0.3s ease;
}

.page-login__security-feature:hover {
  background-color: rgba(139, 0, 0, 0.4);
}

.page-login__security-icon {
  width: 120px;
  height: 120px;
  margin-bottom: 20px;
  object-fit: contain;
  border-radius: 50%;
  border: 3px solid #FFD700;
  padding: 5px;
}

.page-login__feature-title {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-login__feature-text {
  font-size: 0.95em;
  color: #e0e0e0;
}

.page-login__security-tips-text {
  margin-top: 40px;
  font-style: italic;
  color: #cccccc;
  text-align: center;
}

/* Troubleshooting Section */
.page-login__troubleshooting-section {
  background-color: #1a1a1a;
  padding: 80px 0;
}

.page-login__troubleshooting-item {
  background-color: rgba(255, 255, 255, 0.05);
  border-left: 5px solid #FFD700;
  padding: 25px;
  margin-bottom: 30px;
  border-radius: 5px;
}

.page-login__troubleshooting-subtitle {
  font-size: 1.8em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-login__troubleshooting-text {
  color: #e0e0e0;
  margin-bottom: 15px;
}

.page-login__troubleshooting-list {
  list-style: disc;
  margin-left: 20px;
  color: #e0e0e0;
  margin-bottom: 15px;
}

.page-login__troubleshooting-list li {
  margin-bottom: 8px;
}

.page-login__contact-link {
  color: #FFD700;
  text-decoration: underline;
}

.page-login__contact-link:hover {
  color: #ffffff;
}

.page-login__cta-troubleshooting {
  text-align: center;
  margin-top: 40px;
}

.page-login__btn-secondary {
  background-color: transparent;
  color: #FFD700; /* Gold text on transparent button */
  border: 2px solid #FFD700;
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-secondary:hover {
  background-color: #FFD700;
  color: #121212; /* Dark text on gold hover */
  box-shadow: 0 0 15px rgba(255, 215, 0, 0.7);
}

/* Mobile App Section */
.page-login__mobile-app-section {
  background-color: #0d0d0d;
  padding: 80px 0;
}

.page-login__mobile-app-flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 50px;
}

.page-login__mobile-app-content {
  flex: 1;
}

.page-login__mobile-app-features {
  list-style: none;
  padding: 0;
  margin: 30px 0;
  color: #e0e0e0;
}

.page-login__mobile-app-features li {
  position: relative;
  margin-bottom: 15px;
  padding-left: 30px;
  font-size: 1.1em;
}

.page-login__mobile-app-features li::before {
  content: '✔';
  color: #FFD700;
  position: absolute;
  left: 0;
  font-weight: bold;
}

.page-login__mobile-app-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-login__mobile-app-image {
  max-width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 2px solid #FFD700;
}

.page-login__download-app-button {
  margin-top: 30px;
}

/* Promotions Section */
.page-login__promotions-section {
  background-color: #1a1a1a;
  padding: 80px 0;
}

.page-login__promotions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
}

.page-login__promotion-card {
  background-color: rgba(139, 0, 0, 0.1);
  border: 1px solid #8B0000;
  border-radius: 10px;
  overflow: hidden;
  color: #ffffff;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__promotion-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 30px rgba(139, 0, 0, 0.3);
}

.page-login__promotion-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-login__promotion-card .page-login__card-title {
  color: #FFD700;
  font-size: 1.4em;
  margin-bottom: 10px;
  padding: 0 20px;
}

.page-login__promotion-card .page-login__card-text {
  color: #e0e0e0;
  font-size: 0.95em;
  padding: 0 20px 25px;
}

.page-login__cta-promotions {
  text-align: center;
  margin-top: 50px;
}

/* FAQ Section */
.page-login__faq-section {
  background-color: #0d0d0d;
  padding: 80px 0;
}

.page-login__faq-list {
  max-width: 900px;
  margin: 0 auto;
}

.page-login__faq-item {
  background-color: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.2);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  color: #FFD700;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
  background-color: rgba(255, 215, 0, 0.1);
}

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-toggle {
  transform: rotate(45deg);
}

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #e0e0e0;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 15px 25px;
}

.page-login__faq-text {
  margin-bottom: 0;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 3em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__mobile-app-flex {
    flex-direction: column;
    gap: 30px;
  }
  .page-login__mobile-app-image-wrapper {
    order: -1; /* Image on top for mobile */
  }
}

@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-login__hero-section {
    padding: 100px 15px 60px;
    min-height: auto;
  }

  .page-login__main-title {
    font-size: 2.2em;
  }

  .page-login__intro-text {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-login__login-form-container {
    padding: 30px 20px;
  }

  .page-login__form-input {
    width: calc(100% - 20px) !important;
  }

  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login a[class*="button"],
  .page-login a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__cta-buttons,
  .page-login__button-group,
  .page-login__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
    display: flex;
    flex-direction: column; /* Vertical stack for buttons */
  }

  .page-login__section-title {
    font-size: 1.8em;
  }

  .page-login__section-description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-login__container {
    padding: 20px 15px;
  }

  .page-login__benefits-grid,
  .page-login__security-grid,
  .page-login__promotions-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login__benefit-card,
  .page-login__security-feature,
  .page-login__promotion-card {
    padding: 20px;
  }

  .page-login__benefit-icon,
  .page-login__security-icon {
    width: 80px;
    height: 80px;
  }

  .page-login__card-title,
  .page-login__feature-title {
    font-size: 1.3em;
  }

  .page-login__promotion-image {
    height: 200px;
  }

  .page-login__mobile-app-content {
    text-align: center;
  }

  .page-login__mobile-app-features {
    text-align: left;
    padding-left: 20px;
  }

  .page-login__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }

  .page-login__faq-answer {
    padding: 0 20px;
  }

  .page-login__faq-item.active .page-login__faq-answer {
    padding: 10px 20px;
  }

  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-login__section,
  .page-login__card,
  .page-login__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-login__hero-section {
    padding-top: var(--header-offset, 120px) !important; 
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 1.8em;
  }
  .page-login__section-title {
    font-size: 1.6em;
  }
  .page-login__login-form-container {
    padding: 20px 15px;
  }
}