/* style/login.css */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Rely on body background from shared.css */
}

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

.page-login__dark-bg {
  background-color: #0a0a0a; /* Ensure dark background for sections */
  color: #ffffff; /* Light text for dark background */
  padding: 40px 0;
}

.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
  overflow: hidden;
}

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

.page-login__hero-image {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

.page-login__hero-content {
  max-width: 800px;
  text-align: center;
  padding: 0 20px;
  margin-top: -50px; /* Overlap slightly with image for visual flow */
  position: relative;
  z-index: 1;
}

.page-login__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #26A9E0; /* Brand color for H1 */
  margin-bottom: 20px;
  font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
}

.page-login__description {
  font-size: 1.1rem;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-login__login-form-wrapper {
  background: rgba(255, 255, 255, 0.1); /* Semi-transparent background for form */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  width: 100%;
  max-width: 450px;
  margin: 0 auto;
  box-sizing: border-box;
}

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

.page-login__form-group {
  text-align: left;
}

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

.page-login__input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #26A9E0;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #ffffff;
  font-size: 1rem;
  box-sizing: border-box;
}

.page-login__input::placeholder {
  color: #cccccc;
}

.page-login__button-group {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 20px;
}

.page-login__cta-button {
  display: block;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 1.1rem;
  font-weight: bold;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure button responsiveness */
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

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

.page-login__forgot-password {
  margin-top: 15px;
  text-align: center;
  font-size: 0.95rem;
}

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

.page-login__link:hover {
  text-decoration: underline;
}

.page-login__section-title {
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: bold;
  text-align: center;
  margin-bottom: 30px;
  color: #26A9E0;
}

.page-login__text-block {
  font-size: 1rem;
  text-align: center;
  margin-bottom: 20px;
  color: #f0f0f0;
}

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

.page-login__feature-item {
  background: rgba(255, 255, 255, 0.08); /* Slightly lighter background for feature cards */
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-login__feature-title {
  font-size: 1.4rem;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-login__feature-description {
  font-size: 0.95rem;
  color: #e0e0e0;
}

.page-login__image-content {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 40px auto 0 auto;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.page-login__guide-step {
  background: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-login__guide-title {
  font-size: 1.5rem;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-login__guide-description {
  font-size: 1rem;
  color: #e0e0e0;
}

.page-login__troubleshooting-title {
  font-size: 1.8rem;
  color: #26A9E0;
  text-align: center;
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-login__troubleshooting-list {
  list-style: disc inside;
  padding-left: 20px;
  max-width: 800px;
  margin: 0 auto;
  color: #f0f0f0;
}

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

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

.page-login__security-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-login__security-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 15px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-login__security-title {
  font-size: 1.4rem;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-login__security-description {
  font-size: 0.95rem;
  color: #e0e0e0;
}

.page-login__responsible-gaming-link {
  margin-top: 30px;
  font-size: 1rem;
}

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

.page-login__game-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  display: flex;
  flex-direction: column;
}

.page-login__game-image {
  max-width: 100%;
  height: auto;
  display: block;
  margin-bottom: 15px;
  border-radius: 5px;
  object-fit: cover;
}

.page-login__game-title {
  font-size: 1.3rem;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-login__game-description {
  font-size: 0.95rem;
  color: #e0e0e0;
  flex-grow: 1;
}

.page-login__promo-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin-top: 30px;
}

.page-login__promo-item {
  background: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

.page-login__promo-title {
  font-size: 1.4rem;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-login__promo-description {
  font-size: 0.95rem;
  color: #e0e0e0;
}

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

.page-login__mobile-app-content {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 50px;
  padding-top: 40px;
  padding-bottom: 40px;
}

.page-login__mobile-text {
  flex: 1;
  text-align: left;
}

.page-login__app-benefits {
  list-style: disc inside;
  padding-left: 20px;
  margin-top: 20px;
  color: #f0f0f0;
}

.page-login__app-benefits li {
  margin-bottom: 8px;
}

.page-login__mobile-image-wrapper {
  flex: 1;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-login__mobile-app-image {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 15px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-login__faq-list {
  margin-top: 30px;
}

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

.page-login__faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px;
  font-weight: bold;
  font-size: 1.1rem;
  color: #26A9E0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  outline: none;
}

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

.page-login__faq-qtext {
  flex-grow: 1;
}

.page-login__faq-toggle {
  margin-left: 15px;
  font-size: 1.5rem;
  line-height: 1;
}

.page-login__faq-answer {
  padding: 0 20px 20px 20px;
  font-size: 1rem;
  color: #e0e0e0;
}

/* Mobile responsive styles */
@media (max-width: 768px) {
  .page-login__container,
  .page-login__hero-content,
  .page-login__login-form-wrapper,
  .page-login__feature-list,
  .page-login__guide-steps,
  .page-login__security-features,
  .page-login__game-categories,
  .page-login__promo-list,
  .page-login__mobile-app-content,
  .page-login__faq-list,
  .page-login__button-group {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

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

  .page-login__hero-image-wrapper {
    margin-bottom: 10px;
  }

  .page-login__hero-content {
    margin-top: -30px;
  }

  .page-login__main-title {
    font-size: 2rem;
  }

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

  .page-login__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-login__button-group {
    flex-direction: column;
    gap: 10px;
  }

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

  .page-login__text-block {
    font-size: 0.95rem;
  }

  .page-login__feature-item,
  .page-login__guide-step,
  .page-login__security-item,
  .page-login__game-card,
  .page-login__promo-item {
    padding: 20px;
  }

  .page-login__image-content,
  .page-login__security-icon,
  .page-login__game-image,
  .page-login__mobile-app-image,
  .page-login img,
  .page-login video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-login__mobile-app-content {
    flex-direction: column;
    gap: 30px;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  .page-login__app-benefits {
    padding-left: 0;
    text-align: left;
  }

  .page-login__mobile-image-wrapper {
    order: -1; /* Image above text on mobile */
  }

  .page-login__troubleshooting-list {
    padding-left: 0;
  }
  
  .page-login__faq-item summary {
    font-size: 1rem;
    padding: 15px;
  }

  .page-login__faq-answer {
    padding: 0 15px 15px 15px;
  }
  
  .page-login__video-section {
    padding-top: 10px !important; /* body already handles header offset */
  }
}