/* style/login.css */
:root {
  --page-login-primary-color: #26A9E0;
  --page-login-secondary-color: #FFFFFF;
  --page-login-login-button-color: #EA7C07;
  --page-login-dark-bg-color: #0a0a0a;
  --page-login-light-text-color: #ffffff;
  --page-login-dark-text-color: #333333;
  --page-login-card-bg-dark: rgba(255, 255, 255, 0.1);
  --page-login-card-bg-light: #ffffff;
}

.page-login {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: var(--page-login-light-text-color); /* Default text color for dark body bg */
  background-color: var(--page-login-dark-bg-color); /* This should be handled by shared.css body */
}

.page-login h1, .page-login h2, .page-login h3, .page-login h4, .page-login h5, .page-login h6 {
  color: var(--page-login-light-text-color);
  margin-bottom: 15px;
  line-height: 1.2;
}

.page-login h1 {
  font-size: clamp(2.5rem, 4vw, 3.2rem);
  font-weight: 700;
  text-align: center;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

.page-login h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 600;
  text-align: center;
  margin-bottom: 30px;
}

.page-login h3 {
  font-size: clamp(1.5rem, 2.5vw, 2rem);
  font-weight: 600;
  margin-bottom: 10px;
}

.page-login p {
  margin-bottom: 1em;
}

.page-login a {
  color: var(--page-login-primary-color);
  text-decoration: none;
}

.page-login a:hover {
  text-decoration: underline;
}

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

.page-login__section-title {
  margin-top: 40px;
  margin-bottom: 20px;
}

.page-login__section-description {
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px auto;
  font-size: 1.1em;
  line-height: 1.8;
}

.page-login__dark-bg {
  background-color: var(--page-login-dark-bg-color);
  color: var(--page-login-light-text-color);
}

.page-login__light-bg {
  background-color: var(--page-login-secondary-color);
  color: var(--page-login-dark-text-color);
}

.page-login__light-bg h1, .page-login__light-bg h2, .page-login__light-bg h3, .page-login__light-bg h4, .page-login__light-bg h5, .page-login__light-bg h6 {
  color: var(--page-login-dark-text-color);
}

.page-login__card {
  background: var(--page-login-card-bg-dark);
  color: var(--page-login-light-text-color);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__light-bg .page-login__card {
  background: var(--page-login-card-bg-light);
  color: var(--page-login-dark-text-color);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border: 1px solid #e0e0e0;
}

.page-login__btn-primary,
.page-login__btn-secondary,
.page-login__submit-button {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 5px;
  text-align: center;
  font-weight: bold;
  text-transform: uppercase;
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  border: 2px solid transparent;
  cursor: pointer;
  text-decoration: none;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-primary,
.page-login__submit-button {
  background-color: var(--page-login-primary-color);
  color: var(--page-login-secondary-color);
}

.page-login__submit-button {
  background-color: var(--page-login-login-button-color);
}

.page-login__btn-primary:hover,
.page-login__submit-button:hover {
  background-color: darken(var(--page-login-primary-color), 10%);
}

.page-login__submit-button:hover {
  background-color: darken(var(--page-login-login-button-color), 10%);
}

.page-login__btn-secondary {
  background-color: transparent;
  color: var(--page-login-primary-color);
  border-color: var(--page-login-primary-color);
}

.page-login__btn-secondary:hover {
  background-color: var(--page-login-primary-color);
  color: var(--page-login-secondary-color);
}

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

.page-login__cta-buttons--center {
  text-align: center;
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  width: 100%;
  padding-top: 10px; /* Small top padding, body handles header offset */
  padding-bottom: 60px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  overflow: hidden;
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-width: 1920px; /* Max width for the image */
  margin-bottom: 30px;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-login__hero-content {
  position: relative;
  z-index: 2;
  max-width: 900px;
  padding: 0 20px;
}

.page-login__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

/* Login Form Section */
.page-login__form-section {
  padding: 60px 0;
  text-align: center;
}

.page-login__login-card {
  background: var(--page-login-card-bg-light);
  color: var(--page-login-dark-text-color);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
  max-width: 700px;
  margin: 40px auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 30px;
}

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

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

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
  color: var(--page-login-dark-text-color);
  background-color: #f9f9f9;
}

.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: var(--page-login-primary-color);
}

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

.page-login__register-prompt {
  margin-top: 20px;
  font-size: 1em;
  color: var(--page-login-dark-text-color);
}

.page-login__register-link {
  color: var(--page-login-primary-color);
  font-weight: bold;
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 80px 0;
}

.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;
}

.page-login__benefit-title {
  color: var(--page-login-primary-color);
  margin-bottom: 15px;
}

/* Security Section */
.page-login__security-section {
  padding: 80px 0;
}

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

