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

.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: bold;
  color: #B8860B;
  text-align: center;
  margin-bottom: 40px;
  padding-bottom: 15px;
  position: relative;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.page-login__section-title::after {
  content: '';
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 80px;
  height: 4px;
  background-color: #B8860B;
  border-radius: 2px;
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px);
  background: linear-gradient(135deg, #1A1A1A 0%, #0a0a0a 100%);
  text-align: center;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 700px;
  overflow: hidden;
}

.page-login__hero-container {
  max-width: 600px;
  margin: 0 auto;
  z-index: 10;
  position: relative;
}

.page-login__main-title {
  font-size: 48px;
  color: #B8860B;
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 0 4px 8px rgba(0, 0, 0, 0.4);
}

.page-login__hero-description {
  font-size: 18px;
  color: #f0f0f0;
  margin-bottom: 40px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__form-wrapper {
  background-color: rgba(26, 26, 26, 0.9);
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(184, 134, 11, 0.3);
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid #B8860B;
  border-radius: 8px;
  background-color: #0a0a0a;
  color: #ffffff;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

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

.page-login__form-input:focus {
  border-color: #DC143C;
  box-shadow: 0 0 0 3px rgba(220, 20, 60, 0.3);
  outline: none;
}

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

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

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

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

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

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

.page-login__login-button {
  width: 100%;
  padding: 15px;
  background: linear-gradient(90deg, #B8860B 0%, #DC143C 100%);
  color: #ffffff;
  border: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.4);
}

.page-login__login-button:hover {
  background: linear-gradient(90deg, #DC143C 0%, #B8860B 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
}

.page-login__register-cta {
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid rgba(184, 134, 11, 0.2);
}

.page-login__register-text {
  color: #f0f0f0;
  margin-bottom: 15px;
  font-size: 16px;
}

.page-login__register-button {
  display: inline-block;
  width: 100%;
  padding: 12px;
  background-color: #1A1A1A;
  color: #B8860B;
  border: 2px solid #B8860B;
  border-radius: 8px;
  text-decoration: none;
  font-size: 16px;
  font-weight: bold;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.page-login__register-button:hover {
  background-color: #B8860B;
  color: #ffffff;
  border-color: #DC143C;
  transform: translateY(-1px);
}

/* Security Section */
.page-login__security-section {
  padding: 80px 0;
  background-color: #1A1A1A;
  color: #f0f0f0;
}

.page-login__security-content {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 30px;
  margin-bottom: 50px;
}

.page-login__security-item {
  background-color: #0a0a0a;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(184, 134, 11, 0.2);
}

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

.page-login__security-item-title {
  font-size: 24px;
  color: #B8860B;
  margin-bottom: 15px;
}

.page-login__security-item-description {
  font-size: 16px;
  color: #ccc;
}

.page-login__security-cta {
  text-align: center;
}

/* Troubleshooting Section */
.page-login__troubleshooting-section {
  padding: 80px 0;
  background-color: #0a0a0a;
  color: #ffffff;
}

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

.page-login__troubleshooting-item {
  background-color: #1A1A1A;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(184, 134, 11, 0.2);
}

.page-login__troubleshooting-item-title {
  font-size: 22px;
  color: #B8860B;
  margin-bottom: 15px;
}

.page-login__troubleshooting-item-description {
  font-size: 16px;
  color: #ccc;
}

.page-login__troubleshooting-cta {
  text-align: center;
}

/* Explore Section */
.page-login__explore-section {
  padding: 80px 0;
  background-color: #1A1A1A;
  color: #f0f0f0;
}

.page-login__explore-description {
  font-size: 18px;
  color: #ccc;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 50px auto;
}

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

.page-login__game-card {
  background-color: #0a0a0a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(184, 134, 11, 0.2);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-login__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.page-login__game-title {
  font-size: 20px;
  color: #B8860B;
  margin: 20px 15px 15px 15px;
}

.page-login__game-link {
  display: block;
  padding: 12px 15px;
  background-color: #B8860B;
  color: #ffffff;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  margin-top: auto;
}

.page-login__game-link:hover {
  background-color: #DC143C;
}

.page-login__explore-cta {
  text-align: center;
}

/* CTA Buttons */
.page-login__cta-button {
  display: inline-block;
  padding: 15px 40px;
  background: linear-gradient(90deg, #B8860B 0%, #DC143C 100%);
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-align: center;
  transition: all 0.3s ease;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  border: none;
  cursor: pointer;
}

.page-login__cta-button:hover {
  background: linear-gradient(90deg, #DC143C 0%, #B8860B 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.4);
}

.page-login__btn-secondary {
  background: #1A1A1A;
  color: #B8860B;
  border: 2px solid #B8860B;
}

.page-login__btn-secondary:hover {
  background: #B8860B;
  color: #ffffff;
  border-color: #DC143C;
}

/* Global Image Styles */
.page-login img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 40px;
  }
  .page-login__hero-description {
    font-size: 16px;
  }
  .page-login__section-title {
    font-size: 30px;
  }
  .page-login__security-item-title,
  .page-login__troubleshooting-item-title {
    font-size: 20px;
  }
  .page-login__game-title {
    font-size: 18px;
  }
}

@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }
  .page-login__container {
    padding: 20px 15px;
  }
  .page-login__hero-section {
    padding: 60px 15px;
    padding-top: var(--header-offset, 120px) !important;
    min-height: 600px;
  }
  .page-login__main-title {
    font-size: 32px;
    margin-bottom: 15px;
  }
  .page-login__hero-description {
    font-size: 15px;
    margin-bottom: 30px;
  }
  .page-login__form-wrapper {
    padding: 30px 20px;
  }
  .page-login__form-group {
    margin-bottom: 20px;
  }
  .page-login__form-input,
  .page-login__login-button,
  .page-login__register-button {
    padding: 12px 15px;
    font-size: 16px;
  }
  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 25px;
  }
  .page-login__forgot-password-link {
    margin-top: 10px;
  }
  .page-login__section-title {
    font-size: 26px;
    margin-bottom: 30px;
  }
  .page-login__security-section,
  .page-login__troubleshooting-section,
  .page-login__explore-section {
    padding: 50px 0;
  }
  .page-login__security-content,
  .page-login__troubleshooting-grid,
  .page-login__game-showcase {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-login__security-item,
  .page-login__troubleshooting-item,
  .page-login__game-card {
    padding: 20px;
  }
  .page-login__security-icon {
    max-width: 200px;
  }
  .page-login__security-item-title,
  .page-login__troubleshooting-item-title {
    font-size: 18px;
  }
  .page-login__explore-description {
    font-size: 16px;
    margin-bottom: 30px;
  }
  .page-login__game-image {
    height: 180px;
  }
  .page-login__game-title {
    font-size: 16px;
    margin: 15px 10px 10px 10px;
  }
  .page-login__game-link {
    padding: 10px 15px;
    font-size: 15px;
  }
  .page-login__cta-button {
    padding: 12px 30px;
    font-size: 16px;
  }
  /* Mobile image and container overflow prevention */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-login__hero-section,
  .page-login__container,
  .page-login__form-wrapper,
  .page-login__security-section,
  .page-login__security-content,
  .page-login__security-item,
  .page-login__troubleshooting-section,
  .page-login__troubleshooting-grid,
  .page-login__troubleshooting-item,
  .page-login__explore-section,
  .page-login__explore-description,
  .page-login__game-showcase,
  .page-login__game-card,
  .page-login__cta-buttons,
  .page-login__security-cta,
  .page-login__troubleshooting-cta,
  .page-login__explore-cta {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-login__hero-section { padding-left: 0; padding-right: 0; }
  .page-login__form-wrapper { padding-left: 20px; padding-right: 20px; }
  .page-login__security-section, .page-login__troubleshooting-section, .page-login__explore-section { padding-left: 0; padding-right: 0; }
  .page-login__cta-buttons {
    display: flex;
    flex-direction: column;
    gap: 15px;
  }
  .page-login__cta-button, .page-login__btn-secondary, .page-login__login-button, .page-login__register-button {
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
}