/* 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 is handled by shared.css */
}

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

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

.page-login__section-title {
  font-size: 2.5em;
  color: #FFD700;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-login__sub-title {
  font-size: 1.8em;
  color: #FFD700;
  margin-top: 40px;
  margin-bottom: 15px;
}

.page-login__section-description {
  font-size: 1.1em;
  color: #f0f0f0;
  max-width: 800px;
  margin: 0 auto 40px auto;
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  width: 100%;
  padding: 120px 0 80px 0; /* Use header offset here */
  background-size: cover;
  background-position: center;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 700px;
  text-align: center;
}

.page-login__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 1;
}

.page-login__hero-section .page-login__container {
  position: relative;
  z-index: 2;
}

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

.page-login__hero-description {
  font-size: 1.3em;
  max-width: 900px;
  margin: 0 auto 40px auto;
  color: #f8f8f8;
}

/* Login Card */
.page-login__login-card {
  background: rgba(10, 34, 57, 0.95); /* #0A2239 with slight transparency */
  padding: 40px;
  border-radius: 10px;
  max-width: 450px;
  margin: 40px auto 0 auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  border: 1px solid #FFD700;
}

.page-login__card-title {
  font-size: 2em;
  color: #FFD700;
  margin-bottom: 30px;
}

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

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

.page-login__form-input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid #FFD700;
  border-radius: 5px;
  background-color: #0A2239;
  color: #ffffff;
  font-size: 1em;
}

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

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

.page-login__login-button {
  flex-grow: 1;
  margin-right: 10px;
}

.page-login__forgot-password {
  color: #FFD700;
  text-decoration: none;
  font-size: 0.95em;
  transition: color 0.3s ease;
  white-space: nowrap;
}

.page-login__forgot-password:hover {
  color: #ffffff;
}

.page-login__register-prompt {
  margin-top: 25px;
  color: #ffffff;
  font-size: 1em;
}

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

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

/* General Buttons */
.page-login__btn-primary,
.page-login__btn-secondary,
.page-login__btn-text {
  display: inline-block;
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 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: #FFD700;
  color: #0A2239;
  border: 2px solid #FFD700;
}

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

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

.page-login__btn-secondary:hover {
  background-color: #FFD700;
  color: #0A2239;
}

.page-login__btn-text {
  background-color: transparent;
  color: #FFD700;
  border: none;
  padding: 12px 15px;
}

.page-login__btn-text:hover {
  text-decoration: underline;
}

/* Section Backgrounds */
.page-login__dark-bg {
  background-color: #0A2239;
  color: #ffffff;
}

.page-login__light-bg {
  background-color: #1a3a57; /* Slightly lighter dark blue for contrast */
  color: #ffffff;
}

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

.page-login__feature-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-login__feature-icon {
  width: 100px;
  height: 100px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 8px;
}

.page-login__feature-title {
  font-size: 1.5em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-login__feature-text {
  font-size: 1em;
  color: #f0f0f0;
}

/* Login Guide Section */
.page-login__guide-steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
  text-align: left;
}

.page-login__step-item {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.1);
}

.page-login__step-title {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 10px;
}

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

.page-login__troubleshooting-list {
  list-style: none;
  padding: 0;
  margin: 40px auto 0 auto;
  max-width: 800px;
  text-align: left;
}

.page-login__troubleshooting-list li {
  background: rgba(255, 255, 255, 0.05);
  padding: 15px;
  margin-bottom: 10px;
  border-left: 5px solid #FFD700;
  border-radius: 5px;
  color: #f0f0f0;
  font-size: 1em;
}

.page-login__troubleshooting-list li strong {
  color: #FFD700;
}

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

.page-login__game-card {
  background: rgba(255, 255, 255, 0.08);
  padding: 20px;
  border-radius: 10px;
  text-align: center;
  text-decoration: none;
  color: #ffffff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  min-height: 350px; /* Ensure cards have similar height */
  border: 1px solid rgba(255, 215, 0, 0.2);
}

.page-login__game-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.4);
  border-color: #FFD700;
}

.page-login__game-image {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 15px;
}

.page-login__game-title {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 10px;
}

.page-login__game-text {
  font-size: 0.95em;
  color: #f0f0f0;
}

/* Promotions Section */
.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: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  border: 1px solid rgba(255, 215, 0, 0.15);
}

.page-login__promo-title {
  font-size: 1.6em;
  color: #FFD700;
  margin-bottom: 15px;
}

.page-login__promo-text {
  font-size: 1em;
  color: #f0f0f0;
  margin-bottom: 25px;
}

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

/* Security & Responsible Gaming */
.page-login__security-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
  text-align: left;
}

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

.page-login__security-text p {
  margin-bottom: 15px;
}

.page-login__security-text a {
  color: #FFD700;
  text-decoration: none;
}

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

.page-login__security-image-wrapper {
  flex: 1;
  min-width: 300px;
  display: flex;
  justify-content: center;
  align-items: center;
}

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

/* FAQ Section */
.page-login__faq-list {
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-login__faq-item {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 215, 0, 0.1);
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #0A2239;
  color: #FFD700;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
  background-color: #1a3a57;
}

.page-login__faq-title {
  margin: 0;
  font-size: 1.2em;
  color: #FFD700;
}

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

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

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

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

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

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

/* Copyright */
.page-login__copyright-wrapper {
  background-color: #0A2239;
  padding: 20px 0;
  text-align: center;
  color: #aaaaaa;
  font-size: 0.9em;
  margin-top: 60px;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 3em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__hero-section {
    min-height: 600px;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    padding-bottom: 60px;
    min-height: 550px;
  }
  .page-login__main-title {
    font-size: 2.5em;
  }
  .page-login__hero-description {
    font-size: 1.1em;
  }
  .page-login__section {
    padding: 40px 0;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__sub-title {
    font-size: 1.5em;
  }
  .page-login__login-card {
    padding: 30px;
  }
  .page-login__card-title {
    font-size: 1.8em;
  }
  .page-login__form-actions {
    flex-direction: column;
    gap: 15px;
  }
  .page-login__login-button {
    margin-right: 0;
    width: 100%;
  }
  .page-login__forgot-password {
    width: 100%;
    text-align: center;
  }
  .page-login__features-grid,
  .page-login__guide-steps,
  .page-login__game-grid,
  .page-login__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-login__feature-icon {
    width: 80px;
    height: 80px;
  }
  .page-login__security-content {
    flex-direction: column;
    gap: 20px;
  }
  .page-login__security-image {
    width: 100%;
    height: auto;
  }
  .page-login__faq-question {
    padding: 15px 20px;
  }
  .page-login__faq-title {
    font-size: 1.1em;
  }
  .page-login__faq-answer {
    padding: 0 20px;
  }
  .page-login__faq-item.active .page-login__faq-answer {
    padding: 15px 20px 20px 20px;
  }
  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }
  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login__btn-text {
    width: 100% !important;
    max-width: 100% !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  /* Image responsive */
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login__section,
  .page-login__card,
  .page-login__container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  .page-login__hero-section .page-login__container,
  .page-login__login-card {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 2em;
  }
  .page-login__section-title {
    font-size: 1.6em;
  }
  .page-login__hero-section {
    min-height: 450px;
  }
  .page-login__login-card {
    margin-top: 20px;
  }
}