/* style/login.css */

/* Base styles for the login page */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Inherited from shared, but explicitly stated for context */
}

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

.page-login__section-padding {
  padding: 80px 0;
}

.page-login__section-title {
  font-size: 2.5em;
  color: #FFD700;
  text-align: center;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

/* Hero Section */
.page-login__hero-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  padding: 100px 20px;
  background: linear-gradient(135deg, #1A202C, #0d0d0d);
  position: relative;
  overflow: hidden;
  padding-top: calc(var(--header-offset, 120px) + 60px); /* Adjust for header offset */
}

.page-login__hero-content-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  text-align: center;
  z-index: 1;
}

.page-login__hero-title {
  font-size: 3em;
  color: #FFD700;
  margin-bottom: 20px;
  line-height: 1.2;
}

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

.page-login__login-form-container {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  margin: 0 auto;
}

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

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

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

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

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  font-size: 0.9em;
}

.page-login__remember-me {
  color: #f0f0f0;
  display: flex;
  align-items: center;
}

.page-login__checkbox {
  margin-right: 8px;
  accent-color: #FFD700;
}

.page-login__forgot-password-link {
  color: #FFD700;
  text-decoration: none;
}

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

.page-login__btn-primary, .page-login__btn-secondary {
  display: block;
  width: 100%;
  padding: 15px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
}

.page-login__btn-primary {
  background-color: #FFD700;
  color: #1A202C;
  margin-bottom: 15px;
}

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

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

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

.page-login__register-text {
  color: #f0f0f0;
  text-align: center;
  margin-top: 20px;
  font-size: 0.95em;
}

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

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

.page-login__hero-image-wrapper {
  flex: 1;
  min-width: 400px;
  max-width: 600px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 0;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
  object-fit: cover;
}

/* Why Choose Section */
.page-login__why-choose-section {
  background-color: #1A202C;
  color: #ffffff;
}

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

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

.page-login__feature-card:hover {
  transform: translateY(-10px);
}

.page-login__feature-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

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

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

/* Guide Section */
.page-login__dark-bg {
  background-color: #1A202C;
  color: #ffffff;
}

.page-login__guide-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 50px;
}

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

.page-login__guide-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 25px;
  border-radius: 8px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-login__guide-step-title {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-login__guide-step-text {
  font-size: 1em;
  color: #f0f0f0;
}

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

.page-login__guide-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
  object-fit: cover;
}

/* Troubleshoot Section */
.page-login__troubleshoot-section {
  background-color: #121212;
  color: #ffffff;
}

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

.page-login__troubleshoot-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-login__troubleshoot-title {
  font-size: 1.6em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-login__troubleshoot-text {
  font-size: 1em;
  color: #f0f0f0;
}

.page-login__cta-button-wrapper {
  text-align: center;
  margin-top: 50px;
}

/* Responsible Gaming Section */
.page-login__responsible-gaming-section {
  background-color: #1A202C;
  color: #ffffff;
}

/* FAQ Section */
.page-login__faq-section {
  background-color: #121212;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__faq-grid {
  width: 100%;
  max-width: 800px;
  margin-top: 50px;
}

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

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #1A202C;
  color: #FFD700;
  font-size: 1.2em;
  font-weight: bold;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-login__faq-title {
  margin: 0;
  color: #FFD700;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  transition: transform 0.3s ease;
}

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

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 20px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: rgba(255, 255, 255, 0.05);
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show all content */
  padding: 20px !important;
}

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

.page-login__faq-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  margin-top: 50px;
  box-shadow: 0 5px 25px rgba(0, 0, 0, 0.5);
  object-fit: cover;
}

/* Final CTA Section */
.page-login__cta-section {
  background: linear-gradient(135deg, #0d0d0d, #1A202C);
  color: #ffffff;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.page-login__cta-content {
  z-index: 1;
  max-width: 800px;
}

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

.page-login__cta-image {
  width: 100%;
  height: auto;
  position: absolute;
  bottom: 0;
  left: 0;
  opacity: 0.2;
  z-index: 0;
  object-fit: cover;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__hero-title {
    font-size: 2.5em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__hero-image-wrapper, .page-login__guide-image-wrapper {
    min-width: unset;
    width: 100%;
  }
}

@media (max-width: 768px) {
  .page-login__section-padding {
    padding: 60px 0;
  }
  .page-login__hero-section {
    flex-direction: column;
    padding: 80px 15px;
    padding-top: calc(var(--header-offset, 120px) + 30px);
  }
  .page-login__hero-content-wrapper {
    max-width: 100%;
  }
  .page-login__hero-title {
    font-size: 2em;
  }
  .page-login__hero-description {
    font-size: 1em;
  }
  .page-login__hero-image-wrapper {
    order: -1; /* Image above text on mobile */
    margin-bottom: 30px;
  }
  .page-login__login-form-container {
    max-width: 100%;
    padding: 20px;
  }
  .page-login__features-grid, .page-login__troubleshoot-grid {
    grid-template-columns: 1fr;
  }
  .page-login__guide-content {
    flex-direction: column;
  }
  .page-login__guide-steps {
    min-width: unset;
    width: 100%;
  }
  .page-login__guide-image-wrapper {
    min-width: unset;
    width: 100%;
    order: -1;
  }
  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  /* Mobile specific overrides for images, videos, buttons */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__login-form-container,
  .page-login__cta-button-wrapper,
  .page-login__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }
  .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__faq-section .page-login__container {
    padding-left: 0;
    padding-right: 0;
  }
  .page-login__faq-item {
    margin-left: 15px;
    margin-right: 15px;
  }
}

@media (max-width: 480px) {
  .page-login__hero-title {
    font-size: 1.8em;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__faq-question {
    font-size: 1em;
  }
  .page-login__feature-title, .page-login__troubleshoot-title, .page-login__guide-step-title {
    font-size: 1.3em;
  }
}