/* style/login.css */

/* Base styles for the login page */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #000000; /* Default text color for light background */
  background-color: #FFFFFF; /* Page content background */
}

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

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

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

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 700px;
  color: #FFFFFF;
  text-align: center;
  padding: 60px 0;
  padding-top: var(--header-offset, 120px); /* Apply header offset here */
  overflow: hidden;
}

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

.page-login__hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: brightness(0.5);
}

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

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

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

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

.page-login__login-card {
  background: rgba(255, 255, 255, 0.95);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
  max-width: 450px;
  margin: 0 auto;
  text-align: left;
}

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

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #cccccc;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
  color: #000000;
  background-color: #f8f8f8;
}

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

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

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

.page-login__btn-login:hover {
  background-color: #d46c00;
}

.page-login__link-register {
  display: block;
  text-align: center;
  color: #26A9E0;
  text-decoration: none;
  font-size: 0.95em;
  transition: color 0.3s ease;
}

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

.page-login__link-forgot-password {
  display: block;
  text-align: center;
  color: #666666;
  text-decoration: none;
  font-size: 0.9em;
  margin-top: 20px;
  transition: color 0.3s ease;
}

.page-login__link-forgot-password:hover {
  color: #26A9E0;
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 80px 0;
  background-color: #FFFFFF;
  color: #000000;
}

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

.page-login__benefit-card {
  background: #f8f8f8;
  padding: 30px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.page-login__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-login__benefit-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin: 0 auto 20px auto;
  display: block;
  border-radius: 5px;
}

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

.page-login__benefit-text {
  font-size: 1em;
  color: #333333;
  flex-grow: 1;
}

/* Process Section */
.page-login__process-section {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #FFFFFF;
}

.page-login__process-section .page-login__section-title,
.page-login__process-section .page-login__section-description {
  color: #FFFFFF;
}

.page-login__process-steps {
  display: flex;
  justify-content: space-around;
  gap: 30px;
  margin-top: 50px;
  flex-wrap: wrap;
}

.page-login__step-item {
  flex: 1;
  min-width: 280px;
  max-width: 350px;
  text-align: center;
  background: rgba(255, 255, 255, 0.1);
  padding: 30px;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-login__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #FFFFFF;
  margin-bottom: 15px;
  border: 2px solid #FFFFFF;
  border-radius: 50%;
  width: 70px;
  height: 70px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 20px auto;
}

.page-login__step-title {
  font-size: 1.8em;
  color: #FFFFFF;
  margin-bottom: 15px;
  font-weight: bold;
}

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

.page-login__security-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: 60px;
  padding: 30px;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.page-login__security-icon {
  width: 100%;
  max-width: 150px;
  height: auto;
  margin-bottom: 20px;
  display: block;
}

.page-login__security-text {
  font-size: 1.1em;
  color: #FFFFFF;
  text-align: center;
  margin-bottom: 20px;
}

.page-login__link-more-security {
  color: #FFFFFF;
  text-decoration: underline;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-login__link-more-security:hover {
  color: #f0f0f0;
}

/* Explore Section */
.page-login__explore-section {
  padding: 80px 0;
  background-color: #FFFFFF;
  color: #000000;
}

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

.page-login__category-card {
  background: #f8f8f8;
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.page-login__category-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.12);
}

.page-login__category-image {
  width: 100%;
  max-width: 300px;
  height: auto;
  margin: 0 auto 20px auto;
  display: block;
  border-radius: 5px;
}

.page-login__category-title {
  font-size: 1.6em;
  margin-bottom: 10px;
  font-weight: bold;
}

.page-login__category-title a {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__category-title a:hover {
  text-decoration: underline;
  color: #1a7fb0;
}

.page-login__category-text {
  font-size: 0.95em;
  color: #333333;
  flex-grow: 1;
}

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

/* Support Section */
.page-login__support-section {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #FFFFFF;
  text-align: center;
}

.page-login__support-section .page-login__section-title,
.page-login__support-section .page-login__section-description {
  color: #FFFFFF;
}

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

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

.page-login__btn-primary {
  background-color: #EA7C07;
  color: #FFFFFF;
  border: 2px solid transparent;
}

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

.page-login__btn-secondary {
  background-color: #FFFFFF;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

.page-login__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #1a7fb0;
  border-color: #1a7fb0;
}

/* FAQ Section */
.page-login__faq-section {
  padding: 80px 0;
  background-color: #FFFFFF;
  color: #000000;
}

.page-login__faq-list {
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

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

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  background-color: #FFFFFF;
  color: #26A9E0;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease;
}

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

.page-login__faq-title {
  margin: 0;
  color: #26A9E0;
}

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

.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: #333333;
  background-color: #fefefe;
}

.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;
  font-size: 1em;
}

/* Register CTA Section */
.page-login__register-cta-section {
  padding: 80px 0;
  background-color: #26A9E0;
  color: #FFFFFF;
  text-align: center;
}

.page-login__register-cta-section .page-login__section-title,
.page-login__register-cta-section .page-login__section-description {
  color: #FFFFFF;
}

.page-login__register-cta-section .page-login__btn-primary {
  background-color: #EA7C07;
  margin-top: 30px;
}

/* Image specific styles */
.page-login img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 3em;
  }
  .page-login__hero-description {
    font-size: 1.1em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__section-description {
    font-size: 1em;
  }
  .page-login__process-steps {
    flex-direction: column;
    align-items: center;
  }
  .page-login__step-item {
    max-width: 90%;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    min-height: 600px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
  }
  .page-login__main-title {
    font-size: 2.2em;
  }
  .page-login__hero-description {
    font-size: 1em;
  }
  .page-login__login-card {
    padding: 30px;
    max-width: 90%;
  }
  .page-login__card-title {
    font-size: 1.8em;
  }
  .page-login__btn-login,
  .page-login__btn-primary,
  .page-login__btn-secondary {
    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;
  }
  .page-login__support-methods {
    flex-direction: column;
    gap: 15px;
  }
  .page-login__benefits-grid,
  .page-login__game-categories {
    grid-template-columns: 1fr;
  }
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
  .page-login__faq-question {
    padding: 15px 20px;
    font-size: 1em;
  }
  .page-login__faq-answer {
    padding: 0 20px;
  }
  .page-login__faq-item.active .page-login__faq-answer {
    padding: 10px 20px 15px 20px;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 1.8em;
  }
  .page-login__hero-description {
    font-size: 0.9em;
  }
  .page-login__card-title {
    font-size: 1.5em;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__section-description {
    font-size: 0.9em;
  }
  .page-login__form-input {
    padding: 10px 12px;
  }
}