/* style/login.css */

/* --- General Page Styles --- */
.page-login {
  color: #333333; /* Default text color for light backgrounds */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #FFFFFF; /* Main content area background */
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

.page-login__hero-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #ffffff; /* Text color for hero overlay */
}

.page-login__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
}

.page-login__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1;
}

.page-login__hero-content {
  text-align: center;
  max-width: 800px;
  padding: 40px;
  border-radius: 10px;
  background: rgba(1, 116, 57, 0.85); /* Brand color with transparency for hero content */
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  z-index: 2;
  color: #ffffff; /* Ensure text is white on dark green background */
}

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

.page-login__description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-login__login-form-wrapper {
  background-color: #FFFFFF; /* White background for the form */
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  margin: 0 auto;
  color: #333333; /* Dark text for form labels and inputs */
}

.page-login__login-form {
  display: flex;
  flex-direction: column;
}

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

.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 #ddd;
  border-radius: 6px;
  font-size: 1em;
  box-sizing: border-box;
  color: #333333;
  background-color: #f9f9f9;
}

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

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

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

.page-login__checkbox {
  margin-right: 8px;
}

.page-login__checkbox-label {
  color: #555555;
}

.page-login__forgot-password {
  color: #017439; /* Brand color for link */
  text-decoration: none;
}

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

.page-login__btn-primary {
  background-color: #C30808; /* Login button color */
  color: #FFFFFF; /* Text color for login button (contrast fix) */
  padding: 15px 25px;
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  text-align: center;
  display: block;
  box-sizing: border-box;
}

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

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

.page-login__register-link {
  color: #017439; /* Brand color for link */
  text-decoration: none;
  font-weight: bold;
}

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

/* --- Content Sections --- */
.page-login__content-area {
  max-width: 1200px;
  margin: 0 auto;
  padding: 60px 20px;
}

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

.page-login__dark-bg {
  background-color: #017439; /* Brand primary color for dark sections */
  color: #ffffff;
}

.page-login__section-title {
  font-size: 2.2em;
  text-align: center;
  margin-bottom: 20px;
  color: inherit; /* Inherits from parent, will be white on dark-bg, dark on light-bg */
}

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

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

.page-login__benefit-item {
  text-align: center;
  padding: 25px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
}

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

.page-login__benefit-icon {
  width: 100%;
  height: auto;
  max-width: 150px;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-login__benefit-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: #017439; /* Brand color for titles */
}

.page-login__benefit-text {
  font-size: 0.95em;
  color: #555555;
}

.page-login__cta-section {
  text-align: center;
  margin-top: 60px;
  padding: 30px;
  background-color: rgba(1, 116, 57, 0.1); /* Light transparent green */
  border-radius: 10px;
}

.page-login__cta-text {
  font-size: 1.3em;
  margin-bottom: 25px;
  color: #017439;
  font-weight: bold;
}

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

.page-login__management-item {
  background-color: rgba(255, 255, 255, 0.1); /* Light background on dark section */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  color: #ffffff;
}

.page-login__management-title {
  font-size: 1.3em;
  margin-bottom: 15px;
  color: #FFFF00; /* Yellow for sub-titles on dark background */
}

.page-login__management-text {
  font-size: 0.95em;
  color: #f0f0f0;
}

/* Games Preview Section */
.page-login__games-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-login__game-card {
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  text-align: center;
  transition: transform 0.3s ease;
}

.page-login__game-card:hover {
  transform: translateY(-5px);
}

.page-login__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  margin-bottom: 15px;
}

.page-login__game-title {
  font-size: 1.3em;
  margin: 15px 15px 10px;
  color: #017439;
}

.page-login__game-title a {
  color: #017439;
  text-decoration: none;
}

.page-login__game-title a:hover {
  text-decoration: underline;
}

.page-login__game-text {
  font-size: 0.95em;
  color: #555555;
  padding: 0 15px 20px;
}

/* Responsible Gaming Section */
.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-color: rgba(255, 255, 255, 0.1); /* Light background on dark section */
  padding: 25px;
  border-radius: 10px;
  color: #ffffff;
  text-align: center;
}

.page-login__responsible-title {
  font-size: 1.3em;
  margin-bottom: 15px;
  color: #FFFF00; /* Yellow for titles on dark background */
}

.page-login__responsible-text {
  font-size: 0.95em;
  color: #f0f0f0;
}

.page-login__btn-secondary {
  background-color: #FFFFFF;
  color: #017439;
  border: 2px solid #017439;
  padding: 15px 25px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  text-align: center;
  display: inline-block;
  box-sizing: border-box;
}

.page-login__btn-secondary:hover {
  background-color: #017439;
  color: #FFFFFF;
}

/* FAQ Section */
.page-login__faq-list {
  margin-top: 40px;
}

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

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  background-color: #FFFFFF;
  border-bottom: 1px solid #eee;
  color: #017439; /* Brand color for question */
  list-style: none; /* For details/summary */
}

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

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

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

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

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

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

/* Download App Section */
.page-login__download-app {
  text-align: center;
  padding: 80px 20px;
}

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

/* --- Responsive Design --- */
/* Tablet & Mobile */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 2.2em;
  }

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

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

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

  .page-login__hero-content {
    padding: 30px;
  }
}

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

  .page-login__hero-section {
    min-height: 500px;
  }

  .page-login__hero-content {
    max-width: 90%;
    padding: 20px;
  }

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

  .page-login__description {
    font-size: 0.95em;
    margin-bottom: 20px;
  }

  .page-login__login-form-wrapper {
    max-width: 100%;
    padding: 20px;
  }

  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .page-login__content-area {
    padding: 40px 15px;
  }

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

  .page-login__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-login__benefits-grid,
  .page-login__management-grid,
  .page-login__games-grid,
  .page-login__responsible-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login__benefit-item,
  .page-login__management-item,
  .page-login__game-card,
  .page-login__responsible-item {
    padding: 20px;
  }

  .page-login__game-image {
    height: 180px;
  }

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