:root {
  --primary-color: #113B7A;
  --secondary-color: #1D5FD1;
  --button-gradient: linear-gradient(180deg, #2B73F6 0%, #1144A6 100%);
  --card-bg: #10233F;
  --text-main: #F3F8FF;
  --text-secondary: #AFC4E8;
  --border-color: #244D84;
  --glow-color: #4FA8FF;
  --gold-color: #F2C14E;
  --divider-color: #1B3357;
  --deep-navy: #08162B; /* Body background color */
  --light-text-on-dark: #F3F8FF; /* Explicitly light text for dark backgrounds */
  --dark-text-on-light: #333333; /* Explicitly dark text for light backgrounds */
  --form-input-bg: rgba(255, 255, 255, 0.1);
  --form-input-border: #244D84;
  --form-input-placeholder: #AFC4E8;
  --faq-border: #244D84;
  --faq-bg-open: #0b1e38; /* Slightly lighter dark for open FAQ */
  --faq-bg-hover: #0c213f;
}

/* Base styles for the login page, considering dark body background from shared.css */
.page-login {
  font-family: Arial, sans-serif;
  color: var(--light-text-on-dark); /* Default text color for the page */
  background-color: transparent; /* Rely on body background from shared.css */
  line-height: 1.6;
}

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

.page-login__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 15px;
  color: var(--gold-color); /* Use gold for prominent titles */
}

.page-login__section-subtitle {
  font-size: 18px;
  text-align: center;
  color: var(--text-secondary);
  margin-bottom: 40px;
}

/* Buttons */
.page-login__btn-primary,
.page-login__btn-secondary,
.page-login__btn-submit,
.page-login__btn-view-promo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 25px;
  border-radius: 8px;
  font-weight: bold;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  word-wrap: break-word; /* Allow text wrapping */
  box-sizing: border-box; /* Include padding in width calculation */
  max-width: 100%; /* Ensure buttons don't overflow */
}

