/* style/login.css */

/* Base styles for the login page */
.page-login {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Dark background from shared.css, so light text */
  background-color: transparent; /* body background is handled by shared.css */
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
  background-image: url('[GALLERY:hero:1920x1080:68gamebai,login_banner,secure_access,gaming_platform]');
  background-size: cover;
  background-position: center;
  color: #ffffff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px; /* Adjust as needed */
  flex-direction: column;
}

.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

.page-login__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

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

.page-login__login-form-wrapper {
  background: rgba(0, 0, 0, 0.7); /* Darker overlay for form */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 450px;
  margin: 0 auto;
}

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

.page-login__form-group {
  text-align: left;
}

.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 #017439;
  border-radius: 5px;
  background-color: #333;
  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;
  font-size: 0.9em;
}

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

.page-login__checkbox {
  width: 16px;
  height: 16px;
  accent-color: #017439; /* Brand color for checkbox */
}

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

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

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

.page-login__btn-login {
  background-color: #C30808; /* Custom Login button color */
  color: #FFFF00; /* Custom Login font color */
  padding: 14px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
  box-sizing: border-box;
}

.page-login__btn-login:hover {
  background-color: #a00606; /* Darker shade on hover */
}

.page-login__register-cta {
  margin-top: 25px;
  text-align: center;
}

.page-login__register-text {
  color: #f0f0f0;
  margin-bottom: 15px;
}

.page-login__btn-register {
  background-color: #C30808; /* Custom Register button color */
  color: #FFFF00; /* Custom Register font color */
  padding: 14px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  display: inline-block;
  width: 100%;
  box-sizing: border-box;
}

.page-login__btn-register:hover {
  background-color: #a00606; /* Darker shade on hover */
}

/* General Section Styles */
.page-login__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 50px;
  color: #017439; /* Default for light background */
}

.page-login__light-bg .page-login__section-title {
  color: #017439; /* Brand color on light background */
}

.page-login__dark-bg .page-login__section-title {
  color: #ffffff; /* White text on dark background */
}

.page-login__paragraph {
  font-size: 1.1em;
  margin-bottom: 20px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #333333; /* Default for light background */
}

.page-login__dark-bg .page-login__paragraph {
  color: #f0f0f0; /* Light text on dark background */
}

/* Advantages Section */
.page-login__advantages-section {
  padding: 80px 0;
  background-color: #f8f8f8; /* Light background */
  color: #333333; /* Dark text */
}

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

.page-login__card {
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 25px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #333333; /* Dark text on white card */
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

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

.page-login__card-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-height: 200px; /* Enforce min-size */
  object-fit: cover;
}

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

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

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

.page-login__card-description {
  font-size: 1em;
  color: #555555;
  text-align: left;
}

/* Security Section */
.page-login__security-section {
  padding: 80px 0;
  background-color: #017439; /* Brand primary color */
  color: #ffffff; /* White text */
}

.page-login__security-item {
  text-align: center;
  background: rgba(0, 0, 0, 0.3); /* Slightly transparent dark background */
  padding: 25px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-login__security-icon {
  max-width: 250px; /* Icons can be visually smaller, but still meet > 200px min-size */
  height: auto;
  margin-bottom: 20px;
  /* filter: brightness(1.2); */ /* Removed filter to comply with rules */
  min-width: 200px;
  min-height: 200px;
}

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

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

/* Troubleshooting Section */
.page-login__troubleshooting-section {
  padding: 80px 0;
  background-color: #f8f8f8; /* Light background */
  color: #333333; /* Dark text */
}

.page-login__content-wrapper {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: flex-start;
  justify-content: center;
}

.page-login__text-block {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  text-align: left;
}

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

.page-login__text-block .page-login__paragraph {
  text-align: left;
  margin-bottom: 25px;
  color: #555555;
}

.page-login__image-block {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
}

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

.page-login__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
  display: inline-block;
  margin-top: 20px;
  white-space: normal;
  word-wrap: break-word;
  box-sizing: border-box;
  max-width: 100%;
}

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

/* Register Now Section */
.page-login__register-now-section {
  padding: 80px 0;
  background-color: #1a1a2e; /* Dark background */
  color: #ffffff;
  text-align: center;
}

.page-login__register-now-content {
  max-width: 900px;
}

.page-login__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

.page-login__btn-primary {
  background-color: #017439;
  color: #ffffff;
  padding: 14px 30px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  display: inline-block;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text wrap */
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
}

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


/* FAQ Section */
.page-login__faq-section {
  padding: 80px 0;
  background-color: #f8f8f8; /* Light background */
  color: #333333;
}

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

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

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  color: #017439;
  background-color: #e6f7ed; /* Light green background for question */
  transition: background-color 0.3s ease;
}

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

.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); /* Plus to X / Minus */
}

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #555555;
  background-color: #ffffff;
}

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

.page-login__faq-answer p {
  margin: 0;
  font-size: 1em;
  text-align: left;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 2.8em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__grid {
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  }
  .page-login__content-wrapper {
    flex-direction: column;
    align-items: center;
  }
  .page-login__text-block,
  .page-login__image-block {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
    min-height: 500px;
  }
  .page-login__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }
  .page-login__description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-login__login-form-wrapper {
    padding: 30px;
    max-width: 100%;
  }
  .page-login__form-input {
    padding: 10px 12px;
  }
  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .page-login__btn-login,
  .page-login__btn-register {
    font-size: 1em;
    padding: 12px 20px;
    width: 100% !important; /* Mobile button full width */
  }

  /* Section padding adjustments */
  .page-login__advantages-section,
  .page-login__security-section,
  .page-login__troubleshooting-section,
  .page-login__register-now-section,
  .page-login__faq-section {
    padding: 50px 0;
  }

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