/* style/login.css */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Dark background from shared.css, so light text */
  background-color: transparent; /* Body background handled by shared.css */
}

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

.page-login__hero-section {
  position: relative;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px);
  background-color: #0a0a0a; /* Ensure a dark background for this section */
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
  text-align: center;
}

.page-login__hero-content {
  max-width: 800px;
  margin-bottom: 40px;
}

.page-login__main-title {
  font-size: 3.2em;
  color: #26A9E0;
  margin-bottom: 20px;
  line-height: 1.2;
  font-weight: bold;
}

.page-login__hero-description {
  font-size: 1.2em;
  color: #f0f0f0;
  margin-bottom: 40px;
}

.page-login__login-card {
  background-color: #1a1a1a; /* Darker card background */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  max-width: 450px;
  width: 100%;
  text-align: left;
  margin: 0 auto; /* Center the card */
}

.page-login__card-title {
  font-size: 2em;
  color: #26A9E0;
  margin-bottom: 30px;
  text-align: center;
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #333;
  border-radius: 5px;
  background-color: #2a2a2a;
  color: #ffffff;
  font-size: 1em;
  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;
  font-size: 0.95em;
}

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

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

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

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

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

.page-login__btn-submit:hover {
  background-color: #d86c06;
}

.page-login__social-login {
  margin-top: 30px;
  text-align: center;
}

.page-login__social-text {
  color: #f0f0f0;
  margin-bottom: 15px;
  position: relative;
}

.page-login__social-text::before, .page-login__social-text::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 35%;
  height: 1px;
  background-color: #444;
}

.page-login__social-text::before {
  left: 0;
}

.page-login__social-text::after {
  right: 0;
}

.page-login__social-buttons {
  display: flex;
  justify-content: space-around;
  gap: 15px;
}

.page-login__social-btn {
  flex: 1;
  padding: 12px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  color: #ffffff;
  font-size: 1em;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
}

.page-login__social-btn--facebook {
  background-color: #3b5998;
}

.page-login__social-btn--facebook:hover {
  background-color: #2d4373;
}

.page-login__social-btn--google {
  background-color: #dd4b39;
}

.page-login__social-btn--google:hover {
  background-color: #c23321;
}

.page-login__register-link {
  margin-top: 30px;
  text-align: center;
  color: #f0f0f0;
}

.page-login__register-link a {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
}

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

.page-login__section-title {
  font-size: 2.5em;
  color: #26A9E0;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-login__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
}

.page-login__benefits-section,
.page-login__security-info,
.page-login__faq-section {
  padding: 80px 0;
  background-color: #121212; /* Light background for content sections */
  color: #ffffff;
}

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

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

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

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

.page-login__benefit-text,
.page-login__security-text {
  font-size: 1em;
  color: #f0f0f0;
}

.page-login__games-preview,
.page-login__app-download,
.page-login__contact-cta {
  padding: 80px 0;
  background-color: #0a0a0a;
  color: #ffffff;
}

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

.page-login__game-card {
  background-color: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: center;
}

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

.page-login__game-title {
  font-size: 1.4em;
  margin: 20px 15px 10px 15px;
  font-weight: bold;
}

.page-login__game-title a {
  color: #26A9E0;
  text-decoration: none;
}

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

.page-login__game-text {
  font-size: 0.95em;
  color: #f0f0f0;
  padding: 0 15px 20px 15px;
}

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

.page-login__btn-primary,
.page-login__btn-secondary {
  padding: 15px 30px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  text-align: center;
  display: inline-block;
}

.page-login__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

.page-login__btn-primary:hover {
  background-color: #1f8ac7;
  border-color: #1f8ac7;
}

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

.page-login__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-login__security-footer {
  margin-top: 40px;
  text-align: center;
  font-size: 0.95em;
  color: #f0f0f0;
}

.page-login__security-footer a {
  color: #26A9E0;
  text-decoration: none;
}

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

