/* style/login.css */
:root {
  --primary-color: #26A9E0;
  --secondary-color: #FFFFFF;
  --login-button-color: #EA7C07;
  --text-dark: #333333;
  --text-light: #ffffff;
  --bg-light: #ffffff;
  --bg-dark: #26A9E0;
}

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

.page-login__hero-section {
  position: relative;
  width: 100%;
  min-height: 600px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: var(--text-light);
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Ensure content is below header */
  box-sizing: border-box;
}

.page-login__hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

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

.page-login__hero-content {
  position: relative;
  z-index: 3;
  max-width: 900px;
  padding: 20px;
}

.page-login__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  line-height: 1.2;
  color: var(--text-light);
}

.page-login__intro-text {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: var(--text-light);
}

.page-login__login-form-wrapper {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
  max-width: 450px;
  margin: 0 auto;
  color: var(--text-dark);
  text-align: left;
}

.page-login__form-title {
  font-size: 2em;
  margin-bottom: 25px;
  text-align: center;
  color: var(--primary-color);
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
}

.page-login__form-input {
  width: 100%;
  padding: 12px;
  border: 1px solid #ccc;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-login__btn-primary {
  background: var(--login-button-color);
  color: var(--text-light);
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  cursor: pointer;
  transition: background-color 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

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

.page-login__link-text {
  color: var(--primary-color);
  text-decoration: none;
  transition: color 0.3s ease;
}

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

.page-login__link-text--white {
  color: var(--text-light);
}

.page-login__link-text--white:hover {
  color: #f0f0f0;
}

.page-login__no-account-text {
  text-align: center;
  margin-top: 20px;
}

.page-login__link-register {
  color: var(--primary-color);
  font-weight: bold;
  text-decoration: none;
}

.page-login__link-register:hover {
  text-decoration: underline;
}

.page-login__content-section,
.page-login__guide-section,
.page-login__troubleshooting-section,
.page-login__security-section,
.page-login__explore-section,
.page-login__cta-section {
  padding: 60px 20px;
  box-sizing: border-box;
}

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

.page-login__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
  text-align: center;
  color: var(--primary-color);
}

.page-login__section-title--white {
  color: var(--text-light);
}

.page-login__section-description {
  font-size: 1.1em;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 40px;
  color: var(--text-dark);
}

.page-login__section-description--white {
  color: var(--text-light);
}

.page-login__dark-section {
  background-color: var(--bg-dark);
  color: var(--text-light);
}

.page-login__light-bg {
  background-color: var(--bg-light);
  color: var(--text-dark);
}

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

.page-login__feature-card,
.page-login__game-card,
.page-login__security-item {
  background: var(--bg-light);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
  color: var(--text-dark);
}

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

.page-login__feature-icon,
.page-login__security-icon,
.page-login__game-image {
  width: 100%;
  height: auto;
  max-height: 250px; /* Constrain height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  display: block;
  margin-left: auto;
  margin-right: auto;
  min-width: 200px;
  min-height: 200px;
}

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

.page-login__game-title a {
  color: var(--primary-color);
  text-decoration: none;
}

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

.page-login__feature-text,
.page-login__game-description,
.page-login__security-text {
  font-size: 1em;
  color: var(--text-dark);
}

.page-login__keyword {
  font-weight: bold;
  color: var(--primary-color);
}

.page-login__guide-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
}

.page-login__guide-item {
  background: rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  color: var(--text-light);
}

.page-login__guide-step-title {
  font-size: 1.6em;
  color: var(--text-light);
  margin-bottom: 10px;
}

.page-login__guide-step-text {
  font-size: 1.1em;
  color: var(--text-light);
}

.page-login__faq-list {
  margin-top: 40px;
}

.page-login__faq-item {
  background: var(--bg-light);
  border-radius: 8px;
  margin-bottom: 15px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  overflow: hidden;
  color: var(--text-dark);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  background-color: #f9f9f9;
  border-bottom: 1px solid #eee;
  color: var(--primary-color);
  user-select: none; /* Prevent text selection on click */
}

.page-login__faq-item[open] .page-login__faq-question {
  border-bottom: 1px solid #ddd;
}

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

.page-login__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  line-height: 1;
}

.page-login__faq-answer {
  padding: 15px 25px;
  font-size: 1.1em;
  color: var(--text-dark);
}

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

/* Details element specific styling */
.page-login__faq-item summary {
  list-style: none;
}

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

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

.page-login__cta-container {
  text-align: center;
}

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

.page-login__btn-large {
  padding: 15px 35px;
  font-size: 1.2em;
}

.page-login__btn-secondary {
  background: var(--secondary-color);
  color: var(--primary-color);
  border: 2px solid var(--primary-color);
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 1.1em;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  text-align: center;
}

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

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

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

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

  .page-login__hero-section {
    min-height: 500px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure padding top for mobile */
  }

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

  .page-login__intro-text {
    font-size: 1em;
  }

  .page-login__login-form-wrapper {
    padding: 30px 20px;
  }

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

  .page-login__form-actions {
    flex-direction: column;
    gap: 10px;
  }
}