.page-login__btn-primary,
.page-login__btn-submit {
  background: var(--button-gradient);
  color: var(--text-main);
  border: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-login__btn-primary:hover,
.page-login__btn-submit:hover {
  opacity: 0.9;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-login__btn-secondary,
.page-login__btn-view-promo {
  background: transparent;
  color: var(--gold-color);
  border: 2px solid var(--gold-color);
}

.page-login__btn-secondary:hover,
.page-login__btn-view-promo:hover {
  background: var(--gold-color);
  color: var(--deep-navy);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image on top, content below */
  align-items: center;
  justify-content: center;
  min-height: 500px;
  padding-top: 10px; /* Small top padding, relying on body for header offset */
  padding-bottom: 40px;
  text-align: center;
  overflow: hidden; /* Prevent content overflow */
  background: var(--deep-navy); /* Ensure dark background for hero even if image fails */
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-height: 600px; /* Limit height of the image wrapper */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-login__hero-section img {
  width: 100%;
  height: auto;
  object-fit: cover; /* Ensure image covers the area */
  max-height: 600px; /* Max height for the image */
  display: block;
  filter: none;
}

.page-login__hero-content {
  padding: 30px 15px;
  max-width: 800px;
  z-index: 1;
}

.page-login__main-title {
  font-size: clamp(30px, 4vw, 50px); /* Responsive font size for H1 */
  color: var(--gold-color);
  margin-bottom: 15px;
  line-height: 1.2;
  font-weight: 800;
}

.page-login__description {
  font-size: 18px;
  color: var(--text-secondary);
  margin-bottom: 30px;
}

.page-login__cta-buttons {
  display: flex;
  gap: 20px;
  justify-content: center;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
  width: 100%;
  max-width: 100%; /* Ensure container doesn't overflow */
  box-sizing: border-box;
  padding: 0 15px; /* Add padding for small screens */
}

/* Form Section */
.page-login__form-section {
  padding: 60px 0;
  background: var(--deep-navy); /* Dark background for the form section */
  color: var(--light-text-on-dark);
}

.page-login__form-wrapper {
  max-width: 500px;
  margin: 0 auto;
  background: var(--card-bg);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
  border: 1px solid var(--border-color);
}

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

.page-login__form-group {
  display: flex;
  flex-direction: column;
}

.page-login__form-label {
  font-size: 15px;
  color: var(--text-secondary);
  margin-bottom: 8px;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--form-input-border);
  border-radius: 5px;
  background: var(--form-input-bg);
  color: var(--text-main);
  font-size: 16px;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: var(--form-input-placeholder);
  opacity: 0.7;
}

.page-login__form-input:focus {
  border-color: var(--glow-color);
  outline: none;
  box-shadow: 0 0 0 3px rgba(79, 168, 255, 0.3);
}

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 14px;
}

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

.page-login__checkbox {
  margin-right: 8px;
  width: 16px;
  height: 16px;
  accent-color: var(--secondary-color); /* Style checkbox with accent color */
}

.page-login__checkbox-label {
  color: var(--text-secondary);
}

.page-login__forgot-password {
  color: var(--text-secondary);
  text-decoration: none;
}

.page-login__forgot-password:hover {
  color: var(--gold-color);
  text-decoration: underline;
}

.page-login__btn-submit {
  width: 100%;
  margin-top: 20px;
}

.page-login__form-footer {
  text-align: center;
  margin-top: 30px;
  font-size: 15px;
  color: var(--text-secondary);
}

.page-login__register-link {
  color: var(--gold-color);
  text-decoration: none;
  font-weight: bold;
}

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

/* Advantages Section */
.page-login__advantages-section {
  padding: 60px 0;
  background: var(--deep-navy); /* Dark background */
  color: var(--light-text-on-dark);
}

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

.page-login__advantage-card {
  background: var(--card-bg);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.page-login__advantage-card img {
  
  
  margin-bottom: 20px;
  object-fit: contain;
  border-radius: 50%;
  border: 2px solid var(--gold-color);
  padding: 5px;
  box-sizing: content-box;
  filter: none;
}

.page-login__card-title {
  font-size: 22px;
  font-weight: bold;
  color: var(--gold-color);
  margin-bottom: 15px;
}

.page-login__card-description {
  font-size: 15px;
  color: var(--text-secondary);
}

/* Promotions Section */
.page-login__promotions-section {
  padding: 60px 0;
  background: var(--deep-navy); /* Dark background */
  color: var(--light-text-on-dark);
}

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

.page-login__promo-card {
  background: var(--card-bg);
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
}

.page-login__promo-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  filter: none;
}

.page-login__promo-card .page-login__card-title {
  padding: 20px 20px 10px;
  margin-bottom: 0;
  font-size: 20px;
  text-align: left;
}

.page-login__promo-card .page-login__card-description {
  padding: 0 20px 20px;
  font-size: 14px;
  flex-grow: 1;
  text-align: left;
}

.page-login__btn-view-promo {
  margin: 0 20px 20px;
  align-self: flex-start;
  font-size: 14px;
  padding: 8px 15px;
}

.page-login__cta-full {
  text-align: center;
}

/* FAQ Section */
.page-login__faq-section {
  padding: 60px 0;
  background: var(--deep-navy); /* Dark background */
  color: var(--light-text-on-dark);
}

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

details.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  overflow: hidden;
  background: var(--card-bg);
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

details.page-login__faq-item summary.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: var(--gold-color);
  font-weight: bold;
}

details.page-login__faq-item summary.page-login__faq-question::-webkit-details-marker {
  display: none;
}

details.page-login__faq-item summary.page-login__faq-question:hover {
  background: var(--faq-bg-hover);
}

details.page-login__faq-item[open] summary.page-login__faq-question {
  background: var(--faq-bg-open);
  border-bottom: 1px solid var(--border-color);
}


.page-login__faq-qtext {
  flex: 1;
  font-size: 18px;
  line-height: 1.5;
  text-align: left;
  color: var(--gold-color); /* FAQ question text */
}

.page-login__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: var(--glow-color);
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}

details.page-login__faq-item .page-login__faq-answer {
  padding: 0 25px 25px;
  background: var(--card-bg);
  border-radius: 0 0 10px 10px;
  color: var(--text-secondary); /* FAQ answer text */
  font-size: 16px;
}

.page-login__faq-answer p {
  margin-top: 0;
  margin-bottom: 10px;
}
.page-login__faq-answer p:last-child {
  margin-bottom: 0;
}

