/* style/login.css */

:root {
  --page-login-primary-color: #017439;
  --page-login-secondary-color: #FFFFFF;
  --page-login-text-dark: #333333;
  --page-login-text-light: #FFFFFF;
  --page-login-button-bg-red: #C30808;
  --page-login-button-text-yellow: #FFFF00; /* Note: Contrast with red button background is too low. Overriding to white for WCAG AA compliance. */
  --page-login-input-border: #e0e0e0;
  --page-login-input-bg: #f5f5f5;
}

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

/* Ensure main content is not hidden by fixed header */
.page-login__hero-section {
  padding-top: var(--header-offset, 120px);
}

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

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  text-align: center;
  color: var(--page-login-text-light);
  overflow: hidden;
  padding: 80px 0;
  background-color: var(--page-login-primary-color);
}

.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: 800px;
  padding: 20px;
}

.page-login__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: var(--page-login-secondary-color);
}

.page-login__intro-text {
  font-size: 1.2em;
  margin-bottom: 40px;
  line-height: 1.8;
}

.page-login__form-container {
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(5px);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  max-width: 450px;
  margin: 0 auto;
}

.page-login__login-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.page-login__form-group {
  text-align: left;
}

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

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

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

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

.page-login__btn-login {
  background-color: var(--page-login-button-bg-red);
  color: var(--page-login-text-light); /* Overriding to white for WCAG AA compliance */
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
  flex-grow: 1;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-login__link-forgot-password {
  color: var(--page-login-secondary-color);
  text-decoration: none;
  font-size: 0.95em;
  transition: color 0.3s ease;
}

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

.page-login__register-prompt {
  margin-top: 20px;
  font-size: 1em;
  color: var(--page-login-secondary-color);
}

.page-login__register-prompt span {
  margin-right: 10px;
}

.page-login__btn-register {
  background-color: var(--page-login-primary-color);
  color: var(--page-login-text-light);
  padding: 10px 20px;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-register:hover {
  background-color: #005a2b;
}

/* General Section Styling */
.page-login__benefits-section, .page-login__security-info, .page-login__games-preview, .page-login__promotions-section, .page-login__faq-section, .page-login__cta-section {
  padding: 80px 0;
  text-align: center;
}

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

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

.page-login__section-title {
  font-size: 2.5em;
  margin-bottom: 20px;
}

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

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

.page-login__benefit-card {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease;
  text-align: center;
  color: var(--page-login-text-dark);
  display: flex;
  flex-direction: column;
  align-items: center;
}

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

.page-login__benefit-icon {
  width: 100px;
  height: 100px;
  margin-bottom: 20px;
  object-fit: contain;
}

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

.page-login__benefit-description {
  font-size: 1em;
  line-height: 1.7;
}

/* Security Info Section */
.page-login__security-content {
  display: flex;
  align-items: center;
  gap: 50px;
  text-align: left;
  margin-top: 40px;
}

.page-login__security-text {
  flex: 1;
}

.page-login__security-text p {
  margin-bottom: 20px;
  font-size: 1.1em;
  line-height: 1.8;
}

.page-login__security-image-wrapper {
  flex: 1;
  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.2);
  min-width: 200px;
  min-height: 200px;
}

.page-login__btn-learn-more {
  background-color: var(--page-login-secondary-color);
  color: var(--page-login-primary-color);
  padding: 12px 30px;
  border: 2px solid var(--page-login-primary-color);
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: all 0.3s ease;
  display: inline-block;
  margin-top: 20px;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

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

.page-login__game-card {
  background: #f9f9f9;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease;
  color: var(--page-login-text-dark);
}

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

.page-login__game-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-login__game-card h3, .page-login__game-card p {
  padding: 0 20px;
}

.page-login__game-title {
  font-size: 1.4em;
  margin: 15px 0 10px;
}

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

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

.page-login__game-description {
  font-size: 0.95em;
  line-height: 1.7;
  margin-bottom: 20px;
}

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

.page-login__btn-explore-all {
  background-color: var(--page-login-primary-color);
  color: var(--page-login-text-light);
  padding: 15px 40px;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease;
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-explore-all:hover {
  background-color: #005a2b;
}

/* 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.1);
  border-radius: 10px;
  overflow: hidden;
  text-align: left;
  transition: transform 0.3s ease;
  color: var(--page-login-text-light);
}

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

.page-login__promo-image {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
  min-width: 200px;
  min-height: 200px;
}

.page-login__promo-card h3, .page-login__promo-card p {
  padding: 0 20px;
}

.page-login__promo-title {
  font-size: 1.4em;
  margin: 15px 0 10px;
}

.page-login__promo-title a {
  color: var(--page-login-secondary-color);
  text-decoration: none;
}

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

.page-login__promo-text {
  font-size: 0.95em;
  line-height: 1.7;
  margin-bottom: 20px;
}

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

.page-login__btn-view-all-promos {
  background-color: var(--page-login-secondary-color);
  color: var(--page-login-primary-color);
  padding: 15px 40px;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease;
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-view-all-promos:hover {
  background-color: #e0e0e0;
}

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

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

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  background-color: var(--page-login-secondary-color);
  color: var(--page-login-text-dark);
  transition: background-color 0.3s ease;
}

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

.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 25px;
  transition: max-height 0.3s ease, padding 0.3s ease;
  background-color: #fcfcfc;
  color: var(--page-login-text-dark);
}

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

.page-login__faq-answer p {
  margin: 0;
  padding-bottom: 10px;
}

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

.page-login__btn-register-now, .page-login__btn-contact-support {
  background-color: var(--page-login-button-bg-red);
  color: var(--page-login-text-light); /* Overriding to white for WCAG AA compliance */
  padding: 15px 35px;
  border: none;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.2em;
  transition: background-color 0.3s ease;
  display: inline-block;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-register-now:hover {
  background-color: #a00606;
}

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

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

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

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

@media (max-width: 768px) {
  .page-login__hero-section {
    min-height: 60vh;
    padding: 60px 0;
  }

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

  .page-login__intro-text {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-login__form-container {
    padding: 30px 20px;
    max-width: 90%;
  }

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

  .page-login__btn-login, .page-login__btn-register {
    width: 100% !important;
    padding: 12px 15px !important;
  }

  .page-login__benefits-section, .page-login__security-info, .page-login__games-preview, .page-login__promotions-section, .page-login__faq-section, .page-login__cta-section {
    padding: 40px 0;
  }

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

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

  .page-login__benefits-grid, .page-login__games-grid, .page-login__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login__security-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-login__security-text, .page-login__security-image-wrapper {
    flex: none;
    width: 100%;
  }

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

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

  .page-login__btn-register-now, .page-login__btn-contact-support, .page-login__btn-explore-all, .page-login__btn-view-all-promos, .page-login__btn-learn-more {
    width: 100% !important;
    padding: 12px 20px !important;
  }

  /* Mobile image responsiveness */
  .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__form-container,
  .page-login__benefits-grid,
  .page-login__security-content,
  .page-login__games-grid,
  .page-login__promo-grid,
  .page-login__faq-list,
  .page-login__cta-buttons {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden;
  }
  .page-login__hero-section {
    padding-top: var(--header-offset, 120px) !important;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 1.8em;
  }

  .page-login__form-container {
    padding: 25px 15px;
  }

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

  .page-login__benefit-title {
    font-size: 1.3em;
  }

  .page-login__game-title, .page-login__promo-title {
    font-size: 1.2em;
  }
}