/* style/login.css */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with shared.css body background */
}

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

.page-login__hero-section {
  position: relative;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  padding-bottom: 80px;
  text-align: center;
  background: linear-gradient(135deg, #017439 0%, #004d2a 100%); /* Brand color gradient */
  color: #ffffff;
  overflow: hidden;
}

.page-login__main-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: #ffffff;
  font-weight: bold;
}

.page-login__description {
  font-size: 1.1em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__login-area {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-login__form-wrapper {
  background: rgba(255, 255, 255, 0.08); /* Slightly transparent white for dark background */
  border-radius: 15px;
  padding: 40px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
  max-width: 450px;
  width: 100%;
  box-sizing: border-box;
}

.page-login__form-title {
  font-size: 1.8em;
  margin-bottom: 30px;
  color: #ffffff;
  font-weight: bold;
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 15px;
  border: 1px solid #017439;
  border-radius: 8px;
  background-color: rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: rgba(255, 255, 255, 0.6);
}

.page-login__form-options {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 25px;
}

.page-login__forgot-password-link {
  color: #FFFF00; /* Custom color for login font */
  text-decoration: none;
  font-size: 0.95em;
}

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

.page-login__btn-primary {
  display: block;
  width: 100%;
  padding: 15px 25px;
  background-color: #C30808; /* Custom color for login button */
  color: #FFFF00; /* Custom color for login font */
  border: none;
  border-radius: 8px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
}

.page-login__btn-primary:hover {
  background-color: #a30606;
}

.page-login__register-text {
  margin-top: 25px;
  font-size: 0.95em;
  color: #f0f0f0;
}

.page-login__register-link {
  color: #FFFF00; /* Custom color for login font */
  text-decoration: none;
  font-weight: bold;
}

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

.page-login__image-wrapper {
  max-width: 600px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-login__form-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  display: block;
}

.page-login__section-heading {
  font-size: 2.2em;
  margin-bottom: 20px;
  font-weight: bold;
  text-align: center;
}

.page-login__section-intro {
  font-size: 1.05em;
  margin-bottom: 60px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: center;
}

.page-login__light-bg {
  background-color: #ffffff;
  color: #333333; /* Dark text for light background */
  padding: 80px 0;
}

.page-login__dark-bg {
  background-color: #0d0d0d; /* Slightly lighter dark for contrast with body background */
  color: #ffffff; /* Light text for dark background */
  padding: 80px 0;
}

.page-login__features-section .page-login__section-heading,
.page-login__promotions-section .page-login__section-heading,
.page-login__faq-section .page-login__section-heading,
.page-login__legal-section .page-login__section-heading {
  color: #017439;
}

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

.page-login__feature-card {
  background: #f8f8f8;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

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

.page-login__feature-description {
  font-size: 0.95em;
  color: #555555;
}

.page-login__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 40px;
  margin-bottom: 60px;
}

.page-login__step-item {
  text-align: center;
  position: relative;
  padding-top: 60px;
}

.page-login__step-number {
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  background-color: #017439;
  color: #ffffff;
  border-radius: 50%;
  width: 50px;
  height: 50px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 1.8em;
  font-weight: bold;
  border: 3px solid #00562e;
}

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

.page-login__step-description {
  color: #f0f0f0;
}

.page-login__troubleshooting {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 40px;
  margin-top: 40px;
}

.page-login__sub-heading {
  font-size: 1.6em;
  color: #FFFF00;
  margin-bottom: 25px;
  text-align: center;
}

.page-login__troubleshooting-list {
  list-style: none;
  padding: 0;
  text-align: left;
}

.page-login__troubleshooting-list li {
  margin-bottom: 15px;
  padding-left: 25px;
  position: relative;
  color: #f0f0f0;
}

.page-login__troubleshooting-list li::before {
  content: '•';
  color: #017439;
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
  position: absolute;
  left: 0;
}

.page-login__security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  text-align: center;
}

.page-login__security-item {
  background: #f8f8f8;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__security-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-login__security-icon {
  width: 200px; /* Min size 200x200 */
  height: 150px; /* Maintain aspect ratio */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-login__security-description {
  font-size: 0.95em;
  color: #555555;
}

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

.page-login__game-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  padding: 30px;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  transition: background-color 0.3s ease, transform 0.3s ease;
  display: block;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-login__game-card:hover {
  background-color: rgba(255, 255, 255, 0.15);
  transform: translateY(-5px);
}

.page-login__game-title {
  font-size: 1.5em;
  margin-bottom: 10px;
  color: #FFFF00;
  font-weight: bold;
}

.page-login__game-description {
  font-size: 0.9em;
  color: #f0f0f0;
}

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

.page-login__promotion-card {
  background: #f8f8f8;
  border-radius: 12px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__promotion-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

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

.page-login__promotion-description {
  font-size: 0.95em;
  color: #555555;
  margin-bottom: 20px;
}

.page-login__btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  background-color: #ffffff;
  color: #017439;
  border: 2px solid #017439;
  border-radius: 8px;
  font-size: 0.95em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
  text-align: center;
  box-sizing: border-box;
}

.page-login__btn-secondary:hover {
  background-color: #017439;
  color: #ffffff;
}

.page-login__mobile-content {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-login__mobile-text {
  max-width: 500px;
  width: 100%;
  text-align: left;
}

.page-login__mobile-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-login__mobile-list li {
  margin-bottom: 10px;
  padding-left: 30px;
  position: relative;
  color: #f0f0f0;
}

.page-login__mobile-list li::before {
  content: '✓';
  color: #017439;
  font-weight: bold;
  display: inline-block;
  width: 1em;
  margin-left: -1em;
  position: absolute;
  left: 0;
}

.page-login__mobile-image-wrapper {
  max-width: 400px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}