/* style/login.css */

/* Base Styles for page-login */
.page-login {
  color: #ffffff; /* Light text for dark body background */
  background-color: transparent; /* Body background is handled by shared.css #1a1a2e */
  font-family: 'Arial', sans-serif;
}

.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 15px;
}

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

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

.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  cursor: pointer;
  text-align: center;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-primary {
  background-color: #C30808; /* Custom Login/Register button color */
  color: #FFFF00; /* Custom Login/Register font color */
  border: 2px solid #C30808;
}

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

.page-login__btn-secondary {
  background-color: transparent;
  color: #FFFF00; /* Custom Login/Register font color */
  border: 2px solid #C30808; /* Custom Login/Register button color */
}

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

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

.page-login__cta-buttons--centered {
  justify-content: center;
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  width: 100%;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: var(--header-offset, 120px); /* Fixed header offset */
  overflow: hidden;
}

.page-login__hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -1;
  filter: brightness(0.6); /* Darken background image for text readability */
}

.page-login__hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 800px;
  color: #ffffff;
}

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

.page-login__description {
  font-size: 1.3em;
  margin-bottom: 40px;
  line-height: 1.6;
  color: #f0f0f0;
}

.page-login__login-form-wrapper {
  background-color: rgba(0, 0, 0, 0.7);
  padding: 40px;
  border-radius: 15px;
  max-width: 450px;
  margin: 0 auto;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

.page-login__login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-login__form-group {
  text-align: left;
}

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  font-size: 1.1em;
  color: #FFFFFF;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #017439;
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.1);
  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: #FFFF00; /* Yellow focus border */
  box-shadow: 0 0 0 3px rgba(255, 255, 0, 0.3);
}

.page-login__form-actions {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 10px;
}

.page-login__btn-login,
.page-login__btn-register {
  width: 100%;
}

.page-login__forgot-password {
  color: #FFFF00; /* Custom font color for links */
  text-decoration: none;
  font-size: 0.95em;
  text-align: center;
  margin-top: 10px;
  display: block;
}

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

/* Why Login Section */
.page-login__why-login-section {
  padding: 80px 0;
  background-color: #1a1a2e; /* Dark background from shared.css */
}

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

.page-login__benefit-card {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter card background */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  color: #FFFFFF;
}

.page-login__benefit-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.15);
}

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

.page-login__benefit-title {
  font-size: 1.5em;
  color: #FFFF00; /* Yellow for titles */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__benefit-text {
  font-size: 1em;
  color: #e0e0e0;
  line-height: 1.6;
}

/* Games & Features Section */
.page-login__games-features-section {
  padding: 80px 0;
  background-color: #017439; /* Brand primary color background */
}

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

.page-login__game-card {
  background-color: rgba(0, 0, 0, 0.4); /* Darker background for game cards */
  padding: 25px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
  color: #FFFFFF;
}

.page-login__game-card:hover {
  transform: translateY(-10px);
  background-color: rgba(0, 0, 0, 0.6);
}

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

.page-login__game-title {
  font-size: 1.4em;
  color: #FFFF00; /* Yellow for game titles */
  margin-bottom: 10px;
  font-weight: bold;
}

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

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

.page-login__game-description {
  font-size: 0.95em;
  color: #e0e0e0;
  line-height: 1.5;
}

/* Promotions Section */
.page-login__promotions-section {
  padding: 80px 0;
  background-color: #1a1a2e; /* Dark background from shared.css */
}

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

.page-login__promo-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background-color 0.3s ease;
  color: #FFFFFF;
}

.page-login__promo-card:hover {
  transform: translateY(-10px);
  background-color: rgba(255, 255, 255, 0.15);
}

.page-login__promo-image {
  width: 100%;
  max-width: 300px;
  height: 200px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-login__promo-title {
  font-size: 1.5em;
  color: #FFFF00; /* Yellow for promo titles */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__promo-title a {
  color: #FFFF00;
  text-decoration: none;
}

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

.page-login__promo-text {
  font-size: 1em;
  color: #e0e0e0;
  line-height: 1.6;
}

/* Security & Support Section */
.page-login__security-support-section {
  padding: 80px 0;
  background-color: #017439; /* Brand primary color background */
}

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

.page-login__feature-item {
  background-color: rgba(0, 0, 0, 0.4); /* Darker background for feature items */
  padding: 30px;
  border-radius: 12px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, background-color 0.3s ease;
  color: #FFFFFF;
}

.page-login__feature-item:hover {
  transform: translateY(-10px);
  background-color: rgba(0, 0, 0, 0.6);
}

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

.page-login__feature-title {
  font-size: 1.5em;
  color: #FFFF00; /* Yellow for feature titles */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__feature-title a {
  color: #FFFF00;
  text-decoration: none;
}

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

.page-login__feature-text {
  font-size: 1em;
  color: #e0e0e0;
  line-height: 1.6;
}

/* FAQ Section */
.page-login__faq-section {
  padding: 80px 0;
  background-color: #1a1a2e; /* Dark background from shared.css */
}

.page-login__faq-list {
  max-width: 800px;
  margin: 40px auto 0 auto;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

.page-login__faq-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__faq-item:last-child {
  border-bottom: none;
}

.page-login__faq-question {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 20px 25px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #FFFFFF;
  transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
  background-color: rgba(255, 255, 255, 0.15);
}

.page-login__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #FFFF00; /* Yellow toggle icon */
  transition: transform 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-toggle {
  transform: rotate(45deg); /* Plus to X/Minus */
}

.page-login__faq-answer {
  background-color: rgba(0, 0, 0, 0.5);
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  color: #e0e0e0;
  font-size: 1em;
  line-height: 1.6;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Sufficiently large to show content */
  padding: 20px 25px;
}

/* Final CTA Section */
.page-login__final-cta-section {
  padding: 80px 0;
  background-color: #017439; /* Brand primary color background */
  text-align: center;
}

/* Global image styles - ensure no small icons and responsiveness */
.page-login img {
  max-width: 100%;
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

@media (max-width: 768px) {
  .page-login__hero-section {
    min-height: 600px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-login__main-title {
    font-size: 2.5em;
  }
  .page-login__description {
    font-size: 1.1em;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__section-intro {
    font-size: 1em;
  }
  .page-login__login-form-wrapper {
    padding: 30px;
    max-width: 100%;
  }
  .page-login__btn-primary,
  .page-login__btn-secondary {
    width: 100% !important;
    max-width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
    white-space: normal !important;
    word-wrap: break-word !important;
  }
  .page-login__form-actions {
    flex-direction: column;
  }
  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-login__container,
  .page-login__hero-content,
  .page-login__why-login-section,
  .page-login__games-features-section,
  .page-login__promotions-section,
  .page-login__security-support-section,
  .page-login__faq-section,
  .page-login__final-cta-section,
  .page-login__faq-list {
    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 */
  }
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-login__game-image,
  .page-login__promo-image,
  .page-login__feature-image {
    max-width: 100% !important;
    height: auto !important;
    object-fit: contain;
  }
  .page-login__benefit-image {
    max-width: 100px !important;
  }
  .page-login__faq-question {
    font-size: 1.1em;
    padding: 15px 20px;
  }
  .page-login__faq-answer {
    padding: 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 2em;
  }
  .page-login__description {
    font-size: 1em;
  }
  .page-login__section-title {
    font-size: 1.5em;
  }
  .page-login__hero-section {
    min-height: 500px;
  }
  .page-login__login-form-wrapper {
    padding: 20px;
  }
}