/* style/login.css */
/* Body padding-top handled by shared.css var(--header-offset) */

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

.page-login__hero-section {
  position: relative;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 60px 20px;
  padding-top: 10px; /* Small top padding, body handles header offset */
  background: linear-gradient(180deg, #4A8BFF 0%, #2F6BFF 100%); /* Button gradient for hero background */
  color: #ffffff;
  text-align: center;
  overflow: hidden;
}

.page-login__hero-image-wrapper {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: hidden;
}

.page-login__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.3;
}

.page-login__hero-content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  margin: 0 auto;
}

.page-login__main-title {
  font-size: clamp(2.5rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
}

.page-login__description {
  font-size: 1.125rem;
  margin-bottom: 40px;
  color: #f0f0f0;
}

.page-login__login-card {
  background: #FFFFFF; /* Card BG */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  margin: 0 auto;
  color: #1F2D3D; /* Text Main */
}

.page-login__card-title {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 25px;
  color: #000000; /* Custom Color_1776249996415 */
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: 500;
  color: #1F2D3D;
}

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

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

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

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

.page-login__forgot-password {
  color: #2F6BFF; /* Primary Color */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
  color: #6FA3FF; /* Secondary Color */
}

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

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

.page-login__register-text {
  text-align: center;
  margin-top: 25px;
  font-size: 0.95rem;
  color: #1F2D3D;
}

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

.page-login__register-link:hover {
  color: #6FA3FF; /* Secondary Color */
}

.page-login__video-section {
  padding: 60px 20px;
  background-color: #F4F7FB;
  text-align: center;
  color: #1F2D3D;
}

.page-login__video-container {
  width: 100%;
  max-width: 1000px;
  margin: 30px auto 0;
  box-sizing: border-box;
  overflow: hidden;
}

.page-login__video-wrapper {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  border-radius: 12px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.page-login__video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
}

.page-login__video-cta {
  margin-top: 30px;
  max-width: 300px;
}

.page-login__features-section,
.page-login__how-to-login,
.page-login__game-categories,
.page-login__responsible-gaming,
.page-login__faq-section,
.page-login__cta-section {
  padding: 80px 20px;
  text-align: center;
}

.page-login__light-bg {
  background-color: #F4F7FB;
  color: #1F2D3D;
}

.page-login__dark-section {
  background: linear-gradient(180deg, #2F6BFF 0%, #4A8BFF 100%);
  color: #ffffff;
}

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

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

.page-login__section-title {
  font-size: clamp(2rem, 4vw, 2.8rem);
  font-weight: 700;
  margin-bottom: 20px;
  color: #000000; /* Custom Color_1776249996415 */
}

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

.page-login__section-description {
  font-size: 1.125rem;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #1F2D3D;
}

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

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

.page-login__feature-card,
.page-login__game-card {
  background: #FFFFFF; /* Card BG */
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  padding: 30px;
  text-align: center;
  color: #1F2D3D;
  display: flex;
  flex-direction: column;
  align-items: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-login__feature-icon,
.page-login__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-login__feature-title,
.page-login__game-title {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 15px;
  color: #000000; /* Custom Color_1776249996415 */
}

.page-login__game-title a {
  color: #000000; /* Custom Color_1776249996415 */
  text-decoration: none;
}

.page-login__game-title a:hover {
  color: #2F6BFF;
}

.page-login__feature-text,
.page-login__game-text {
  font-size: 1rem;
  color: #1F2D3D;
  margin-bottom: 20px;
}

.page-login__btn-secondary {
  display: inline-block;
  padding: 10px 20px;
  background: #ffffff;
  color: #2F6BFF; /* Primary Color */
  font-size: 1rem;
  font-weight: 600;
  border: 2px solid #2F6BFF;
  border-radius: 8px;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

.page-login__btn-secondary:hover {
  background: #2F6BFF;
  color: #ffffff;
  border-color: #2F6BFF;
}

.page-login__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  display: flex;
  flex-direction: column;
  gap: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-login__step-item {
  position: relative;
  padding-left: 50px;
}

.page-login__step-item::before {
  content: counter(step-counter);
  counter-increment: step-counter;
  position: absolute;
  left: 0;
  top: 0;
  width: 35px;
  height: 35px;
  background: #6FA3FF; /* Secondary Color */
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.2rem;
  box-shadow: 0 2px 8px rgba(111, 163, 255, 0.4);
}

.page-login__step-title {
  font-size: 1.6rem;
  font-weight: 600;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-login__step-text {
  font-size: 1rem;
  color: #f0f0f0;
}

.page-login__tip-text {
  margin-top: 40px;
  font-size: 1.1rem;
  color: #ffffff;
  font-weight: 500;
}

.page-login__paragraph {
  font-size: 1rem;
  max-width: 800px;
  margin: 20px auto 40px;
  color: #1F2D3D;
}

.page-login__dark-section .page-login__paragraph {
  color: #f0f0f0;
}

.page-login__faq-list {
  margin-top: 40px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-login__faq-item {
  background: #FFFFFF; /* Card BG */
  border: 1px solid #D6E2FF; /* Border */
  border-radius: 10px;
  margin-bottom: 15px;
  overflow: hidden;
  transition: all 0.3s ease;
}

.page-login__faq-item[open] {
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.15rem;
  font-weight: 600;
  color: #000000; /* Custom Color_1776249996415 */
  cursor: pointer;
  list-style: none;
  user-select: none;
  position: relative;
}

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

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

.page-login__faq-toggle {
  font-size: 1.5rem;
  font-weight: 700;
  width: 25px;
  text-align: center;
  color: #2F6BFF;
  transition: transform 0.3s ease;
}

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

.page-login__faq-answer {
  padding: 0 25px 20px;
  font-size: 1rem;
  color: #1F2D3D;
  line-height: 1.6;
}

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

.page-login__cta-button {
  max-width: 250px;
}

/* --- Responsive Styles --- */

/* All images and videos must be responsive */
.page-login img {
  max-width: 100%;
  height: auto;
  display: block;
}

.page-login video,
.page-login__video {
  max-width: 100%;
  width: 100%;
  height: auto;
  display: block;
}

/* All containers with images/videos/buttons must be responsive */
.page-login__video-section,
.page-login__video-container,
.page-login__video-wrapper,
.page-login__section,
.page-login__card,
.page-login__container,
.page-login__cta-buttons,
.page-login__button-group,
.page-login__btn-container {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow: hidden; /* Prevent overflow on containers */
}

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

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

  .page-login__main-title {
    font-size: 2.2rem;
    margin-bottom: 15px;
  }

  .page-login__description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

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

  .page-login__card-title {
    font-size: 1.5rem;
    margin-bottom: 20px;
  }

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

  .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__video-section {
    padding: 30px 15px;
    padding-top: 10px !important; /* Small top padding, body handles header offset */
  }

  .page-login__video-container,
  .page-login__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  .page-login__features-section,
  .page-login__how-to-login,
  .page-login__game-categories,
  .page-login__responsible-gaming,
  .page-login__faq-section,
  .page-login__cta-section {
    padding: 40px 15px;
  }

  .page-login__section-title {
    font-size: 2rem;
    margin-bottom: 15px;
  }

  .page-login__section-description {
    font-size: 1rem;
    margin-bottom: 30px;
  }

  .page-login__features-grid,
  .page-login__game-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login__feature-card,
  .page-login__game-card {
    padding: 20px;
  }

  .page-login__feature-icon,
  .page-login__game-image {
    height: 180px;
    margin-bottom: 15px;
  }

  .page-login__feature-title,
  .page-login__game-title {
    font-size: 1.3rem;
    margin-bottom: 10px;
  }

  .page-login__feature-text,
  .page-login__game-text {
    font-size: 0.95rem;
    margin-bottom: 15px;
  }

  .page-login__steps-list {
    padding-left: 0;
    gap: 20px;
  }

  .page-login__step-item {
    padding-left: 45px;
  }

  .page-login__step-item::before {
    width: 30px;
    height: 30px;
    font-size: 1rem;
  }

  .page-login__step-title {
    font-size: 1.4rem;
  }

  .page-login__step-text {
    font-size: 0.9rem;
  }

  .page-login__faq-question {
    padding: 15px 20px;
    font-size: 1rem;
  }

  .page-login__faq-answer {
    padding: 0 20px 15px;
    font-size: 0.9rem;
  }

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

  /* Ensure all img and video elements are responsive */
  .page-login img,
  .page-login video,
  .page-login__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* Ensure all containing elements have correct responsive properties */
  .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;
  }

  .page-login__hero-image-wrapper {
    width: 100% !important;
    height: auto !important;
    position: relative;
    padding-bottom: 56.25%; /* Maintain aspect ratio for hero image on mobile */
  }

  .page-login__hero-image {
    position: absolute;
    top: 0;
    left: 0;
  }

  .page-login__hero-content {
    padding-top: 20px; /* Adjust spacing after hero image on mobile */
  }
}