.page-login {
  font-family: 'Arial', sans-serif;
  color: #1F2D3D; /* Text Main */
  background-color: #F4F7FB; /* Background */
  line-height: 1.6;
}

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

.page-login__section-padding {
  padding: 60px 0;
}

.page-login__section-title {
  font-size: clamp(28px, 4vw, 38px);
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-bottom: 20px;
  font-weight: 700;
  line-height: 1.2;
}

.page-login__section-description {
  font-size: 18px;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
}

/* Hero Section */
.page-login__hero-section {
  padding-top: 10px; /* Small top padding, body handles header offset */
  background-color: #F4F7FB;
  overflow: hidden;
  position: relative;
}

.page-login__hero-content-wrapper {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  max-width: 1400px;
  margin: 0 auto;
  padding: 40px 20px;
}

.page-login__hero-image-container {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  margin-right: 40px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

.page-login__hero-text-area {
  flex: 1;
  min-width: 300px;
  max-width: 500px;
  padding-top: 20px;
}

.page-login__main-title {
  font-size: clamp(32px, 5vw, 48px);
  color: #1F2D3D; /* Text Main */
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 20px;
}

.page-login__intro-text {
  font-size: 18px;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 30px;
}

.page-login__login-form {
  background: #FFFFFF; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  border: 1px solid #D6E2FF; /* Border */
}

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

.page-login__form-label {
  display: block;
  font-size: 15px;
  color: #1F2D3D; /* Text Main */
  margin-bottom: 8px;
  font-weight: 600;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 8px;
  font-size: 16px;
  color: #1F2D3D; /* Text Main */
  box-sizing: border-box;
}

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

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

.page-login__remember-me {
  display: flex;
  align-items: center;
  font-size: 15px;
  color: #1F2D3D; /* Text Main */
  cursor: pointer;
}

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

.page-login__forgot-password-link {
  font-size: 15px;
  color: #2F6BFF; /* Primary Color */
  text-decoration: none;
  font-weight: 500;
}

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

.page-login__btn-primary {
  display: block;
  width: 100%;
  padding: 15px 25px;
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button */
  color: #ffffff;
  font-size: 18px;
  font-weight: 700;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.page-login__btn-primary a {
  color: inherit;
  text-decoration: none;
  display: block;
}

.page-login__btn-primary:hover {
  background: linear-gradient(180deg, #6FA3FF 0%, #4A8BFF 100%);
  box-shadow: 0 8px 20px rgba(47, 107, 255, 0.3);
}

.page-login__register-prompt {
  font-size: 15px;
  color: #1F2D3D; /* Text Main */
  text-align: center;
  margin-top: 20px;
}

.page-login__register-link {
  color: #2F6BFF; /* Primary Color */
  text-decoration: none;
  font-weight: 600;
}

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

/* Why Login Section */
.page-login__benefits-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  list-style: none;
  padding: 0;
  margin-top: 50px;
}

.page-login__benefit-item {
  background: #FFFFFF; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  border: 1px solid #D6E2FF; /* Border */
  text-align: center;
}

.page-login__benefit-title {
  font-size: 22px;
  color: #2F6BFF; /* Primary Color */
  margin-bottom: 15px;
  font-weight: 700;
}

.page-login__benefit-item p {
  font-size: 16px;
  color: #1F2D3D; /* Text Main */
}

/* Security Section */
.page-login__dark-section {
  background: #2F6BFF; /* Primary Color */
  color: #ffffff;
}

.page-login__dark-section .page-login__section-title,
.page-login__dark-section .page-login__section-description {
  color: #ffffff;
}

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

.page-login__security-text {
  flex: 1;
  min-width: 300px;
}

.page-login__security-text .page-login__section-title {
  text-align: left;
}

.page-login__security-text .page-login__section-description {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 25px;
}

.page-login__security-image-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

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

.page-login__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: #ffffff; /* Card BG */
  color: #2F6BFF; /* Primary Color */
  font-size: 16px;
  font-weight: 600;
  border: 2px solid #2F6BFF; /* Primary Color */
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

.page-login__btn-secondary:hover {
  background: #2F6BFF; /* Primary Color */
  color: #ffffff;
  box-shadow: 0 5px 15px rgba(47, 107, 255, 0.4);
}

.page-login__btn-secondary a {
  color: inherit;
  text-decoration: none;
}

/* Games Access Section */
.page-login__game-categories {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 50px;
}

.page-login__game-card {
  background: #FFFFFF; /* Card BG */
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  text-decoration: none;
  color: #1F2D3D; /* Text Main */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

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

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

.page-login__game-card-title {
  font-size: 20px;
  color: #2F6BFF; /* Primary Color */
  margin: 15px 15px 10px;
  font-weight: 700;
}

.page-login__game-card-description {
  font-size: 15px;
  color: #1F2D3D; /* Text Main */
  padding: 0 15px 15px;
  flex-grow: 1;
}

.page-login__cta-buttons-center {
  text-align: center;
  margin-top: 50px;
}

.page-login__cta-buttons-center .page-login__btn-primary {
  width: auto;
  display: inline-block;
}

/* Promotions Section */
.page-login__light-bg {
  background-color: #F4F7FB; /* Background */
  color: #1F2D3D;
}

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

.page-login__promotions-text {
  flex: 1;
  min-width: 300px;
}

.page-login__promotions-text .page-login__section-title {
  text-align: left;
}

.page-login__promotions-text .page-login__section-description {
  text-align: left;
  margin-left: 0;
  margin-right: 0;
  margin-bottom: 25px;
}

.page-login__promotions-image-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

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

/* FAQ Section */
.page-login__faq-list {
  margin-top: 40px;
}

details.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #D6E2FF; /* Border */
  overflow: hidden;
  background: #FFFFFF; /* Card BG */
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

details.page-login__faq-item summary.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
}

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

details.page-login__faq-item summary.page-login__faq-question:hover {
  background: #f0f5ff;
}

.page-login__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #1F2D3D; /* Text Main */
}

.page-login__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #2F6BFF; /* Primary Color */
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
  transition: transform 0.3s ease;
}