.page-login__app-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 50px;
  margin-top: 50px;
}

.page-login__app-image-wrapper {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  text-align: center;
}

.page-login__app-image {
  width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
}

.page-login__app-features {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  text-align: left;
}

.page-login__feature-list {
  list-style: none;
  padding: 0;
  margin-bottom: 30px;
}

.page-login__feature-list li {
  background: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%2326A9E0" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"><polyline points="20 6 9 17 4 12"></polyline></svg>') no-repeat left center;
  background-size: 20px;
  padding-left: 30px;
  margin-bottom: 15px;
  color: #f0f0f0;
  font-size: 1.05em;
}

.page-login__feature-highlight {
  color: #26A9E0;
}

.page-login__app-buttons {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
}

.page-login__btn-app {
  padding: 15px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%;
}

.page-login__btn-app--ios {
  background-color: #000000;
}

.page-login__btn-app--ios:hover {
  background-color: #333333;
}

.page-login__btn-app--android {
  background-color: #3DDC84;
}

.page-login__btn-app--android:hover {
  background-color: #33c477;
}

.page-login__app-guide {
  margin-top: 40px;
  text-align: center;
  font-size: 1em;
  color: #f0f0f0;
}

.page-login__app-guide a {
  color: #26A9E0;
  text-decoration: none;
}

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

.page-login__faq-list {
  margin-top: 40px;
}

.page-login__faq-item {
  background-color: #1a1a1a;
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #1a1a1a;
  color: #26A9E0;
  font-size: 1.15em;
  font-weight: bold;
  border-bottom: 1px solid #333;
  list-style: none; /* For details/summary */
}

.page-login__faq-item[open] .page-login__faq-question {
  border-bottom: 1px solid #444;
}

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

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  color: #ffffff;
  transition: transform 0.3s ease;
}

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

.page-login__faq-answer {
  padding: 15px 25px 25px 25px;
  background-color: #2a2a2a;
  color: #f0f0f0;
  font-size: 1em;
}

.page-login__contact-cta {
  padding: 100px 0;
  text-align: center;
  background-color: #0a0a0a;
}

/* Responsive styles */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 2.8em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding-top: var(--header-offset, 120px) !important;
    min-height: 500px;
  }
  .page-login__hero-content {
    margin-bottom: 20px;
  }
  .page-login__main-title {
    font-size: 2.2em;
  }
  .page-login__hero-description {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-login__login-card {
    padding: 30px 20px;
  }
  .page-login__card-title {
    font-size: 1.8em;
  }
  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .page-login__social-buttons {
    flex-direction: column;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }
  .page-login__benefits-section,
  .page-login__games-preview,
  .page-login__security-info,
  .page-login__app-download,
  .page-login__faq-section,
  .page-login__contact-cta {
    padding: 50px 0;
  }
  .page-login__benefit-item,
  .page-login__security-item,
  .page-login__game-card {
    padding: 20px;
  }
  .page-login__game-image {
    height: 180px;
  }
  .page-login__app-content {
    flex-direction: column;
    gap: 30px;
  }
  .page-login__app-image-wrapper,
  .page-login__app-features {
    min-width: unset;
    max-width: 100%;
    width: 100%;
  }
  .page-login__app-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-login__btn-app {
    width: 100%;
    max-width: 100% !important;
    padding: 12px 15px;
  }

  /* General mobile responsiveness for images, videos, buttons, and containers */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-login video,
  .page-login__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__video-section,
  .page-login__video-container,
  .page-login__video-wrapper,
  .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;
    overflow: hidden !important; /* Ensure no horizontal scroll */
  }

  .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 {
    flex-direction: column;
    gap: 15px;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 1.8em;
  }
  .page-login__card-title {
    font-size: 1.5em;
  }
  .page-login__section-title {
    font-size: 1.5em;
  }
  .page-login__login-card {
    margin: 0;
    width: calc(100% - 30px); /* Adjust for padding on container */
  }
}