/* style/login.css */

/* Base styles for the login page */
.page-login {
  font-family: Arial, sans-serif;
  color: #ffffff; /* Light text for dark body background */
  background-color: #0a0a0a; /* Inherited from body, explicit for clarity */
  line-height: 1.6;
}

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

.page-login__section-title {
  font-size: 2.5em;
  color: #FFD700; /* Gold brand color */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

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

.page-login__hero-image {
  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, 128, 0.7); /* Dark blue overlay with transparency */
  z-index: 2;
}

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

.page-login__main-title {
  font-size: 3.5em;
  color: #FFD700; /* Gold for main title */
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-login__intro-text {
  font-size: 1.3em;
  color: #f8f8f8;
  margin-bottom: 40px;
}

.page-login__login-form-wrapper {
  background-color: rgba(10, 10, 10, 0.9); /* Slightly transparent dark background */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  max-width: 450px;
  margin: 0 auto;
  border: 1px solid #FFD700;
}

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

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

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

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

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

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  font-size: 0.95em;
}

.page-login__forgot-password {
  color: #FFD700;
  text-decoration: none;
}

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

.page-login__remember-me {
  display: flex;
  align-items: center;
  color: #f0f0f0;
}

.page-login__remember-me input {
  margin-right: 8px;
}

.page-login__btn-primary {
  display: block;
  width: 100%;
  padding: 15px 25px;
  background-color: #FFD700; /* Gold button */
  color: #000000; /* Dark text for gold button */
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s ease, transform 0.3s ease;
  box-sizing: border-box;
}

.page-login__btn-primary:hover {
  background-color: #e6c200;
  transform: translateY(-2px);
}

.page-login__btn-secondary {
  display: block;
  width: 100%;
  padding: 15px 25px;
  background-color: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  text-align: center;
  transition: background-color 0.3s ease, color 0.3s ease;
  box-sizing: border-box;
}

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

.page-login__register-prompt {
  text-align: center;
  margin-top: 25px;
  color: #f0f0f0;
}

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

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

/* Advantages Section */
.page-login__advantages-section {
  padding: 80px 0;
  background-color: #1a1a1a;
}

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

.page-login__advantage-item {
  background-color: #000080; /* Dark blue background */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #FFD700;
}

.page-login__advantage-icon {
  width: 100%;
  max-width: 250px;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

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

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

/* Promotions Section */
.page-login__promotions-section {
  padding: 80px 0;
  background-color: #0a0a0a;
}

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

.page-login__card {
  background-color: #1a1a1a;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #000080;
  text-align: center;
  display: flex;
  flex-direction: column;
}

.page-login__card-image {
  width: 100%;
  height: 250px;
  object-fit: cover;
  margin-bottom: 20px;
}

.page-login__card-title {
  font-size: 1.4em;
  color: #FFD700;
  margin-bottom: 15px;
  padding: 0 20px;
}

.page-login__card-text {
  color: #f0f0f0;
  font-size: 0.95em;
  padding: 0 20px 20px;
  flex-grow: 1;
}

.page-login__card .page-login__btn-secondary {
  margin: 0 20px 20px;
  width: auto;
}

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

.page-login__cta-buttons .page-login__btn-primary,
.page-login__cta-buttons .page-login__btn-secondary {
  max-width: 300px;
  flex-grow: 1;
}

/* Gaming Experience Section */
.page-login__gaming-experience-section {
  padding: 80px 0;
  background-color: #000080;
}

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

.page-login__feature-item {
  background-color: #1a1a1a;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #FFD700;
}

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

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

.page-login__feature-text {
  color: #f0f0f0;
  font-size: 0.95em;
  margin-bottom: 20px;
}

.page-login__feature-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: #FFD700;
  color: #000000;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-login__feature-link:hover {
  background-color: #e6c200;
}

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

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

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

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px;
  cursor: pointer;
  background-color: #000080; /* Dark blue for question background */
  color: #FFD700; /* Gold for question text */
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

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

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  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 20px;
  color: #f0f0f0;
  background-color: #1a1a1a;
  transition: max-height 0.3s ease, padding 0.3s ease;
}

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

.page-login__faq-answer p {
  margin-bottom: 10px;
  font-size: 0.95em;
}

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

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

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

/* Call to Action Section */
.page-login__cta-section {
  padding: 80px 0;
  background-color: #1a1a1a;
  text-align: center;
}

.page-login__cta-section .page-login__section-title {
  color: #FFD700;
}

.page-login__cta-section .page-login__section-description {
  color: #f0f0f0;
  margin-bottom: 50px;
}

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

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

  .page-login__hero-section {
    min-height: 600px;
    padding-top: var(--header-offset, 120px) !important;
  }

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

  .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-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .page-login__advantages-section,
  .page-login__promotions-section,
  .page-login__gaming-experience-section,
  .page-login__faq-section,
  .page-login__cta-section {
    padding: 60px 0;
  }

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

  .page-login__section-description {
    font-size: 0.95em;
    margin-bottom: 30px;
  }

  .page-login__advantage-item,
  .page-login__card,
  .page-login__feature-item {
    padding: 25px;
  }

  .page-login__card-image,
  .page-login__feature-image {
    height: 180px;
  }

  .page-login__card-title,
  .page-login__feature-title {
    font-size: 1.2em;
  }

  .page-login__card-text,
  .page-login__feature-text {
    font-size: 0.9em;
  }

  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
  }

  .page-login__cta-buttons .page-login__btn-primary,
  .page-login__cta-buttons .page-login__btn-secondary {
    max-width: 100% !important;
    width: 100% !important;
    padding: 12px 20px;
    font-size: 1em;
  }

  /* Mobile image and container adaptation */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__login-form-wrapper,
  .page-login__advantages-grid,
  .page-login__promotion-cards,
  .page-login__features-grid,
  .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__faq-question {
    font-size: 1.1em;
    padding: 15px;
  }

  .page-login__faq-answer {
    padding: 15px;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 2em;
  }
  .page-login__section-title {
    font-size: 1.6em;
  }
  .page-login__form-title {
    font-size: 1.5em;
  }
}