/* Responsible Gaming Section */
.page-login__responsible-gaming-section {
  padding: 60px 0;
  background: var(--deep-navy); /* Dark background */
  color: var(--light-text-on-dark);
}

.page-login__responsible-gaming-section .page-login__content-block {
  max-width: 800px;
  margin: 0 auto;
  text-align: center;
  background: var(--card-bg);
  padding: 40px;
  border-radius: 10px;
  border: 1px solid var(--border-color);
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.4);
}

.page-login__responsible-gaming-section p {
  font-size: 16px;
  color: var(--text-secondary);
  margin-bottom: 20px;
}

.page-login__responsible-gaming-section .page-login__btn-primary {
  margin-top: 20px;
}

/* CTA Bottom Section */
.page-login__cta-bottom-section {
  padding: 60px 0;
  background: var(--deep-navy); /* Dark background */
  color: var(--light-text-on-dark);
  text-align: center;
}

/* --- Responsive Styles --- */

/* Mobile: max-width 768px */
@media (max-width: 768px) {
  .page-login__container {
    padding: 15px;
  }

  .page-login__section-title {
    font-size: 28px;
    margin-bottom: 10px;
  }

  .page-login__section-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }

  /* Images responsive */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    object-fit: contain; /* Banner image should contain to avoid cropping important info */
  }

  .page-login__hero-section {
    padding-top: 10px; /* Small top padding, relying on body for header offset */
    min-height: auto;
  }

  .page-login__hero-image-wrapper {
    max-height: 300px; /* Adjust max height for mobile hero image */
  }

  .page-login__hero-section img {
    max-height: 300px;
  }

  .page-login__main-title {
    font-size: 30px; /* Mobile specific H1 size */
    margin-bottom: 10px;
  }

  .page-login__description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-login__cta-buttons {
    flex-direction: column; /* Stack buttons vertically */
    gap: 15px;
    padding: 0; /* Remove horizontal padding for full width buttons */
  }

  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login__btn-submit,
  .page-login__btn-view-promo {
    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-section,
  .page-login__advantages-section,
  .page-login__promotions-section,
  .page-login__faq-section,
  .page-login__responsible-gaming-section,
  .page-login__cta-bottom-section {
    padding: 40px 0; /* Adjust section padding for mobile */
  }

  .page-login__form-wrapper {
    padding: 30px 20px;
  }

  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .page-login__advantages-grid,
  .page-login__promo-cards {
    grid-template-columns: 1fr; /* Single column layout for cards */
    gap: 20px;
  }

  .page-login__advantage-card img {
    
    
  }

  .page-login__card-title {
    font-size: 18px;
  }

  .page-login__promo-card img {
    
  }

  .page-login__promo-card .page-login__card-title {
    font-size: 18px;
    padding: 15px 15px 8px;
  }

  .page-login__promo-card .page-login__card-description {
    padding: 0 15px 15px;
    font-size: 13px;
  }

  .page-login__btn-view-promo {
    margin: 0 15px 15px;
  }

  details.page-login__faq-item summary.page-login__faq-question {
    padding: 15px 20px;
  }

  .page-login__faq-qtext {
    font-size: 16px;
  }

  .page-login__faq-toggle {
    font-size: 24px;
    width: 24px;
    margin-left: 10px;
  }

  details.page-login__faq-item .page-login__faq-answer {
    padding: 0 20px 20px;
    font-size: 15px;
  }

  .page-login__responsible-gaming-section .page-login__content-block {
    padding: 30px;
  }

  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__form-wrapper,
  .page-login__promo-card,
  .page-login__advantage-card,
  .page-login__responsible-gaming-section .page-login__content-block {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !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;
    flex-direction: column; /* Force column layout for multiple buttons */
  }
}

/* Ensure color contrast for all elements */
.page-login__dark-section {
  background: var(--deep-navy);
  color: var(--light-text-on-dark);
}

.page-login__form-input {
  color: var(--text-main); /* Ensure text in input is light */
}

.page-login__form-input::placeholder {
  color: var(--form-input-placeholder); /* Placeholder text color */
}

/* Ensure no filter on images */
.page-login img {
  filter: none;
}