/* style/login.css */

/* Base styles for the login page */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  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__section-title {
  font-size: 2.5em;
  color: #ffffff;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-login__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  text-align: center;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Color contrast adjustments based on body background (#121212) */
.page-login__dark-bg {
  background-color: #1a1a1a; /* Slightly lighter than body for sections */
  color: #ffffff;
}

.page-login__light-bg {
  background-color: #f8f8f8;
  color: #333333;
}

.page-login__light-bg .page-login__section-title,
.page-login__light-bg .page-login__section-description {
  color: #333333;
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
  padding: 60px 0;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  background-color: #121212; /* Ensure dark background for hero */
}

.page-login__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(rgba(0,0,0,0.7), rgba(0,0,0,0.7));
  z-index: 1;
}

.page-login__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 600px;
  padding: 20px;
}

.page-login__main-title {
  font-size: 3.5em;
  color: #FFFFFF;
  margin-bottom: 20px;
  font-weight: bold;
}

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

.page-login__login-card {
  background-color: rgba(255, 255, 255, 0.1);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  margin: 0 auto;
}

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

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

.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 #26A9E0;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.05);
  color: #FFFFFF;
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-login__form-input:focus {
  outline: none;
  border-color: #EA7C07;
  box-shadow: 0 0 0 3px rgba(40, 167, 69, 0.3);
}

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

.page-login__checkbox-container {
  display: block;
  position: relative;
  padding-left: 25px;
  cursor: pointer;
  font-size: 0.95em;
  color: #f0f0f0;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

.page-login__checkbox-container input {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.page-login__checkbox-checkmark {
  position: absolute;
  top: 0;
  left: 0;
  height: 18px;
  width: 18px;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid #26A9E0;
  border-radius: 3px;
}

.page-login__checkbox-container input:checked ~ .page-login__checkbox-checkmark {
  background-color: #26A9E0;
  border-color: #26A9E0;
}

.page-login__checkbox-checkmark:after {
  content: "";
  position: absolute;
  display: none;
}

.page-login__checkbox-container input:checked ~ .page-login__checkbox-checkmark:after {
  display: block;
}

.page-login__checkbox-container .page-login__checkbox-checkmark:after {
  left: 6px;
  top: 2px;
  width: 5px;
  height: 10px;
  border: solid white;
  border-width: 0 3px 3px 0;
  -webkit-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  transform: rotate(45deg);
}

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

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

.page-login__btn-primary {
  display: block;
  width: 100%;
  padding: 15px 20px;
  background-color: #EA7C07; /* Login button specific color */
  color: #FFFFFF;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
}

.page-login__btn-primary:hover {
  background-color: #d16b06;
}

.page-login__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  border-radius: 5px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
}

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

.page-login__register-prompt {
  color: #f0f0f0;
  text-align: center;
  margin-top: 25px;
  font-size: 0.95em;
}

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

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

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

.page-login__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.4); /* Darken image for text readability */
}

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

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

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

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

.page-login__benefit-text {
  font-size: 1em;
  color: #555555;
}

.page-login__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 50px;
  flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
}

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

.page-login__security-layout {
  display: flex;
  align-items: center;
  gap: 50px;
}

.page-login__security-text-content {
  flex: 1;
}

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

.page-login__security-list-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-login__security-list-item p {
  color: #f0f0f0;
  font-size: 0.95em;
}

.page-login__security-sub-title {
  font-size: 1.3em;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-login__security-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-login__security-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  display: block;
  margin: 0 auto;
}

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

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

.page-login__game-card {
  background-color: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #333333;
  display: flex;
  flex-direction: column;
}

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

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

.page-login__game-description {
  font-size: 0.95em;
  color: #555555;
  padding: 0 15px 20px;
  flex-grow: 1;
}

.page-login__game-card .page-login__btn-secondary {
  margin: 0 15px 20px;
  width: calc(100% - 30px);
}

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

.page-login__promotions-vip-layout {
  display: flex;
  align-items: center;
  gap: 50px;
  flex-direction: row-reverse; /* Image on left, text on right */
}

.page-login__promotions-content {
  flex: 1;
}

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

.page-login__promotions-list-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 8px;
  margin-bottom: 15px;
  color: #ffffff;
}

.page-login__promotions-list-item p {
  color: #f0f0f0;
  font-size: 0.95em;
}

.page-login__promotions-sub-title {
  font-size: 1.3em;
  color: #26A9E0;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-login__promotions-image-wrapper {
  flex: 1;
  text-align: center;
}

.page-login__promotions-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  display: block;
  margin: 0 auto;
}

/* Responsible Gaming Section */
.page-login__responsible-gaming-section {
  padding: 80px 0;
}

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

.page-login__responsible-gaming-item {
  background-color: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  color: #333333;
}

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

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

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

.page-login__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #26A9E0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  list-style: none; /* For details/summary */
}

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

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

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

.page-login__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #26A9E0;
}

.page-login__faq-answer {
  padding: 0 20px 20px;
  font-size: 1em;
  color: #f0f0f0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease-out;
}

.page-login__faq-item[open] > .page-login__faq-answer {
  max-height: 500px; /* Adjust as needed */
  padding-top: 10px;
}

.page-login__faq-image-wrapper {
  text-align: center;
  margin-top: 40px;
}

.page-login__faq-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
  display: block;
  margin: 0 auto;
}

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

.page-login__cta-content {
  max-width: 800px;
}

/* Responsive Design */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 3em;
  }

  .page-login__security-layout,
  .page-login__promotions-vip-layout {
    flex-direction: column;
    gap: 30px;
  }

  .page-login__security-image-wrapper,
  .page-login__promotions-image-wrapper {
    order: -1; /* Image first on smaller screens */
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    min-height: 60vh;
    padding: 40px 0;
    padding-top: var(--header-offset, 120px) !important;
  }

  .page-login__main-title {
    font-size: 2.5em;
  }

  .page-login__hero-description {
    font-size: 1em;
  }

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

  .page-login__card-title {
    font-size: 1.8em;
  }

  .page-login__section-title {
    font-size: 2em;
  }

  .page-login__section-description {
    font-size: 1em;
  }

  .page-login__benefits-section,
  .page-login__security-section,
  .page-login__games-section,
  .page-login__promotions-vip-section,
  .page-login__responsible-gaming-section,
  .page-login__faq-section,
  .page-login__cta-section {
    padding: 60px 0;
  }

  /* Images responsive */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  /* Containers responsive */
  .page-login__container,
  .page-login__section,
  .page-login__card,
  .page-login__cta-buttons,
  .page-login__login-card,
  .page-login__hero-content,
  .page-login__security-text-content,
  .page-login__promotions-content,
  .page-login__faq-list,
  .page-login__cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important; /* Prevent horizontal scroll */
  }

  /* Buttons responsive */
  .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;
  }
}