details[open] .page-login__faq-toggle {
  transform: rotate(45deg);
}

details.page-login__faq-item .page-login__faq-answer {
  padding: 0 25px 25px;
  background: #F4F7FB; /* Background */
  border-radius: 0 0 10px 10px;
  color: #1F2D3D; /* Text Main */
  font-size: 16px;
}

.page-login__faq-answer p {
  margin: 0;
}

/* CTA Section */
.page-login__cta-section {
  background: #2F6BFF; /* Primary Color */
  color: #ffffff;
  text-align: center;
}

.page-login__cta-section .page-login__section-title,
.page-login__cta-section .page-login__section-description {
  color: #ffffff;
}

.page-login__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 40px;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

.page-login__cta-buttons .page-login__btn-primary,
.page-login__cta-buttons .page-login__btn-secondary {
  width: auto;
  min-width: 180px;
  padding: 15px 30px;
  font-size: 18px;
}

.page-login__cta-buttons .page-login__btn-secondary {
  background: #ffffff;
  color: #2F6BFF;
  border: 2px solid #ffffff;
}

.page-login__cta-buttons .page-login__btn-secondary:hover {
  background: #D6E2FF;
  color: #2F6BFF;
  border-color: #D6E2FF;
  box-shadow: 0 5px 15px rgba(255, 255, 255, 0.3);
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-login__hero-image-container {
    margin-right: 20px;
  }

  .page-login__hero-text-area {
    max-width: 450px;
  }

  .page-login__security-content,
  .page-login__promotions-content {
    flex-direction: column;
    text-align: center;
  }

  .page-login__security-text .page-login__section-title,
  .page-login__security-text .page-login__section-description,
  .page-login__promotions-text .page-login__section-title,
  .page-login__promotions-text .page-login__section-description {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }

  .page-login__security-image-wrapper,
  .page-login__promotions-image-wrapper {
    order: -1; /* Image above text on smaller screens */
    margin-bottom: 30px;
  }

  .page-login__game-card-image {
    height: 180px;
  }

  .page-login__faq-qtext {
    font-size: 17px;
  }
}

@media (max-width: 768px) {
  .page-login__section-padding {
    padding: 40px 0;
  }

  .page-login__container {
    padding: 0 15px;
  }

  /* HERO Section */
  .page-login__hero-section {
    padding-top: 10px; /* Small top padding, body handles header offset */
  }

  .page-login__hero-content-wrapper {
    flex-direction: column;
    padding: 20px 15px;
  }

  .page-login__hero-image-container {
    margin-right: 0;
    margin-bottom: 30px;
    order: -1; /* Image above form */
  }

  .page-login__hero-image {
    object-fit: contain !important; /* Ensure image is fully visible */
    aspect-ratio: unset !important; /* Allow natural aspect ratio */
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-login__hero-text-area {
    max-width: 100%;
    padding-top: 0;
  }

  .page-login__main-title {
    text-align: center;
    font-size: clamp(28px, 8vw, 36px);
  }

  .page-login__intro-text {
    text-align: center;
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-login__login-form {
    padding: 20px;
  }

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

  .page-login__forgot-password-link {
    margin-top: 5px;
  }

  .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;
    font-size: 16px;
  }

  /* Generic Image/Container mobile adaptation */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__hero-content-wrapper,
  .page-login__security-content,
  .page-login__promotions-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Why Login Section */
  .page-login__benefits-list {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  /* Security & Promotions Sections */
  .page-login__security-image-wrapper,
  .page-login__promotions-image-wrapper {
    margin-bottom: 20px;
  }

  /* Games Access Section */
  .page-login__game-categories {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login__game-card-image {
    height: 160px;
  }

  .page-login__cta-buttons-center .page-login__btn-primary {
    max-width: 100% !important;
    width: 100% !important;
  }

  /* FAQ Section */
  details.page-login__faq-item summary.page-login__faq-question {
    padding: 15px 20px;
  }

  .page-login__faq-qtext {
    font-size: 16px;
  }

  .page-login__faq-toggle {
    font-size: 24px;
    width: 25px;
  }

  details.page-login__faq-item .page-login__faq-answer {
    padding: 0 20px 20px;
  }

  /* CTA Section */
  .page-login__cta-buttons {
    flex-direction: column !important;
    gap: 15px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__cta-buttons .page-login__btn-primary,
  .page-login__cta-buttons .page-login__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
  }
}