.page-login {
  color: #333333; /* Default text color for light body background */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: #FFFFFF;
}

.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px);
  background-color: #f0f8ff; /* A very light blue for hero background, slightly off-white */
  border-bottom: 5px solid #017439;
}

.page-login__hero-container {
  position: relative;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.page-login__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-login__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.page-login__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 600px;
  background-color: #ffffff;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.page-login__main-title {
  font-size: 38px;
  color: #017439;
  margin-bottom: 20px;
  font-weight: bold;
  line-height: 1.2;
}

.page-login__intro-description {
  font-size: 18px;
  color: #555555;
  margin-bottom: 30px;
}

.page-login__form {
  width: 100%;
  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: #333333;
  font-size: 16px;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #cccccc;
  border-radius: 6px;
  font-size: 16px;
  box-sizing: border-box;
}

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

.page-login__form-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  align-items: center;
}

.page-login__login-button {
  display: inline-block;
  padding: 14px 40px;
  background: #C30808; /* Custom color for login button */
  color: #FFFF00; /* Custom color for login button font */
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  width: 100%;
  max-width: 300px;
  box-sizing: border-box;
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3); /* Mitigate potential contrast issue */
}

.page-login__login-button:hover {
  background: #E00808; /* Slightly lighter red on hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

.page-login__register-link, .page-login__forgot-password-link {
  color: #017439;
  text-decoration: none;
  font-size: 15px;
  transition: color 0.3s ease;
}

.page-login__register-link:hover, .page-login__forgot-password-link:hover {
  color: #005f2b;
  text-decoration: underline;
}

.page-login__content-section {
  padding: 80px 20px;
  text-align: center;
}

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

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

.page-login__section-title {
  font-size: 34px;
  margin-bottom: 25px;
  font-weight: bold;
  color: #017439;
}

.page-login__section-title--light {
  color: #ffffff;
}

.page-login__section-description {
  font-size: 17px;
  color: #555555;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

.page-login__section-description--light {
  color: #f0f0f0;
}

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

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

.page-login__benefit-item,
.page-login__game-card,
.page-login__promo-card,
.page-login__security-item,
.page-login__news-card {
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  padding: 30px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__benefit-item:hover,
.page-login__game-card:hover,
.page-login__promo-card:hover,
.page-login__news-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
}

.page-login__benefit-item img,
.page-login__game-card img,
.page-login__promo-card img,
.page-login__news-card img {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  max-width: 100%;
  display: block;
}

.page-login__benefit-title,
.page-login__game-title,
.page-login__promo-title,
.page-login__security-title,
.page-login__news-title {
  font-size: 22px;
  font-weight: bold;
  color: #017439;
  margin-bottom: 15px;
  flex-grow: 1; /* Allow titles to take available space */
}

.page-login__game-card .page-login__game-title,
.page-login__news-card .page-login__news-title {
  min-height: 60px; /* Ensure consistent height for titles */
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-login__game-card .page-login__game-title a,
.page-login__news-card .page-login__news-title a {
  color: #017439;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__game-card .page-login__game-title a:hover,
.page-login__news-card .page-login__news-title a:hover {
  color: #005f2b;
  text-decoration: underline;
}

.page-login__benefit-description,
.page-login__game-description,
.page-login__promo-description,
.page-login__security-description,
.page-login__news-excerpt {
  font-size: 15px;
  color: #666666;
  margin-bottom: 20px;
  text-align: left;
}

.page-login__game-types-section .page-login__game-card {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.page-login__game-types-section .page-login__game-card .page-login__game-title,
.page-login__game-types-section .page-login__game-card .page-login__game-title a {
  color: #FFFF00;
}

.page-login__game-types-section .page-login__game-card .page-login__game-description {
  color: #e0e0e0;
}

.page-login__more-games-text {
  margin-top: 40px;
  font-size: 18px;
  color: #f0f0f0;
}

.page-login__link {
  color: #017439;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__link:hover {
  text-decoration: underline;
}

.page-login__link--light {
  color: #FFFF00;
}

.page-login__link--light:hover {
  color: #FFD700;
}

.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 6px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  margin-top: auto; /* Push buttons to the bottom of cards */
}

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

.page-login__btn-primary:hover {
  background: #005f2b;
  border-color: #005f2b;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
}

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

.page-login__btn-secondary:hover {
  background: #f0f0f0;
  border-color: #005f2b;
  color: #005f2b;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-login__cta-area {
  margin-top: 60px;
  padding: 40px;
  background-color: #f0f8ff;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 20px;
}

.page-login__cta-area .page-login__btn-primary {
  max-width: 250px;
}

.page-login__cta-text {
  font-size: 20px;
  font-weight: bold;
  color: #017439;
  margin: 0;
}

.page-login__security-support-section .page-login__security-item {
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.page-login__security-support-section .page-login__security-title {
  color: #FFFF00;
}

.page-login__security-support-section .page-login__security-description {
  color: #e0e0e0;
}

/* FAQ styles */
.page-login__faq-section {
  background-color: #f9f9f9;
}

.page-login__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 5px;
  overflow: hidden;
}

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1), padding 0.4s ease, opacity 0.4s ease;
  padding: 0 15px;
  opacity: 0;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 2000px !important;
  padding: 20px 15px !important;
  opacity: 1;
  background: #f0f8ff;
  border-radius: 0 0 5px 5px;
  text-align: left;
}