.page-login__security-image {
  flex: 1 1 40%;
  min-width: 300px;
  max-width: 600px;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.page-login__security-list {
  flex: 1 1 50%;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-login__security-item {
  background-color: var(--page-login-card-bg-light);
  color: var(--page-login-dark-text-color);
  margin-bottom: 15px;
  padding: 15px 20px;
  border-left: 5px solid var(--page-login-primary-color);
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.page-login__security-item strong {
  color: var(--page-login-primary-color);
}

.page-login__security-note {
  text-align: center;
  margin-top: 40px;
  font-style: italic;
}

/* Troubleshooting Section */
.page-login__troubleshooting-section {
  padding: 80px 0;
}

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

.page-login__troubleshooting-item {
  text-align: left;
}

.page-login__troubleshooting-title {
  color: var(--page-login-primary-color);
}

.page-login__support-cta {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
}

.page-login__support-link {
  font-weight: bold;
}

/* Games Section */
.page-login__games-section {
  padding: 80px 0;
  text-align: center;
}

.page-login__games-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 40px;
  object-fit: cover;
}

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

.page-login__game-category {
  text-align: center;
}

.page-login__game-category a {
  color: var(--page-login-dark-text-color);
}

.page-login__light-bg .page-login__game-category a {
  color: var(--page-login-dark-text-color);
}

.page-login__category-title {
  color: var(--page-login-primary-color);
}

/* Promotions Section */
.page-login__promotions-section {
  padding: 80px 0;
}

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

.page-login__promotion-card {
  text-align: center;
}

.page-login__promotion-title {
  color: var(--page-login-primary-color);
}

.page-login__promotion-link {
  display: inline-block;
  margin-top: 15px;
  padding: 10px 20px;
  background-color: var(--page-login-primary-color);
  color: var(--page-login-secondary-color);
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
}

.page-login__promotion-link:hover {
  background-color: darken(var(--page-login-primary-color), 10%);
  text-decoration: none;
}

/* FAQ Section */
.page-login__faq-section {
  padding: 80px 0;
}

.page-login__faq-list {
  max-width: 900px;
  margin: 40px auto;
}

.page-login__faq-item {
  margin-bottom: 15px;
  border: 1px solid #ddd;
  border-radius: 8px;
  background-color: var(--page-login-card-bg-light);
  color: var(--page-login-dark-text-color);
}

.page-login__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  font-weight: bold;
  cursor: pointer;
  color: var(--page-login-dark-text-color);
}

.page-login__faq-item summary::-webkit-details-marker {
  display: none;
}

.page-login__faq-qtext {
  flex-grow: 1;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
  color: var(--page-login-primary-color);
}

.page-login__faq-answer {
  padding: 0 20px 20px 20px;
  line-height: 1.8;
  color: var(--page-login-dark-text-color);
}

/* Register CTA Section */
.page-login__register-cta-section {
  padding: 80px 0;
  text-align: center;
}

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

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__hero-content {
    padding: 0 30px;
  }
  .page-login__security-content {
    flex-direction: column;
    align-items: center;
  }
  .page-login__security-image,
  .page-login__security-list {
    flex: none;
    width: 100%;
    max-width: 800px;
  }
}

@media (max-width: 768px) {
  .page-login {
    font-size: 16px;
    line-height: 1.6;
  }

  .page-login__hero-section {
    padding-top: 10px !important;
    padding-bottom: 40px;
  }

  .page-login__main-title {
    font-size: clamp(1.8rem, 7vw, 2.5rem);
  }

  .page-login__section-title {
    font-size: clamp(1.5rem, 6vw, 2.2rem);
    margin-top: 30px;
    margin-bottom: 20px;
  }

  .page-login__section-description {
    margin-bottom: 30px;
  }

  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-login__cta-button,
  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login a[class*="button"],
  .page-login a[class*="btn"] {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-login__cta-buttons,
  .page-login__button-group,
  .page-login__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }

  .page-login__container,
  .page-login__login-card,
  .page-login__security-content,
  .page-login__games-section,
  .page-login__promotions-section,
  .page-login__register-cta-section {
    padding-left: 15px;
    padding-right: 15px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
  }

  .page-login img,
  .page-login__hero-image,
  .page-login__login-image,
  .page-login__security-image,
  .page-login__games-image,
  .page-login__register-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
    object-fit: cover;
  }

  .page-login__login-card {
    padding: 25px;
  }

  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .page-login__benefits-grid,
  .page-login__troubleshooting-grid,
  .page-login__promotions-grid,
  .page-login__game-categories {
    grid-template-columns: 1fr;
  }

  .page-login__security-list {
    padding-left: 0;
  }

  .page-login__faq-item summary {
    padding: 15px;
  }

  .page-login__faq-answer {
    padding: 0 15px 15px 15px;
  }
}