.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
  padding-top: var(--header-offset, 120px);
}

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

.page-login__hero-section {
  position: relative;
  padding: 80px 0;
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 600px;
  background-color: #1A1A2E;
  color: #ffffff;
  background-image: url('[GALLERY:hero_login_bg:1920x1080:v7 casino,login page,background,abstract,neon lights,dark theme]');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.page-login__form-wrapper {
  background: rgba(0, 0, 0, 0.7);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.5);
  max-width: 500px;
  width: 100%;
  margin: 0 auto;
  text-align: left;
  z-index: 1;
  position: relative;
}

.page-login__main-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #E9C46A;
  text-align: center;
  line-height: 1.2;
}

.page-login__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
  text-align: center;
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #444;
  border-radius: 5px;
  background-color: #222;
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-login__form-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 25px;
}

.page-login__btn-primary,
.page-login__btn-secondary {
  display: block;
  padding: 15px 25px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-primary {
  background-color: #E9C46A;
  color: #1A1A2E;
  border: 2px solid #E9C46A;
}

.page-login__btn-primary:hover {
  background-color: #F4A261;
  border-color: #F4A261;
  color: #1A1A2E;
}

.page-login__btn-secondary {
  background-color: transparent;
  color: #E9C46A;
  border: 2px solid #E9C46A;
}

.page-login__btn-secondary:hover {
  background-color: #E9C46A;
  color: #1A1A2E;
}

.page-login__forgot-password {
  display: block;
  text-align: center;
  margin-top: 15px;
  color: #E9C46A;
  text-decoration: none;
  font-size: 0.95em;
}

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

.page-login__illustration-wrapper {
  display: none;
}

.page-login__section {
  padding: 60px 0;
}

.page-login__dark-bg {
  background-color: #1A1A2E;
  color: #ffffff;
}

.page-login__light-bg {
  background-color: #0d0d0d; /* Slightly lighter dark background for contrast */
  color: #f0f0f0;
}

.page-login__section-title {
  font-size: 2em;
  margin-bottom: 30px;
  text-align: center;
  color: #E9C46A;
}

.page-login__text-content {
  font-size: 1.1em;
  max-width: 900px;
  margin: 0 auto 40px auto;
  text-align: center;
  color: #ccc;
}

.page-login__feature-list,
.page-login__security-features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-login__feature-item,
.page-login__security-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-login__feature-icon,
.page-login__security-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  filter: none; /* Ensure no CSS filter changes image color */
}

.page-login__feature-title,
.page-login__security-title,
.page-login__troubleshooting-title {
  font-size: 1.3em;
  color: #E9C46A;
  margin-bottom: 15px;
}

.page-login__feature-item p,
.page-login__security-item p {
  color: #ccc;
  font-size: 0.95em;
}

.page-login__troubleshooting-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 25px;
  margin-top: 40px;
}

.page-login__troubleshooting-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.page-login__troubleshooting-item p {
  color: #ccc;
  font-size: 0.95em;
}

.page-login__troubleshooting-item a {
  color: #E9C46A;
  text-decoration: none;
}

.page-login__troubleshooting-item a:hover {
  text-decoration: underline;
}

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

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

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

.page-login__faq-title {
  font-size: 1.15em;
  color: #E9C46A;
  margin: 0;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #E9C46A;
  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 20px;
  color: #ccc;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

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

.page-login__faq-answer p {
  margin: 0;
  padding-bottom: 15px; /* Adjust as needed */
}

.page-login__faq-cta {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
  color: #ccc;
}

.page-login__faq-cta a {
  color: #E9C46A;
  text-decoration: none;
}

.page-login__faq-cta a:hover {
  text-decoration: underline;
}

.page-login__register-promo {
  padding-bottom: 80px;
}

.page-login__register-promo-button {
  margin-top: 30px;
  margin-left: auto;
  margin-right: auto;
  max-width: 300px;
}

/* Responsive Design */
@media (min-width: 769px) {
  .page-login__hero-section .page-login__container {
    display: flex;
    gap: 40px;
    align-items: center;
    text-align: left;
  }

  .page-login__form-wrapper {
    margin: 0;
  }

  .page-login__illustration-wrapper {
    display: block;
    flex: 1;
    text-align: center;
  }

  .page-login__illustration {
    max-width: 100%;
    height: auto;
    filter: none; /* Ensure no CSS filter changes image color */
  }

  .page-login__form-actions {
    flex-direction: row;
    justify-content: space-between;
  }

  .page-login__btn-primary,
  .page-login__btn-secondary {
    width: 48%;
  }
}

@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile padding-top is applied */
  }

  .page-login__hero-section {
    padding: 60px 0;
  }

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

  .page-login__description {
    font-size: 1em;
  }

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

  .page-login__text-content {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-login__container,
  .page-login__form-wrapper,
  .page-login__section,
  .page-login__feature-item,
  .page-login__security-item,
  .page-login__troubleshooting-item,
  .page-login__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__feature-list,
  .page-login__security-features,
  .page-login__troubleshooting-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
    filter: none; /* Ensure no CSS filter changes image color */
  }

  .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__form-actions {
    flex-direction: column !important;
    gap: 10px;
  }

  .page-login__faq-question {
    padding: 15px;
  }

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

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