.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__dark-bg {
  background-color: #017439;
  color: #ffffff;
}

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

.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);
  overflow: hidden;
}

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

.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;
}

.page-login__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  max-width: 800px;
}

.page-login__main-title {
  font-size: 48px;
  font-weight: 700;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.page-login__subtitle {
  font-size: 20px;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-login__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: #017439; /* Using primary color for contrast */
  color: #ffffff; /* White text for contrast */
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  margin-top: 30px;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
}

.page-login__cta-button:hover {
  background: #005f2e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-login__register-link {
  display: block;
  margin-top: 20px;
  color: #FFFFFF;
  text-decoration: underline;
  font-size: 16px;
}

.page-login__register-link:hover {
  color: #FFFF00; /* Register/Login font color */
}

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

.page-login__section-title {
  font-size: 36px;
  font-weight: 700;
  text-align: center;
  margin-bottom: 20px;
  color: inherit;
}

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

.page-login__form-section {
  padding: 60px 20px;
}

.page-login__form-wrapper {
  position: relative;
  max-width: 500px;
  margin: 0 auto;
  background: #ffffff;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__form-bg-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-bottom: 1px solid #eee;
}

.page-login__login-form {
  padding: 30px;
  width: 100%;
  box-sizing: border-box;
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 600;
  color: #333333;
}

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

.page-login__form-input:focus {
  border-color: #017439;
  outline: none;
  box-shadow: 0 0 0 2px rgba(1, 116, 57, 0.2);
}

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

.page-login__remember-me {
  color: #555555;
}

.page-login__forgot-password {
  color: #017439;
  text-decoration: none;
}

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

.page-login__submit-button {
  width: 100%;
  padding: 15px;
  background: #017439; /* Using primary color for contrast */
  color: #ffffff; /* White text for contrast */
  border: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.page-login__submit-button:hover {
  background: #005f2e;
}

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

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

.page-login__benefit-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 30px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

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

.page-login__benefit-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 15px;
  color: #FFFFFF;
}

.page-login__benefit-text {
  font-size: 16px;
  color: #f0f0f0;
}

.page-login__tips-section {
  padding: 80px 20px;
}

.page-login__tips-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  margin-top: 50px;
  align-items: flex-start;
}

.page-login__tips-image {
  flex: 1 1 400px;
  max-width: 50%;
  height: auto;
  border-radius: 10px;
  object-fit: cover;
}

.page-login__tips-list {
  flex: 1 1 500px;
  max-width: 50%;
}

.page-login__sub-title {
  font-size: 22px;
  font-weight: 600;
  margin-top: 25px;
  margin-bottom: 10px;
  color: #017439;
}

.page-login__tips-list p {
  font-size: 16px;
  margin-bottom: 15px;
  color: #555555;
}

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

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

.page-login__game-card {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

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

.page-login__game-title {
  font-size: 20px;
  font-weight: 600;
  margin-bottom: 10px;
}

.page-login__game-link {
  color: #FFFFFF;
  text-decoration: none;
}

.page-login__game-link:hover {
  text-decoration: underline;
  color: #FFFF00; /* Register/Login font color */
}

.page-login__game-description {
  font-size: 15px;
  color: #f0f0f0;
}

.page-login__cta-more-games {
  margin-top: 40px;
}

.page-login__cta-section {
  padding: 60px 20px;
  text-align: center;
}

.page-login__cta-buttons-group {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  flex-wrap: wrap;
}

.page-login__btn-primary {
  display: inline-block;
  padding: 15px 30px;
  background: #017439;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: none;
  cursor: pointer;
  box-sizing: border-box;
}

.page-login__btn-primary:hover {
  background: #005f2e;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  background: #ffffff;
  color: #017439;
  text-decoration: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  transition: all 0.3s ease;
  border: 2px solid #017439;
  cursor: pointer;
  box-sizing: border-box;
}

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

/* Responsive styles */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 40px;
  }

  .page-login__subtitle {
    font-size: 18px;
  }

  .page-login__section-title {
    font-size: 30px;
  }

  .page-login__tips-image,
  .page-login__tips-list {
    max-width: 100%;
    flex: 1 1 100%;
  }
}

@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }
  
  .page-login__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    padding-bottom: 40px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }

  .page-login__subtitle {
    font-size: 16px;
    margin-bottom: 25px;
  }

  .page-login__cta-button {
    padding: 12px 30px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-login__register-link {
    font-size: 14px;
  }

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

  .page-login__section-title {
    font-size: 28px;
    margin-bottom: 15px;
  }

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

  .page-login__form-section {
    padding: 40px 15px;
  }

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

  .page-login__form-label {
    font-size: 14px;
  }

  .page-login__form-input {
    padding: 10px 12px;
    font-size: 14px;
  }

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

  .page-login__submit-button {
    padding: 12px;
    font-size: 16px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-login__benefits-section,
  .page-login__tips-section,
  .page-login__popular-games-section,
  .page-login__cta-section {
    padding: 40px 15px;
  }

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

  .page-login__benefit-item {
    padding: 20px;
  }

  .page-login__benefit-title {
    font-size: 20px;
  }

  .page-login__benefit-text {
    font-size: 15px;
  }

  .page-login__tips-image {
    height: auto !important;
    max-width: 100% !important;
    width: 100% !important;
  }

  .page-login__sub-title {
    font-size: 20px;
  }

  .page-login__game-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login__game-card {
    padding: 15px;
  }

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

  .page-login__game-title {
    font-size: 18px;
  }

  .page-login__game-description {
    font-size: 14px;
  }

  .page-login__cta-buttons-group {
    flex-direction: column;
    gap: 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-left: 15px;
    padding-right: 15px;
  }
  
  /* Ensure all images are responsive */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__form-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
}