/* style/login.css */

/* Base styles for the login page content */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: var(--background-color, #ffffff); /* Inherit from shared or default to white */
}

/* Fixed header offset */
.page-login__hero-section {
  padding-top: var(--header-offset, 120px); /* Apply header offset */
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  background-image: url('[GALLERY:hero:1920x1080:mana88_apk,login_hero,online_betting_background,excitement,blue_theme]');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  text-align: center;
  padding: 100px 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
}

.page-login__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 1;
}

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

.page-login__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

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

/* Login Form */
.page-login__login-form-wrapper {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  max-width: 450px;
  margin: 0 auto;
  color: #333333;
  text-align: left;
}

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

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

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

.page-login__form-input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
}

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

.page-login__forgot-password {
  color: #26A9E0;
  text-decoration: none;
}

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

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

.page-login__checkbox {
  margin-right: 8px;
}

.page-login__btn-submit {
  width: 100%;
  padding: 15px;
  background-color: #EA7C07; /* Login button custom color */
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-sizing: border-box; /* Ensure padding doesn't increase width */
  display: block; /* Make it behave like a block button */
  text-align: center; /* Center text for the link button */
  text-decoration: none; /* Remove underline for link button */
}

.page-login__btn-submit:hover {
  background-color: #d16b06;
}

.page-login__register-prompt {
  text-align: center;
  margin-top: 25px;
  font-size: 0.95em;
  color: #555555;
}

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

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

/* General Section Styles */
.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-login__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 50px;
  color: #26A9E0;
}

.page-login__section-title--white {
  color: #ffffff;
}

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

.page-login__text-block--white {
  color: #f0f0f0;
}

/* Benefits Section */
.page-login__benefits-section {
  background-color: #ffffff; /* Light background */
  color: #333333;
  padding: 60px 0;
}

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

.page-login__benefit-card {
  background: #f8f8f8;
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

.page-login__benefit-card:hover {
  transform: translateY(-5px);
}

.page-login__benefit-icon {
  width: 80px;
  height: 80px;
  margin-bottom: 20px;
  object-fit: contain;
  border-radius: 5px; /* Ensure images are not filtered */
}

.page-login__benefit-title {
  font-size: 1.4em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-login__benefit-description {
  font-size: 1em;
  color: #555555;
}

/* Video Section */
.page-login__video-section {
  background-color: #26A9E0; /* Brand color background */
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
}

.page-login__video-wrapper {
  position: relative;
  width: 100%;
  max-width: 1000px; /* Max width for video */
  margin: 0 auto 40px auto;
  background: #000;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
}

.page-login__video {
  display: block;
  width: 100%;
  height: auto;
  cursor: pointer;
}

.page-login__video-link {
  display: block; /* Make the entire video clickable */
  line-height: 0; /* Remove extra space below video */
}

.page-login__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-login__btn-primary,
.page-login__btn-secondary {
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons are responsive */
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
}

.page-login__btn-primary {
  background-color: #EA7C07; /* Login button color for CTA */
  color: #ffffff;
  border: 2px solid transparent;
}

.page-login__btn-primary:hover {
  background-color: #d16b06;
}

.page-login__btn-secondary {
  background-color: #ffffff;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-login__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1a7fb0;
}

/* FAQ Section */
.page-login__faq-section {
  background-color: #f5f5f5; /* Light background */
  color: #333333;
  padding: 60px 0;
}

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

.page-login__faq-item {
  background: #ffffff;
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

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

.page-login__faq-question:hover {
  background-color: #e6f7ff;
}

.page-login__faq-title {
  margin: 0;
  font-size: 1.2em;
}

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

.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: #555555;
}

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

.page-login__faq-answer p {
  margin: 0;
}

/* Contact CTA Section */
.page-login__contact-cta {
  background-color: #26A9E0; /* Brand color background */
  color: #ffffff;
  padding: 80px 0;
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 2.8em;
  }
  .page-login__intro-text {
    font-size: 1.1em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding: 80px 15px;
    min-height: 500px;
  }
  .page-login__main-title {
    font-size: 2.2em;
  }
  .page-login__intro-text {
    font-size: 1em;
  }
  .page-login__login-form-wrapper {
    padding: 30px;
  }
  .page-login__form-title {
    font-size: 1.8em;
  }
  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .page-login__container {
    padding: 30px 15px;
  }
  .page-login__section-title {
    font-size: 1.8em;
    margin-bottom: 30px;
  }
  .page-login__text-block {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-login__benefits-grid {
    grid-template-columns: 1fr;
  }
  .page-login__benefit-card {
    padding: 25px;
  }
  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-login__btn-primary,
  .page-login__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-login__faq-question {
    padding: 15px 20px;
    font-size: 1.1em;
  }
  .page-login__faq-title {
    font-size: 1.1em;
  }
  .page-login__faq-answer {
    padding: 0 20px;
  }
  .page-login__faq-item.active .page-login__faq-answer {
    padding: 15px 20px 20px 20px;
  }
  .page-login__video-section,
  .page-login__contact-cta {
    padding: 60px 15px;
  }

  /* Mobile image and video responsiveness */
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__video-section,
  .page-login__video-container,
  .page-login__video-wrapper,
  .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;
    overflow: hidden !important; /* Prevent content overflow */
  }
}