/* style/login.css */

:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-button-color: #EA7C07;
  --text-dark-bg: #FFFFFF;
  --text-light-bg: #333333;
  --body-bg: #121212; /* Inherited from shared.css */
}

.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: var(--text-dark-bg); /* Default text color for the page, as body is dark */
  background-color: var(--body-bg);
}

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

/* Hero Section */
.page-login__hero-section {
  position: relative;
  padding: 80px 0;
  text-align: center;
  background-color: var(--primary-color);
  color: var(--text-dark-bg);
}

.page-login__hero-title {
  font-size: 2.8em;
  margin-bottom: 20px;
  color: var(--text-dark-bg);
  line-height: 1.2;
}

.page-login__hero-description {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__login-form-wrapper {
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 10px;
  max-width: 450px;
  margin: 0 auto 30px auto;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: var(--text-dark-bg);
}

.page-login__form-input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0.3);
  color: var(--text-dark-bg);
  font-size: 1em;
}

.page-login__form-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

.page-login__btn-submit {
  background-color: var(--login-button-color); /* Specific login color */
  color: var(--secondary-color);
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
  width: 100%;
  font-weight: bold;
}

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

.page-login__form-links {
  margin-top: 15px;
  font-size: 0.9em;
  color: var(--text-dark-bg);
}

.page-login__forgot-password,
.page-login__register-link {
  color: var(--secondary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover,
.page-login__register-link:hover {
  color: var(--login-button-color);
}

.page-login__separator {
  margin: 0 10px;
  color: rgba(255, 255, 255, 0.7);
}

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

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

.page-login__btn-primary {
  background-color: var(--login-button-color);
  color: var(--secondary-color);
  border: 2px solid var(--login-button-color);
}

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

.page-login__btn-secondary {
  background-color: transparent;
  color: var(--secondary-color);
  border: 2px solid var(--secondary-color);
}

.page-login__btn-secondary:hover {
  background-color: var(--secondary-color);
  color: var(--primary-color);
}

/* Features Section */
.page-login__features-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--secondary-color);
  color: var(--text-light-bg);
}

.page-login__section-title {
  font-size: 2.2em;
  margin-bottom: 40px;
  color: var(--primary-color);
}

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

.page-login__feature-card {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  color: var(--text-light-bg);
}

.page-login__feature-card:hover {
  transform: translateY(-5px);
}

.page-login__feature-icon {
  width: 100%;
  height: auto;
  max-width: 250px;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-login__feature-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: var(--primary-color);
}

.page-login__feature-description {
  font-size: 1em;
  color: var(--text-light-bg);
}

/* Game Types Section */
.page-login__game-types-section {
  padding: 80px 0;
  text-align: center;
  background-color: var(--body-bg);
  color: var(--text-dark-bg);
}

.page-login__section-description {
  font-size: 1.1em;
  margin-bottom: 50px;
  max-width: 900px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-login__game-card {
  background: rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  text-decoration: none;
  color: var(--text-dark-bg);
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}

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

.page-login__game-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  display: block;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__game-title {
  font-size: 1.4em;
  margin: 20px 15px 10px 15px;
  color: var(--primary-color);
}

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

/* FAQ Section */
.page-login__faq-section {
  padding: 80px 0;
  background-color: var(--secondary-color);
  color: var(--text-light-bg);
}

.page-login__faq-list {
  max-width: 800px;
  margin: 0 auto;
  text-align: left;
}

.page-login__faq-item {
  margin-bottom: 15px;
  background: #f9f9f9;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  overflow: hidden;
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.15em;
  font-weight: bold;
  color: var(--primary-color);
  cursor: pointer;
  background-color: #eaf6ff;
  border-bottom: 1px solid #d0e8ff;
  list-style: none;
  user-select: none;
}

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

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

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

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

.page-login__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  color: var(--text-light-bg);
  background-color: #ffffff;
}

/* CTA Bottom Section */
.page-login__cta-bottom {
  padding: 60px 0;
  text-align: center;
  background-color: var(--primary-color);
  color: var(--text-dark-bg);
}

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

.page-login__cta-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: var(--text-dark-bg);
}

.page-login__cta-description {
  font-size: 1.1em;
  margin-bottom: 40px;
}

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

/* General text styles for contrast */
.page-login h1, .page-login h2, .page-login h3, .page-login h4, .page-login h5, .page-login h6 {
  color: var(--text-dark-bg); /* Default for dark background sections */
}

.page-login__light-bg h1, .page-login__light-bg h2, .page-login__light-bg h3, .page-login__light-bg h4, .page-login__light-bg h5, .page-login__light-bg h6 {
  color: var(--primary-color); /* Headings in light sections */
}

.page-login__light-bg p, .page-login__light-bg li {
  color: var(--text-light-bg);
}

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

@media (max-width: 768px) {
  .page-login__hero-section {
    padding: 60px 0;
  }
  .page-login__hero-title {
    font-size: 2em;
  }
  .page-login__hero-description {
    font-size: 1em;
  }
  .page-login__login-form-wrapper {
    padding: 20px;
    max-width: 90%;
  }
  .page-login__cta-buttons,
  .page-login__cta-buttons-bottom {
    flex-direction: column;
    gap: 15px;
  }
  .page-login__btn-primary,
  .page-login__btn-secondary {
    width: 100%;
    max-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__features-section,
  .page-login__game-types-section,
  .page-login__faq-section,
  .page-login__cta-bottom {
    padding: 40px 0;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__feature-card,
  .page-login__game-card {
    margin-left: 15px;
    margin-right: 15px;
  }
  .page-login__container {
    padding: 0 15px;
  }

  /* Mobile image responsiveness */
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login__hero-section,
  .page-login__features-section,
  .page-login__game-types-section,
  .page-login__faq-section,
  .page-login__cta-bottom,
  .page-login__login-form-wrapper,
  .page-login__feature-card,
  .page-login__game-card,
  .page-login__faq-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    margin-left: 0 !important; /* Reset any margin causing overflow */
    margin-right: 0 !important; /* Reset any margin causing overflow */
  }
  .page-login__hero-section { /* Apply header offset for hero on mobile */
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-login__cta-content {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 480px) {
  .page-login__hero-title {
    font-size: 1.8em;
  }
  .page-login__section-title {
    font-size: 1.6em;
  }
  .page-login__btn-submit {
    font-size: 1em;
  }
  .page-login__btn-primary,
  .page-login__btn-secondary {
    font-size: 1em;
    padding: 12px 20px;
  }
  .page-login__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
  .page-login__faq-answer {
    padding: 10px 20px 15px;
  }
}