.page-login {
  background-color: var(--background-color, #08160F); /* Fallback if shared var not present */
  color: var(--text-main, #F2FFF6);
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding-bottom: 60px;
  padding-top: 10px; /* Small top padding, body handles --header-offset */
  background-color: #08160F;
  color: #F2FFF6;
  text-align: center;
}

.page-login__hero-image-wrapper {
  width: 100%;
  overflow: hidden;
  position: relative;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  max-height: 675px; /* Limit height for hero image */
}

.page-login__hero-content {
  position: relative;
  z-index: 10;
  padding: 30px 20px;
  max-width: 900px;
  margin-top: -100px; /* Pull content up over the image slightly for visual effect, but not overlap text on image */
  background: linear-gradient(180deg, rgba(8, 22, 15, 0.8) 0%, rgba(8, 22, 15, 1) 100%);
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.page-login__main-title {
  font-size: clamp(2em, 4vw, 3.5em);
  font-weight: bold;
  color: #F2C14E; /* Gold color for main title */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

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

.page-login__cta-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  justify-content: center;
}

.page-login__btn {
  display: inline-block;
  padding: 14px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-primary {
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: 2px solid transparent;
}

.page-login__btn-primary:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-login__btn-secondary {
  background: transparent;
  color: #F2C14E; /* Gold color for secondary button text */
  border: 2px solid #F2C14E;
}

.page-login__btn-secondary:hover {
  background: #F2C14E;
  color: #08160F;
  box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-login__dark-section {
  background-color: #0A4B2C; /* Deep Green */
  color: #F2FFF6;
}

.page-login__section-title {
  font-size: clamp(1.8em, 3.5vw, 2.8em);
  color: #F2C14E;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.page-login__section-description {
  font-size: 1.1em;
  color: #A7D9B8;
  text-align: center;
  margin-bottom: 40px;
}

.page-login__login-form-section {
  padding: 80px 0;
}

.page-login__login-form {
  background-color: #11271B; /* Card BG */
  padding: 40px;
  border-radius: 12px;
  max-width: 500px;
  margin: 0 auto;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  border: 1px solid #2E7A4E;
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 10px;
  font-size: 1em;
  color: #F2FFF6;
  font-weight: bold;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #2E7A4E;
  border-radius: 8px;
  background-color: #08160F; /* Background */
  color: #F2FFF6;
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: #A7D9B8;
  opacity: 0.7;
}

.page-login__form-input:focus {
  outline: none;
  border-color: #2AD16F;
  box-shadow: 0 0 0 3px rgba(42, 209, 111, 0.3);
}

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

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

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

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

.page-login__forgot-password {
  color: #F2C14E;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
  color: #57E38D;
}

.page-login__btn-submit {
  width: 100%;
  padding: 15px;
  font-size: 1.2em;
  background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: bold;
}

.page-login__btn-submit:hover {
  background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
  box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-login__register-text {
  text-align: center;
  margin-top: 30px;
  color: #A7D9B8;
  font-size: 1em;
}

.page-login__register-link {
  color: #F2C14E;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-login__register-link:hover {
  color: #57E38D;
}

.page-login__benefits-section {
  padding: 80px 0;
  background-color: #08160F;
}

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

.page-login__card {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E;
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #F2FFF6;
}

.page-login__card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

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

.page-login__card-title {
  font-size: 1.5em;
  color: #F2C14E;
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__card-text {
  font-size: 0.95em;
  color: #A7D9B8;
}

.page-login__game-showcase-section {
  padding: 80px 0;
}

.page-login__game-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-bottom: 40px;
}

.page-login__game-card {
  display: block;
  text-decoration: none;
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  background-color: #11271B;
  color: #F2FFF6;
  padding-bottom: 20px;
}

.page-login__game-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-login__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  border-top-left-radius: 12px;
  border-top-right-radius: 12px;
}

.page-login__game-title {
  font-size: 1.3em;
  color: #F2C14E;
  margin-top: 20px;
  padding: 0 15px;
  font-weight: bold;
  text-align: center;
}

.page-login__cta-center {
  text-align: center;
  margin-top: 40px;
}

.page-login__security-info-section {
  padding: 80px 0;
  background-color: #08160F;
}

.page-login__security-content {
  display: flex;
  gap: 40px;
  align-items: center;
  flex-wrap: wrap;
}

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

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

.page-login__security-image-wrapper {
  flex: 1;
  min-width: 300px;
  text-align: center;
}

.page-login__security-image {
  width: 100%;
  height: auto;
  max-width: 600px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

.page-login__faq-section {
  padding: 80px 0;
}

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

.page-login__faq-item {
  background-color: #11271B; /* Card BG */
  border: 1px solid #2E7A4E;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-login__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-weight: bold;
  font-size: 1.1em;
  color: #F2FFF6;
  background-color: #1E3A2A; /* Divider color for summary background */
  transition: background-color 0.3s ease;
}

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

.page-login__faq-item summary:hover {
  background-color: #2E7A4E;
}

.page-login__faq-qtext {
  flex-grow: 1;
  color: #F2C14E; /* Gold for question text */
}

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

.page-login__faq-answer {
  padding: 20px 25px;
  font-size: 1em;
  color: #A7D9B8;
  line-height: 1.8;
  background-color: #11271B;
}

.page-login__contact-cta-section {
  padding: 80px 0;
  background-color: #0A4B2C;
  text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-login__hero-content {
    margin-top: -50px;
    padding: 20px;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding-bottom: 40px;
  }

  .page-login__hero-image-wrapper {
    height: 300px; /* Adjust height for mobile */
  }

  .page-login__hero-image {
    max-height: 300px;
  }

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

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

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

  .page-login__cta-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .page-login__btn {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-login__login-form-section,
  .page-login__benefits-section,
  .page-login__game-showcase-section,
  .page-login__security-info-section,
  .page-login__faq-section,
  .page-login__contact-cta-section {
    padding: 40px 0;
  }

  .page-login__login-form {
    padding: 30px 20px;
  }

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

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

  .page-login__benefits-grid,
  .page-login__game-grid {
    grid-template-columns: 1fr;
  }

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

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

  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__hero-section {
    padding-top: 10px !important; /* body handles --header-offset */
  }

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

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 1.6em;
  }

  .page-login__btn {
    font-size: 1em;
    padding: 12px 20px;
  }

  .page-login__login-form {
    padding: 25px 15px;
  }

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

  .page-login__forgot-password {
    margin-top: 5px;
  }

  .page-login__card {
    padding: 20px;
  }

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

  .page-login__faq-item summary {
    padding: 15px 20px;
    font-size: 1em;
  }

  .page-login__faq-answer {
    padding: 15px 20px;
  }
}