/* style/login.css */

/* Base styles for the login page */
.page-login {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default text color for light body background */
  line-height: 1.6;
  background-color: #FFFFFF; /* Ensures consistency with shared.css body background */
}

/* Container for content sections */
.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box;
}

/* Section spacing and titles */
.page-login__hero-section,
.page-login__features-section,
.page-login__security-section,
.page-login__responsible-gaming-section,
.page-login__faq-section,
.page-login__cta-download-section {
  padding: 60px 0;
  text-align: center;
}

.page-login__hero-section {
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.page-login__hero-content {
  max-width: 800px;
  margin-bottom: 40px;
  z-index: 1;
}

.page-login__main-title {
  font-weight: bold;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #26A9E0;
  margin-bottom: 20px;
}

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

.page-login__hero-image {
  width: 100%;
  max-width: 1000px;
  height: auto;
  display: block;
  margin-top: 40px;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.page-login__login-card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.1);
  padding: 40px;
  max-width: 450px;
  width: 100%;
  text-align: left;
  z-index: 2;
  margin-top: 20px;
  box-sizing: border-box;
}

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

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

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

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

.page-login__form-input::placeholder {
  color: #aaaaaa;
}

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

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

.page-login__btn-primary {
  background: #EA7C07; /* Custom color for Login button */
  color: #ffffff;
  padding: 15px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  transition: background-color 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  box-sizing: border-box;
}

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

.page-login__register-text {
  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;
}

.page-login__section-title {
  font-size: 2.2em;
  font-weight: bold;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-login__section-description {
  font-size: 1.1em;
  color: #555555;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Dark background sections */
.page-login__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-login__dark-bg .page-login__section-title,
.page-login__dark-bg .page-login__section-description,
.page-login__dark-bg .page-login__feature-title,
.page-login__dark-bg .page-login__feature-text,
.page-login__dark-bg .page-login__sub-title,
.page-login__dark-bg p,
.page-login__dark-bg li {
  color: #ffffff;
}

.page-login__light-bg {
  background-color: #FFFFFF;
  color: #333333;
}

.page-login__btn-secondary {
  background: #ffffff;
  color: #26A9E0;
  padding: 12px 20px;
  border: 2px solid #26A9E0;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
  margin-top: 15px;
  box-sizing: border-box;
}

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

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

.page-login__feature-item {
  background: rgba(255, 255, 255, 0.15);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__feature-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-login__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-login__feature-text {
  font-size: 0.95em;
  line-height: 1.5;
  color: #f0f0f0;
  flex-grow: 1;
}

/* Security Section */
.page-login__security-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}

.page-login__security-text {
  flex: 1;
  min-width: 300px;
}

.page-login__sub-title {
  font-size: 1.6em;
  color: #26A9E0;
  margin-top: 30px;
  margin-bottom: 15px;
}

.page-login__security-text p {
  margin-bottom: 20px;
  color: #555555;
}

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

.page-login__security-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.1);
}

/* Responsible Gaming Section */
.page-login__responsible-gaming-content {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-login__responsible-gaming-content p {
  margin-bottom: 20px;
  color: #ffffff;
}

.page-login__responsible-gaming-list {
  list-style: disc inside;
  margin-left: 20px;
  margin-bottom: 30px;
  color: #ffffff;
}

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

/* FAQ Section */
.page-login__faq-list {
  max-width: 900px;
  margin: 40px auto;
  text-align: left;
}

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

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

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

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

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: #26A9E0;
}

.page-login__faq-answer {
  padding: 0 20px 20px 20px;
  color: #555555;
  line-height: 1.6;
}

.page-login__faq-answer p {
  margin-bottom: 10px;
}

.page-login__faq-answer a {
  color: #26A9E0;
  text-decoration: none;
}

.page-login__faq-answer a:hover {
  text-decoration: underline;
}

.page-login__cta-block {
  margin-top: 40px;
  font-size: 1.1em;
  color: #555555;
}

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

.page-login__cta-block .page-login__btn-link:hover {
  text-decoration: underline;
}

/* CTA Download Section */
.page-login__cta-download-section {
  padding: 80px 0;
}

.page-login__download-buttons {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
  margin-top: 40px;
}

.page-login__btn-download {
  background: #EA7C07;
  color: #ffffff;
  padding: 18px 35px;
  font-size: 1.2em;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  max-width: 300px;
  width: 100%;
}

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

.page-login__qr-code {
  width: 100%;
  max-width: 180px;
  height: auto;
  border: 5px solid #ffffff;
  border-radius: 10px;
}

.page-login__app-screenshot {
  width: 100%;
  max-width: 700px;
  height: auto;
  margin-top: 50px;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-login__hero-content,
  .page-login__login-card {
    padding: 30px;
  }
  .page-login__features-grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__sub-title {
    font-size: 1.4em;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section,
  .page-login__features-section,
  .page-login__security-section,
  .page-login__responsible-gaming-section,
  .page-login__faq-section,
  .page-login__cta-download-section {
    padding: 40px 0;
  }

  .page-login__hero-section {
    padding-top: 10px !important;
  }

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

  .page-login__main-title {
    font-size: 1.8em;
  }

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

  .page-login__login-card {
    padding: 30px 20px;
    margin-top: 30px;
  }

  .page-login__card-title {
    font-size: 1.5em;
  }

  .page-login__btn-primary,
  .page-login__btn-secondary,
  .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__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__features-grid {
    grid-template-columns: 1fr;
  }

  .page-login__security-content {
    flex-direction: column;
  }

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

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

  .page-login__section-description {
    font-size: 1em;
  }

  .page-login__sub-title {
    font-size: 1.2em;
  }

  .page-login img,
  .page-login__video {
    max-width: 100% !important;
    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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important; /* Ensure no overflow for containers */
  }
  .page-login__faq-item summary {
    font-size: 1em;
  }

  .page-login__download-buttons {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .page-login__hero-content {
    padding: 0 10px;
  }
  .page-login__login-card {
    padding: 25px 15px;
  }
  .page-login__main-title {
    font-size: 1.5em;
  }
  .page-login__card-title {
    font-size: 1.3em;
  }
  .page-login__btn-primary,
  .page-login__btn-download {
    font-size: 1em;
  }
  .page-login__section-title {
    font-size: 1.5em;
  }
}