.page-login {
  /* Base styles for the login page */
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: transparent; /* Body background is handled by shared.css */
}

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

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 700px;
  text-align: center;
  padding-top: var(--header-offset, 120px); /* Ensure content is not covered by fixed header */
  overflow: hidden;
  color: #ffffff;
  box-sizing: border-box;
}

.page-login__hero-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
}

.page-login__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
  z-index: -1;
}

.page-login__hero-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #ffffff;
}

.page-login__form-wrapper {
  background-color: rgba(255, 255, 255, 0.15); /* Slightly transparent white for form background */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  max-width: 450px;
  margin: 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-login__form-title {
  font-size: 1.8em;
  color: #ffffff;
  margin-bottom: 20px;
  text-align: center;
}

.page-login__form-group {
  display: flex;
  flex-direction: column;
  text-align: left;
}

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

.page-login__form-input {
  padding: 12px 15px;
  border: 1px solid #26A9E0;
  border-radius: 5px;
  background-color: #f0f0f0; /* Light background for input fields */
  color: #333333; /* Dark text for input fields */
  font-size: 1em;
  width: 100%;
  box-sizing: border-box;
}

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

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

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

.page-login__checkbox {
  margin-right: 8px;
}

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

.page-login__forgot-password-link {
  color: #26A9E0;
  text-decoration: none;
}

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

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

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

.page-login__register-text {
  text-align: center;
  margin-top: 15px;
  color: #ffffff;
}

.page-login__register-link {
  color: #26A9E0;
  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;
  margin-bottom: 20px;
  text-align: center;
  color: #26A9E0; /* Default title color for light backgrounds */
}

.page-login__section-title--white {
  color: #ffffff; /* Title color for dark backgrounds */
}

.page-login__section-description {
  font-size: 1.1em;
  margin-bottom: 40px;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  color: #333333; /* Default description color for light backgrounds */
}

.page-login__section-description--white {
  color: #ffffff; /* Description color for dark backgrounds */
}

.page-login__light-bg {
  background-color: #ffffff;
  color: #333333;
  padding: 60px 0;
}

.page-login__dark-bg {
  background-color: #222; /* Matches body background for consistency */
  color: #ffffff;
  padding: 60px 0;
}

/* 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 {
  text-align: center;
  padding: 25px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  color: #333333;
}

.page-login__benefit-item:hover {
  transform: translateY(-5px);
}

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

.page-login__benefit-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-login__benefit-text {
  font-size: 1em;
  color: #555555;
}

/* Guide Section */
.page-login__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  color: #ffffff;
}

.page-login__step-item {
  text-align: center;
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-login__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 15px;
}

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

.page-login__step-text {
  font-size: 1em;
  color: #f0f0f0;
}

.page-login__troubleshooting {
  margin-top: 60px;
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.page-login__troubleshooting-title {
  font-size: 1.8em;
  color: #26A9E0;
  margin-bottom: 20px;
  text-align: center;
}

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

.page-login__troubleshooting-list li {
  margin-bottom: 10px;
  padding-left: 25px;
  position: relative;
}

.page-login__troubleshooting-list li::before {
  content: '•';
  color: #26A9E0;
  font-size: 1.2em;
  position: absolute;
  left: 0;
  top: 0;
}

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

.page-login__security-item {
  text-align: center;
  padding: 25px;
  background-color: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  color: #333333;
}

.page-login__security-item:hover {
  transform: translateY(-5px);
}

.page-login__security-icon {
  width: 100%;
  height: auto;
  max-width: 300px;
  min-width: 200px;
  min-height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-login__security-title {
  font-size: 1.5em;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-login__security-text {
  font-size: 1em;
  color: #555555;
}

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

.page-login__feature-item {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-login__feature-title {
  font-size: 1.6em;
  color: #26A9E0;
  margin-bottom: 15px;
}