.page-login {
  font-family: 'Arial', sans-serif;
  color: #333333; /* Default dark text for light body background */
  background-color: #f8f8f8;
  padding-top: var(--header-offset, 120px); /* Ensure content is below fixed header */
}

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

.page-login__hero-section {
  position: relative;
  width: 100%;
  height: 600px; /* Fixed height for hero section */
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  overflow: hidden;
  color: #ffffff;
}

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

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

.page-login__hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
  padding: 20px;
}

.page-login__main-title {
  font-size: 48px;
  font-weight: bold;
  margin-bottom: 20px;
  line-height: 1.2;
  color: #FFD700; /* Accent color for main title */
}

.page-login__hero-description {
  font-size: 18px;
  margin-bottom: 30px;
  line-height: 1.5;
  color: #f0f0f0;
}

.page-login__form-container {
  background: rgba(26, 32, 44, 0.9); /* Dark background with transparency */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  margin: 0 auto;
  text-align: left;
}

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

.page-login__label {
  display: block;
  margin-bottom: 8px;
  font-size: 14px;
  color: #f0f0f0;
}

.page-login__input {
  width: 100%;
  padding: 12px;
  border: 1px solid #4a5568;
  border-radius: 5px;
  background-color: #2d3748;
  color: #ffffff;
  font-size: 16px;
  box-sizing: border-box;
}

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

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

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

.page-login__checkbox {
  margin-right: 8px;
  width: 16px;
  height: 16px;
  accent-color: #FFD700;
}

.page-login__forgot-password {
  color: #FFD700;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
  color: #e0b800;
}

.page-login__login-button {
  width: 100%;
  padding: 15px;
  background-color: #FFD700;
  color: #1A202C;
  border: none;
  border-radius: 5px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-shadow: 0 4px 10px rgba(255, 215, 0, 0.3);
}

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

.page-login__register-text {
  margin-top: 20px;
  font-size: 15px;
  color: #f0f0f0;
  text-align: center;
}

.page-login__register-link {
  color: #FFD700;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-login__register-link:hover {
  color: #e0b800;
}

.page-login__section-title {
  font-size: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #1A202C;
}

.page-login__section-title--light {
  color: #FFD700;
}

.page-login__section-description {
  font-size: 18px;
  text-align: center;
  margin-bottom: 50px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.page-login__section-description--light {
  color: #f0f0f0;
}

.page-login__benefits-section {
  padding: 80px 0;
}

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

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

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

.page-login__benefit-icon {
  width: 80px;
  height: 80px;
  object-fit: contain;
  margin-bottom: 20px;
}

.page-login__benefit-title {
  font-size: 22px;
  font-weight: bold;
  margin-bottom: 15px;
  color: #1A202C;
}

.page-login__benefit-description {
  font-size: 15px;
  line-height: 1.6;
  color: #555555;
}

.page-login__games-section {
  padding: 80px 0;
  background-color: #1A202C;
  color: #ffffff;
}

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

.page-login__game-card {
  display: block;
  background: #2d3748;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

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

.page-login__game-title {
  font-size: 20px;
  font-weight: bold;
  padding: 15px 20px 0;
  color: #FFD700;
}

.page-login__game-excerpt {
  font-size: 14px;
  padding: 0 20px 20px;
  line-height: 1.5;
  color: #a0aec0;
}

.page-login__security-section {
  padding: 80px 0;
}

.page-login__security-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.page-login__security-text {
  flex: 1;
}

.page-login__security-text p {
  font-size: 16px;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #555555;
}

.page-login__security-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-login__security-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.page-login__cta-section {
  padding: 80px 0;
  background-color: #1A202C;
  color: #ffffff;
  text-align: center;
}

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

.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  max-width: 100%; /* Ensure button responsiveness */
  box-sizing: border-box; /* Ensure button responsiveness */
  white-space: normal; /* Allow text wrapping */
  word-wrap: break-word; /* Allow text wrapping */
}

.page-login__btn-primary {
  background-color: #FFD700;
  color: #1A202C;
  border: 2px solid #FFD700;
}

.page-login__btn-primary:hover {
  background-color: #e0b800;
  border-color: #e0b800;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

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

.page-login__btn-secondary:hover {
  background-color: #FFD700;
  color: #1A202C;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 42px;
  }
  .page-login__section-title {
    font-size: 32px;
  }
  .page-login__security-content {
    flex-direction: column;
    text-align: center;
  }
  .page-login__security-image-wrapper {
    order: -1; /* Image above text on smaller screens */
    margin-bottom: 30px;
  }
}

@media (max-width: 768px) {
  .page-login {
    padding-top: var(--header-offset, 120px) !important;
    font-size: 16px;
    line-height: 1.6;
  }
  .page-login__container {
    padding: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-login__hero-section {
    height: auto;
    min-height: 500px;
    padding: 60px 20px;
  }
  .page-login__main-title {
    font-size: 32px;
  }
  .page-login__hero-description {
    font-size: 16px;
  }
  .page-login__form-container {
    padding: 20px;
    max-width: 100%;
  }
  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .page-login__forgot-password {
    margin-top: 5px;
  }

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

  .page-login__benefits-section,
  .page-login__games-section,
  .page-login__security-section,
  .page-login__cta-section {
    padding: 50px 0;
  }

  .page-login__benefit-item {
    padding: 25px;
  }
  .page-login__benefit-icon {
    width: 60px;
    height: 60px;
  }
  .page-login__benefit-title {
    font-size: 20px;
  }

  .page-login__game-image {
    height: 180px;
  }
  .page-login__game-title {
    font-size: 18px;
  }
  .page-login__game-excerpt {
    font-size: 13px;
  }

  .page-login__security-content {
    gap: 30px;
  }
  .page-login__security-text p {
    font-size: 15px;
  }
  
  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login__login-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 12px 20px !important;
    font-size: 16px !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  
  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
    padding: 0 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }
  
  /* Mobile image specific rules */
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login__hero-background {
    max-width: 100% !important;
    width: 100% !important;
    height: 100% !important;
  }
  .page-login__benefit-icon {
    max-width: 80px !important;
    width: 80px !important;
    height: auto !important;
  }
  .page-login__game-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-login__security-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 28px;
  }
  .page-login__section-title {
    font-size: 24px;
  }
  .page-login__hero-section {
    min-height: 450px;
  }
}