.page-login {
  font-family: Arial, sans-serif;
  color: #333333; /* Default text color for light background */
  line-height: 1.6;
  background-color: #ffffff; /* Explicitly set for clarity */
}

/* Fixed header spacing - body padding-top is handled by shared.css */
/* .page-login__hero-section, .page-login__video-section, .page-login__title-section should not have var(--header-offset) */
.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column; /* Image above text */
  align-items: center;
  padding: 20px 0 60px 0; /* Small top padding, larger bottom padding */
  text-align: center;
  overflow: hidden; /* Ensure content doesn't spill */
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-height: 675px; /* Limit height to prevent overly tall hero */
  overflow: hidden;
}

.page-login__hero-image {
  width: 1200px; /* Base width for image, will be max-width:100% in mobile */
  height: 675px; /* Base height for image */
  display: block;
  object-fit: cover; /* Ensure image covers the area without distortion */
  max-width: 100%; /* Ensure responsiveness on larger screens */
  margin: 0 auto;
}

.page-login__hero-content {
  position: relative; /* Ensure content is on top of image, but not overlaying it */
  z-index: 2;
  max-width: 800px;
  margin-top: 40px; /* Space between image and text */
  padding: 0 20px;
}

.page-login__main-title {
  font-size: clamp(2em, 4vw, 3.2em); /* Responsive font size for H1 */
  color: #26A9E0; /* Brand color for main title */
  font-weight: 700;
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-login__description {
  font-size: 1.1em;
  margin-bottom: 30px;
}

.page-login__form-wrapper {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  max-width: 450px;
  margin: 0 auto;
}

.page-login__form-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 25px;
  font-weight: 600;
}

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

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

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

.page-login__form-input:focus {
  border-color: #26A9E0;
  outline: none;
  box-shadow: 0 0 0 2px rgba(38, 169, 224, 0.2);
}

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

.page-login__btn-primary,
.page-login__btn-secondary,
.page-login__cta-button {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  text-align: center;
  transition: all 0.3s ease;
  cursor: pointer;
  border: 2px solid transparent; /* Default for primary */
  box-sizing: border-box;
}

.page-login__btn-primary,
.page-login__login-button {
  background-color: #EA7C07; /* Custom color for login button */
  color: #ffffff;
}

.page-login__btn-primary:hover,
.page-login__login-button:hover {
  background-color: #d16b00; /* Slightly darker on hover */
}

.page-login__btn-secondary,
.page-login__register-link {
  background-color: #ffffff;
  color: #26A9E0;
  border-color: #26A9E0;
}

.page-login__btn-secondary:hover,
.page-login__register-link:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

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

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

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

.page-login__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 80px 0;
}

.page-login__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 80px 0;
}

.page-login__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  font-weight: 700;
  text-align: center;
  margin-bottom: 25px;
}

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

.page-login__light-bg .page-login__section-title {
  color: #26A9E0;
}

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

.page-login__benefits-grid,
.page-login__security-grid,
.page-login__troubleshooting-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-login__benefit-card,
.page-login__security-item,
.page-login__troubleshooting-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease;
}

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

.page-login__benefit-icon,
.page-login__security-icon {
  width: 100%; /* Ensure images are responsive within cards */
  height: auto;
  max-width: 200px; /* Max width for icons */
  margin: 0 auto 20px auto;
  display: block;
  border-radius: 8px; /* Slightly rounded corners for consistency */
  min-width: 200px; /* Minimum size requirement */
  min-height: 200px; /* Minimum size requirement */
}

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

.page-login__benefit-text,
.page-login__security-text,
.page-login__troubleshooting-text {
  font-size: 1em;
  color: #555555;
}

.page-login__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-login__responsible-list {
  list-style: none;
  padding: 0;
  margin: 0 auto 50px auto;
  max-width: 800px;
  text-align: left;
}

.page-login__responsible-item {
  position: relative;
  padding-left: 30px;
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #ffffff;
}

.page-login__responsible-item::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: #ffffff;
  font-weight: bold;
}

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

.page-login__faq-item {
  background-color: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: 600;
  color: #26A9E0;
  cursor: pointer;
  background-color: #eaf7fc;
  border-bottom: 1px solid #e0e0e0;
}

.page-login__faq-item[open] .page-login__faq-question {
  border-bottom: 1px solid #ddd;
}

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

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  font-weight: normal;
  color: #26A9E0;
}

.page-login__faq-item[open] .page-login__faq-toggle {
  content: '−';
}

.page-login__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #555555;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: clamp(2em, 5vw, 3em);
  }
}

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

  .page-login__hero-section {
    padding: 10px 0 40px 0; /* Adjusted top padding for mobile */
  }

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

  .page-login__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em);
  }

  .page-login__section-title {
    font-size: clamp(1.6em, 5.5vw, 2.2em);
  }

  .page-login__dark-bg,
  .page-login__light-bg {
    padding: 50px 0;
  }

  /* Image responsive adaptation */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* All containers with images/content */
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__hero-section,
  .page-login__benefits-section,
  .page-login__security-section,
  .page-login__troubleshooting-section,
  .page-login__responsible-gaming-section,
  .page-login__faq-section,
  .page-login__form-wrapper,
  .page-login__benefit-card,
  .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;
    overflow: hidden !important; /* Prevent horizontal scroll */
  }

  /* Button responsive adaptation */
  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login__cta-button,
  .page-login__login-button,
  .page-login__register-link,
  .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;
  }
  
  /* Button containers mobile adaptation */
  .page-login__form-actions,
  .page-login__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 0;
    padding-right: 0;
    flex-direction: column !important; /* Stack buttons vertically */
    gap: 15px;
    overflow: hidden !important;
  }

  .page-login__benefits-grid,
  .page-login__security-grid,
  .page-login__troubleshooting-grid {
    grid-template-columns: 1fr;
  }

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

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