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

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

/* 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: var(--header-offset, 120px); /* Ensure header offset */
  background: linear-gradient(135deg, #017439, #33a066); /* Darker gradient for hero */
  color: #ffffff;
}

.page-login__main-title {
  font-size: 3em;
  margin-bottom: 20px;
  font-weight: bold;
  color: #FFFF00; /* Login font color */
}

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

.page-login__login-form-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
  background: #ffffff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
  max-width: 900px;
  width: 100%;
}

.page-login__login-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-login__login-form {
  width: 100%;
  max-width: 400px;
  text-align: left;
}

.page-login__form-title {
  font-size: 2em;
  margin-bottom: 25px;
  color: #017439;
  text-align: center;
}

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

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

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

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

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

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

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

.page-login__checkbox {
  width: 16px;
  height: 16px;
  accent-color: #017439;
}

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

.page-login__submit-button {
  display: block;
  width: 100%;
  padding: 15px;
  background-color: #C30808; /* Login button color */
  color: #FFFF00; /* Login font color */
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease;
  text-align: center;
  text-decoration: none;
}

.page-login__submit-button:hover {
  background-color: #a00606;
  transform: translateY(-2px);
}

.page-login__register-prompt {
  text-align: center;
  margin-top: 20px;
  color: #333333;
}

.page-login__register-link {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
}

.page-login__register-link:hover {
  text-decoration: underline;
}

/* General Section Styles */
.page-login__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-login__dark-bg {
  background-color: #017439;
  color: #ffffff;
  padding: 80px 20px;
}

.page-login__light-bg {
  background-color: #FFFFFF;
  color: #333333;
  padding: 80px 20px;
}

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

.page-login__benefit-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-login__benefit-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #FFFF00; /* Ensuring contrast on dark background */
}

.page-login__benefit-text {
  font-size: 1em;
  line-height: 1.7;
}

/* Security Section */
.page-login__security-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
}

.page-login__security-item {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-login__security-feature-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: #017439;
}

/* Account Recovery Section */
.page-login__recovery-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: center;
}

.page-login__step-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
}

.page-login__step-number {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background-color: #FFFF00; /* Ensuring contrast */
  color: #017439;
  font-size: 1.8em;
  font-weight: bold;
  margin-bottom: 20px;
}

.page-login__step-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #ffffff;
}

/* New User Section */
.page-login__register-cta {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  background: #f9f9f9;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
}

.page-login__register-image {
  width: 100%;
  max-width: 450px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-login__register-content {
  flex: 1;
}

.page-login__register-subtitle {
  font-size: 2em;
  margin-bottom: 20px;
  color: #017439;
}

.page-login__btn-register {
  background-color: #C30808;
  color: #FFFF00;
}

.page-login__btn-register:hover {
  background-color: #a00606;
}

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

.page-login__game-category-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 25px;
  border-radius: 10px;
  text-align: center;
}

.page-login__game-category-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin-bottom: 15px;
  border-radius: 5px;
}

.page-login__game-category-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #FFFF00;
}

.page-login__game-category-link {
  display: inline-block;
  margin-top: 15px;
  color: #FFFF00;
  text-decoration: underline;
}

.page-login__game-category-link:hover {
  color: #ffffff;
}

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

/* FAQ Section */
.page-login__faq-list {
  margin-top: 40px;
}

.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;
  padding: 0 15px;
  opacity: 0;
}