/* style/login.css */

/* Base styles for the login page, ensures light text on dark body background */
.page-login {
  font-family: 'Arial', sans-serif;
  color: #ffffff; /* Default text color for the page, assuming dark body background */
  line-height: 1.6;
  background-color: transparent; /* Body background is handled by shared.css var(--black-color) */
}

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

/* Section spacing and titles */
.page-login__section-title {
  font-size: 2.5em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #26A9E0;
}

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

.page-login__text-block {
  font-size: 1.1em;
  text-align: center;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
}

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

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

.page-login__link:hover {
  text-decoration: none;
  color: #EA7C07;
}

/* Hero Section - Image above content */
.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  padding-bottom: 60px;
  overflow: hidden;
  color: #ffffff;
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-height: 500px; /* Limit height of the image */
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 40px; /* Space between image and content */
}

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

.page-login__hero-content {
  text-align: center;
  z-index: 1;
  position: relative;
}

.page-login__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-bottom: 20px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  font-size: clamp(2.2em, 4vw, 3em); /* Responsive font size for H1 */
}

.page-login__description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-login__form-wrapper {
  background: #1a1a1a; /* Darker background for the form on dark hero */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 500px;
  margin: 0 auto;
  color: #ffffff;
}

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

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #444;
  border-radius: 5px;
  background-color: #333;
  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: 30px;
}

.page-login__btn-login {
  background-color: #EA7C07; /* Custom login color */
  color: #ffffff;
  padding: 14px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  display: block;
  text-align: center;
  box-sizing: border-box;
}

.page-login__btn-login:hover {
  background-color: #d46f06;
}

.page-login__forgot-password {
  color: #26A9E0;
  text-decoration: none;
  text-align: center;
  font-size: 0.95em;
}

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

.page-login__register-prompt {
  text-align: center;
  margin-top: 25px;
  color: #f0f0f0;
}

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

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

/* Content Area */
.page-login__content-area {
  padding: 60px 20px;
  background: #0d0d0d; /* Dark background for content */
  color: #ffffff;
}

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

.page-login__feature-card {
  background: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
}

.page-login__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-login__feature-icon {
  width: 100%;
  height: auto;
  max-width: 250px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  border-radius: 5px;
}

.page-login__feature-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-login__feature-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* How to Login Section */
.page-login__how-to-login {
  padding: 60px 20px;
  background: #26A9E0; /* Brand color background */
  color: #ffffff;
}

.page-login__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-login__step-item {
  background: rgba(0, 0, 0, 0.2); /* Darker background for steps */
  margin-bottom: 20px;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  text-align: left;
}

.page-login__step-title {
  font-size: 1.6em;
  font-weight: bold;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-login__step-description {
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-login__subsection-title {
  font-size: 2em;
  font-weight: bold;
  text-align: center;
  margin-top: 60px;
  margin-bottom: 30px;
  color: #ffffff;
}

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

.page-login__troubleshoot-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 0 auto;
}

.page-login__troubleshoot-item {
  background: rgba(0, 0, 0, 0.2); /* Darker background for troubleshooting */
  margin-bottom: 15px;
  padding: 20px;
  border-radius: 8px;
  font-size: 1em;
  color: #f0f0f0;
}

.page-login__troubleshoot-item strong {
  color: #ffffff;
}

/* Register CTA Section */
.page-login__register-cta {
  padding: 60px 20px;
  background: #0d0d0d; /* Dark background */
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  color: #ffffff;
}

.page-login__register-content {
  flex: 1;
  min-width: 300px;
}

.page-login__benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 25px;
  margin-bottom: 35px;
  text-align: left;
}

.page-login__benefits-list li {
  font-size: 1.1em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  color: #f0f0f0;
}

.page-login__icon {
  color: #26A9E0;
  margin-right: 10px;
  font-weight: bold;
  font-size: 1.2em;
}

.page-login__btn-register {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  display: inline-block;
  text-align: center;
  box-sizing: border-box;
}

.page-login__btn-register:hover {
  background-color: #1e87b7;
}

.page-login__register-image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-login__register-image {
  width: 100%;
  height: auto;
  max-width: 600px;
  border-radius: 10px;
  display: block;
}

/* Mobile App Section */
.page-login__mobile-app {
  padding: 60px 20px;
  background: #26A9E0; /* Brand color background */
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
  color: #ffffff;
}

.page-login__mobile-content {
  flex: 1;
  min-width: 300px;
}

