.page-login {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333333; /* Default text color for light body background */
  background-color: #FFFFFF; /* Explicitly set for clarity, though body is default white */
}

/* Hero Section */
.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: 10px; /* Small top padding, body handles header offset */
  background-color: #f8f8f8; /* Light background for hero section */
  overflow: hidden;
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
  margin-bottom: 20px;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-login__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.page-login__main-title {
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #017439; /* Brand color for H1 */
  margin-bottom: 15px;
  /* No fixed font-size, rely on clamp or responsive media queries */
}

.page-login__hero-description {
  font-size: 1.1em;
  line-height: 1.6;
  margin-bottom: 30px;
}

/* Login Form */
.page-login__form-wrapper {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  margin: 0 auto;
}

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

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

.page-login__label {
  display: block;
  margin-bottom: 5px;
  font-weight: bold;
  color: #333333;
}

.page-login__input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #e0e0e0;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__input::placeholder {
  color: #999999;
}

.page-login__forgot-password {
  display: block;
  text-align: right;
  font-size: 0.9em;
  color: #017439; /* Brand color for link */
  text-decoration: none;
  margin-top: -10px;
  margin-bottom: 10px;
}

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

.page-login__submit-button {
  background-color: #C30808; /* Login button color */
  color: #FFFF00; /* Login button font color */
  padding: 12px 20px;
  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;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text break */
}

.page-login__submit-button:hover {
  background-color: #a00606;
}

.page-login__register-prompt {
  margin-top: 20px;
  font-size: 0.95em;
  color: #555555;
}

.page-login__register-prompt p {
  margin-bottom: 10px;
}

.page-login__register-button {
  background-color: #C30808; /* Register button color */
  color: #FFFF00; /* Register button font color */
  padding: 12px 20px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  display: block;
  text-decoration: none;
  width: 100%;
  box-sizing: border-box;
  white-space: normal; /* Allow text wrap */
  word-wrap: break-word; /* Allow text break */
}

.page-login__register-button:hover {
  background-color: #a00606;
}

/* General Sections */
.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

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

.page-login__dark-section {
  background-color: #017439; /* Main brand color for dark sections */
  color: #ffffff;
}

.page-login__section-title {
  font-size: 2.2em;
  font-weight: bold;
  text-align: center;
  margin-bottom: 20px;
  color: inherit; /* Inherit color from parent section (dark/light) */
}

.page-login__section-description {
  font-size: 1.1em;
  line-height: 1.6;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 40px auto;
}

/* Why us8 Section */
.page-login__why-us8-section {
  padding: 80px 0;
}

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

.page-login__feature-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
}

.page-login__feature-title {
  font-size: 1.4em;
  font-weight: bold;
  color: #017439;
  margin-bottom: 15px;
}

.page-login__feature-text {
  font-size: 1em;
  line-height: 1.6;
  color: #555555;
}

/* Game Overview Section */
.page-login__game-overview-section {
  padding: 80px 0;
}

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

.page-login__game-card {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  text-align: center;
}

.page-login__game-card-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
}

.page-login__game-card-title {
  font-size: 1.3em;
  font-weight: bold;
  color: #ffffff;
  margin: 15px 10px 10px 10px;
}

.page-login__game-card-text {
  font-size: 0.95em;
  line-height: 1.5;
  color: #e0e0e0;
  padding: 0 15px;
  flex-grow: 1;
}

.page-login__game-card-button {
  background-color: #ffffff;
  color: #017439;
  padding: 10px 20px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  margin: 20px 15px;
  transition: background-color 0.3s ease, color 0.3s ease;
  display: inline-block;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__game-card-button:hover {
  background-color: #e0e0e0;
}

/* Promotions Section */
.page-login__promotions-section {
  padding: 80px 0;
}

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

.page-login__promo-card {
  background-color: #ffffff;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.page-login__promo-card-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.page-login__promo-card-title {
  font-size: 1.3em;
  font-weight: bold;
  color: #017439;
  margin: 15px 15px 10px 15px;
}

.page-login__promo-card-text {
  font-size: 0.95em;
  line-height: 1.5;
  color: #555555;
  padding: 0 15px 20px 15px;
}

.page-login__cta-buttons {
  text-align: center;
  margin-top: 50px;
  display: flex;
  flex-wrap: wrap; /* Allow buttons to wrap */
  justify-content: center;
  gap: 20px;
  width: 100%; /* Ensure container takes full width */
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-login__btn-primary,
.page-login__btn-secondary {
  padding: 15px 30px;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  box-sizing: border-box;
  max-width: 100%; /* Ensure buttons don't overflow */
  white-space: normal;
  word-wrap: break-word;
}

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

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

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

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

/* Security & Support Section */
.page-login__security-support-section {
  padding: 80px 0;
}

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

.page-login__info-item {
  background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white on dark background */
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-login__info-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
  border-radius: 8px;
}

.page-login__info-title {
  font-size: 1.4em;
  font-weight: bold;
  color: #ffffff;
  margin-bottom: 15px;
}

.page-login__info-text {
  font-size: 1em;
  line-height: 1.6;
  color: #e0e0e0;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 2.5em;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding: 40px 15px;
    padding-top: 10px !important; /* body handles --header-offset, this is for visual spacing */
  }

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

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

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

  .page-login__submit-button,
  .page-login__register-button {
    font-size: 1em;
    padding: 10px 15px;
  }

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

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

  .page-login__why-us8-section,
  .page-login__game-overview-section,
  .page-login__promotions-section,
  .page-login__security-support-section {
    padding: 50px 0;
  }

  .page-login__container {
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Images responsive */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  /* Image containers responsive */
  .page-login__hero-image-wrapper,
  .page-login__game-card,
  .page-login__promo-card,
  .page-login__info-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  /* Buttons responsive */
  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-login__btn-primary,
  .page-login__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding: 12px 15px !important;
  }

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

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