/* style/login.css */

/* Base styles for page-login */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light backgrounds */
  background-color: #ffffff; /* Default background for main content sections */
}

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

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

/* Section styling */
.page-login__hero-section,
.page-login__why-login-section,
.page-login__login-guide-section,
.page-login__troubleshooting-section,
.page-login__app-download-section,
.page-login__security-rg-section,
.page-login__faq-section,
.page-login__cta-section {
  padding: 60px 0;
  text-align: center;
}

/* Specific background colors */
.page-login__hero-section {
  background-color: #26A9E0;
  color: #ffffff;
  padding-bottom: 80px;
}

.page-login__hero-section .page-login__forgot-password-link,
.page-login__hero-section .page-login__register-link {
  color: #ffffff;
  text-decoration: underline;
}

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

.page-login__dark-bg {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-login__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: inherit;
}

.page-login__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: inherit;
}

/* Hero Content */
.page-login__hero-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 0;
}

.page-login__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-login__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 900px;
  color: #ffffff;
}

.page-login__login-form-wrapper {
  background: rgba(255, 255, 255, 0.15);
  padding: 40px;
  border-radius: 10px;
  max-width: 450px;
  width: 100%;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  text-align: left;
  margin-bottom: 40px;
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ffffff;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.9);
  color: #333333;
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.page-login__remember-me {
  color: #ffffff;
  font-size: 0.9em;
}

.page-login__btn-login {
  background-color: #EA7C07; /* Custom color for Login */
  color: #ffffff;
  padding: 15px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
}

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

.page-login__register-text {
  margin-top: 20px;
  text-align: center;
  color: #ffffff;
}

.page-login__hero-image-wrapper {
  max-width: 600px;
  margin-top: 40px;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

/* Features Grid */
.page-login__features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto;
}

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

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

.page-login__feature-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  border-radius: 5px;
  object-fit: cover;
}

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

.page-login__feature-text {
  color: #555555;
}

/* Login Guide */
.page-login__guide-content {
  display: flex;
  gap: 40px;
  align-items: center;
  text-align: left;
  max-width: 1000px;
  margin: 0 auto;
}

.page-login__guide-steps {
  flex: 1;
}

.page-login__ordered-list {
  list-style: decimal;
  padding-left: 25px;
}

.page-login__ordered-list li {
  margin-bottom: 15px;
  font-size: 1.1em;
  color: #333333;
}

.page-login__guide-image-wrapper {
  flex: 1;
  min-width: 300px;
}

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

/* Troubleshooting */
.page-login__troubleshooting-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  max-width: 1000px;
  margin: 0 auto 40px auto;
}

.page-login__troubleshooting-card {
  background-color: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: left;
}

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

.page-login__troubleshooting-text {
  color: #555555;
}

.page-login__troubleshooting-cta {
  margin-top: 30px;
}

/* App Download */
.page-login__app-download-section {
  padding: 80px 0;
}

.page-login__app-content {
  max-width: 600px;
  margin: 0 auto;
  text-align: center;
}

.page-login__app-benefits-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  display: inline-block;
  text-align: left;
}

.page-login__app-benefits-list li {
  margin-bottom: 10px;
  font-size: 1.1em;
  color: #ffffff;
  position: relative;
  padding-left: 25px;
}

.page-login__app-benefits-list li::before {
  content: '✅';
  position: absolute;
  left: 0;
  color: #ffffff;
}

.page-login__app-image-wrapper {
  max-width: 500px;
  margin: 40px auto 0 auto;
}

.page-login__app-image {
  width: 100%;
  height: auto;
  border-radius: 15px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
}

/* Security & Responsible Gaming */
.page-login__security-rg-section {
  background-color: #f0f8ff;
}

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

.page-login__security-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  text-align: left;
}

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

.page-login__security-item-text {
  color: #555555;
}

.page-login__responsible-gaming-link {
  margin-top: 40px;
}

.page-login__btn-text-link {
  color: #26A9E0;
  text-decoration: underline;
  font-weight: bold;
  font-size: 1.1em;
  transition: color 0.3s ease;
}

.page-login__btn-text-link:hover {
  color: #1a7bb0;
}

/* FAQ Section */
.page-login__faq-section {
  padding-bottom: 80px;
}

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

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

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #f8f8f8;
  border-bottom: 1px solid #e0e0e0;
  transition: background-color 0.3s ease;
  list-style: none; /* For details/summary */
}

.page-login__faq-question::-webkit-details-marker { /* For details/summary */
  display: none;
}

.page-login__faq-item[open] .page-login__faq-question {
  background-color: #eef7ff;
  border-bottom-color: #d0e7ff;
}

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

.page-login__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-login__faq-item[open] .page-login__faq-toggle {
  transform: rotate(45deg); /* Change + to X or similar */
}

.page-login__faq-answer {
  padding: 20px 25px;
  font-size: 1.05em;
  color: #555555;
  text-align: left;
  /* max-height is managed by browser for <details> */
}

/* Call to Action */
.page-login__cta-section {
  background-color: #26A9E0;
  color: #ffffff;
  padding-top: 80px;
  padding-bottom: 80px;
}

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

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

.page-login__btn-primary {
  background-color: #EA7C07;
  color: #ffffff;
  border: 2px solid #EA7C07;
}

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

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

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

.page-login__cta-image {
  width: 100%;
  height: auto;
  max-width: 800px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  margin-top: 40px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 2.8em;
  }
  .page-login__section-title {
    font-size: 2.2em;
  }
  .page-login__guide-content {
    flex-direction: column;
  }
  .page-login__guide-steps, .page-login__guide-image-wrapper {
    flex: none;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-login__main-title {
    font-size: 2.2em;
  }
  .page-login__hero-description {
    font-size: 1em;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__section-description {
    font-size: 0.95em;
  }
  .page-login__hero-image-wrapper {
    margin-top: 20px;
  }
  .page-login__features-grid,
  .page-login__troubleshooting-grid,
  .page-login__security-grid {
    grid-template-columns: 1fr;
  }
  .page-login__app-content {
    padding: 0 15px;
  }
  .page-login__app-image-wrapper {
    padding: 0 15px;
  }
  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
  }
  .page-login__btn-primary,
  .page-login__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
  }

  /* Image responsive enforcement */
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__hero-section,
  .page-login__login-form-wrapper,
  .page-login__hero-image-wrapper,
  .page-login__feature-card,
  .page-login__guide-content,
  .page-login__guide-image-wrapper,
  .page-login__troubleshooting-card,
  .page-login__app-content,
  .page-login__app-image-wrapper,
  .page-login__security-item,
  .page-login__faq-item,
  .page-login__cta-image {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Video responsive enforcement (if any) */
  .page-login video,
  .page-login__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .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;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 1.8em;
  }
  .page-login__section-title {
    font-size: 1.5em;
  }
  .page-login__login-form-wrapper {
    padding: 25px;
  }
  .page-login__form-options {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
  .page-login__btn-login {
    font-size: 1em;
    padding: 12px 20px;
  }
  .page-login__feature-icon {
    width: 80px;
    height: 80px;
  }
  .page-login__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-login__faq-answer {
    font-size: 1em;
    padding: 15px 20px;
  }
}