.page-login__app-benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 25px;
  margin-bottom: 35px;
  text-align: left;
}

.page-login__app-benefits-list li {
  font-size: 1.1em;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  color: #f0f0f0;
}

.page-login__icon--white {
  color: #ffffff;
}

.page-login__btn-download {
  background-color: #EA7C07;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  display: inline-block;
  text-align: center;
  box-sizing: border-box;
}

.page-login__btn-download:hover {
  background-color: #d46f06;
}

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

.page-login__mobile-image {
  width: 100%;
  height: auto;
  max-width: 600px;
  border-radius: 10px;
  display: block;
}

/* Responsible Gaming Section */
.page-login__responsible-gaming {
  padding: 60px 20px;
  background: #0d0d0d; /* Dark background */
  color: #ffffff;
}

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

.page-login__responsible-item {
  background: rgba(255, 255, 255, 0.05); /* Slightly transparent white on dark background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-login__responsible-title {
  font-size: 1.5em;
  font-weight: bold;
  margin-bottom: 15px;
  color: #26A9E0;
}

.page-login__responsible-description {
  font-size: 1em;
  color: #f0f0f0;
}

/* FAQ Section */
.page-login__faq-section {
  padding: 60px 20px;
  background: #26A9E0; /* Brand color background */
  color: #ffffff;
}

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

.page-login__faq-item {
  background: rgba(0, 0, 0, 0.2); /* Darker background for FAQ items */
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  color: #f0f0f0;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #ffffff;
  list-style: none; /* For details/summary */
}

.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;
  margin-left: 15px;
  transition: transform 0.3s ease;
  color: #ffffff;
}

.page-login__faq-item[open] .page-login__faq-toggle {
  transform: rotate(45deg);
}

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

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

/* Contact CTA Section */
.page-login__contact-cta {
  padding: 60px 20px;
  background: #0d0d0d; /* Dark background */
  text-align: center;
  color: #ffffff;
}

.page-login__btn-contact {
  background-color: #26A9E0;
  color: #ffffff;
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
  display: inline-block;
  margin-top: 30px;
  box-sizing: border-box;
}

.page-login__btn-contact:hover {
  background-color: #1e87b7;
}

/* Responsive styles */
@media (max-width: 992px) {
  .page-login__hero-section {
    padding-bottom: 40px;
  }

  .page-login__main-title {
    font-size: clamp(2em, 5vw, 2.8em);
  }

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

  .page-login__register-cta,
  .page-login__mobile-app {
    flex-direction: column;
    text-align: center;
  }

  .page-login__register-image-wrapper,
  .page-login__mobile-image-wrapper {
    margin-top: 30px;
  }
}

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

  .page-login__section-title {
    font-size: 2em;
    margin-bottom: 30px;
  }

  .page-login__text-block {
    font-size: 1em;
  }

  .page-login__hero-section {
    padding-top: 10px !important; /* body handles --header-offset, this is decorative */
    padding-bottom: 30px;
  }

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

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

  .page-login__form-title {
    font-size: 1.5em;
    margin-bottom: 25px;
  }

  .page-login__form-actions {
    gap: 10px;
  }

  .page-login__btn-login,
  .page-login__btn-register,
  .page-login__btn-download,
  .page-login__btn-contact,
  .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,
  .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;
  }

  .page-login__content-area,
  .page-login__how-to-login,
  .page-login__register-cta,
  .page-login__mobile-app,
  .page-login__responsible-gaming,
  .page-login__faq-section,
  .page-login__contact-cta {
    padding: 40px 15px;
  }

  /* Image responsive */
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-login__hero-image-wrapper,
  .page-login__register-image-wrapper,
  .page-login__mobile-image-wrapper,
  .page-login__feature-icon,
  .page-login__responsible-grid,
  .page-login__features-grid,
  .page-login__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

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

  .page-login__feature-card,
  .page-login__responsible-item {
    padding: 25px 15px;
  }

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

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

@media (max-width: 480px) {
  .page-login__form-wrapper {
    padding: 25px;
  }

  .page-login__form-title {
    font-size: 1.3em;
  }

  .page-login__btn-login {
    font-size: 1em;
    padding: 12px 20px;
  }

  .page-login__forgot-password {
    font-size: 0.9em;
  }

  .page-login__feature-title,
  .page-login__step-title,
  .page-login__responsible-title {
    font-size: 1.3em;
  }

  .page-login__benefits-list li,
  .page-login__app-benefits-list li {
    font-size: 1em;
  }
}