/* style/login.css */
:root {
  --primary-color: #017439;
  --secondary-color: #FFFFFF;
  --dark-bg-color: #0a0a0a;
  --light-bg-color: #f8f9fa;
  --text-on-dark: #ffffff;
  --text-on-light: #333333;
  --button-login-bg: #C30808;
  --button-login-text: #FFFFFF; /* Overriding #FFFF00 for WCAG AA contrast */
}

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

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

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

/* Hero Section */
.page-login__hero-section {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Apply header offset */
  text-align: center;
  gap: 40px;
}

.page-login__hero-content {
  flex: 1;
  min-width: 300px;
  max-width: 600px;
  text-align: left;
}

.page-login__main-heading {
  font-size: 2.8em;
  color: var(--secondary-color);
  margin-bottom: 20px;
  line-height: 1.2;
}

.page-login__tagline {
  font-size: 1.1em;
  color: var(--text-on-dark);
  margin-bottom: 30px;
}

.page-login__form-wrapper {
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter background for form */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  width: 100%;
  box-sizing: border-box;
  margin-top: 30px;
  border: 1px solid var(--primary-color);
}

.page-login__form-title {
  font-size: 1.8em;
  color: var(--secondary-color);
  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: var(--text-on-dark);
  font-weight: bold;
}

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid var(--primary-color);
  border-radius: 5px;
  background-color: rgba(0, 0, 0, 0.3);
  color: var(--text-on-dark);
  font-size: 1em;
  box-sizing: border-box;
}

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

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

.page-login__login-button {
  background-color: var(--button-login-bg);
  color: var(--button-login-text);
  padding: 12px 25px;
  border-radius: 5px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
  flex-grow: 1;
  text-align: center;
  max-width: 100%;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__login-button:hover {
  background-color: #a30606;
}

.page-login__forgot-password {
  color: var(--primary-color);
  text-decoration: none;
  font-size: 0.95em;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
  color: var(--secondary-color);
}

.page-login__register-prompt {
  text-align: center;
  margin-top: 25px;
  color: var(--text-on-dark);
}

.page-login__register-link {
  color: var(--primary-color);
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-login__register-link:hover {
  color: var(--secondary-color);
}

.page-login__hero-image-container {
  flex: 1;
  min-width: 300px;
  max-width: 800px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-login__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  min-width: 200px; /* Ensure min size */
  min-height: 200px; /* Ensure min size */
}

/* General Section Styling */
.page-login__section {
  padding: 80px 20px;
  text-align: center;
}

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

.page-login__section-heading {
  font-size: 2.5em;
  margin-bottom: 25px;
  color: var(--primary-color);
}

.page-login__section-description {
  font-size: 1.1em;
  line-height: 1.8;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: inherit; /* Inherit from section for contrast */
}

.page-login__section-description a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-login__section-description a:hover {
  color: var(--secondary-color);
}

/* 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-item {
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  background-color: var(--secondary-color);
  color: var(--text-on-light);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.page-login__benefit-item img {
  max-width: 100%;
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  min-width: 200px;
  min-height: 200px;
}

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

.page-login__benefit-text {
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-on-light);
}

.page-login__benefit-text a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-login__benefit-text a:hover {
  color: var(--dark-bg-color);
}

/* Why Choose Us Section */
.page-login__why-choose-us .page-login__section-heading,
.page-login__why-choose-us .page-login__section-description {
  color: var(--text-on-dark);
}

.page-login__why-choose-us .page-login__section-description a {
  color: var(--primary-color);
}

.page-login__why-choose-us .page-login__section-description a:hover {
  color: var(--secondary-color);
}

.page-login__feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.page-login__feature-item {
  padding: 30px;
  border-radius: 10px;
  text-align: left;
  background-color: rgba(255, 255, 255, 0.08);
  color: var(--text-on-dark);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid var(--primary-color);
}

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

.page-login__feature-text {
  font-size: 0.95em;
  line-height: 1.7;
  color: var(--text-on-dark);
}

.page-login__feature-text a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-login__feature-text a:hover {
  color: var(--secondary-color);
}

.page-login__platform-image {
  max-width: 100%;
  height: auto;
  margin-top: 50px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.5);
  min-width: 200px;
  min-height: 200px;
}

/* Game Overview Section */
.page-login__game-overview .page-login__section-heading,
.page-login__game-overview .page-login__section-description {
  color: var(--text-on-light);
}

.page-login__game-overview .page-login__section-description a {
  color: var(--primary-color);
}

.page-login__game-overview .page-login__section-description a:hover {
  color: var(--dark-bg-color);
}

.page-login__video-wrapper {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
  height: 0;
  overflow: hidden;
  margin-top: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  max-width: 100%;
  box-sizing: border-box;
}

.page-login__game-video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
  cursor: pointer;
}

.page-login__game-intro {
  margin-top: 30px;
  font-size: 1.1em;
  line-height: 1.7;
  color: var(--text-on-light);
}

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

.page-login__game-intro a:hover {
  color: var(--dark-bg-color);
}

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

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

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

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

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

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

/* Responsible Gambling Section */
.page-login__responsible-gambling-section .page-login__section-heading,
.page-login__responsible-gambling-section .page-login__section-description {
  color: var(--text-on-dark);
}

.page-login__responsible-gambling-section .page-login__section-description a {
  color: var(--primary-color);
}

.page-login__responsible-gambling-section .page-login__section-description a:hover {
  color: var(--secondary-color);
}

.page-login__responsible-list {
  list-style: none;
  padding: 0;
  margin-top: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  text-align: left;
}

.page-login__responsible-list li {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 15px 20px;
  margin-bottom: 10px;
  border-radius: 5px;
  color: var(--text-on-dark);
  border-left: 5px solid var(--primary-color);
  font-size: 1.05em;
}

.page-login__responsible-list li a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-login__responsible-list li a:hover {
  color: var(--secondary-color);
}

/* FAQ Section */
.page-login__faq-section .page-login__section-heading,
.page-login__faq-section .page-login__section-description {
  color: var(--text-on-light);
}

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

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

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: var(--primary-color);
  cursor: pointer;
  background-color: var(--secondary-color);
  border-bottom: 1px solid #eee;
  list-style: none; /* For details summary */
}

.page-login__faq-question::-webkit-details-marker {
  display: none; /* Hide default marker for details summary */
}

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

.page-login__faq-toggle {
  font-size: 1.5em;
  font-weight: normal;
  margin-left: 15px;
  color: var(--primary-color);
}

.page-login__faq-item[open] .page-login__faq-question {
  border-bottom: 1px solid var(--primary-color);
}

.page-login__faq-answer {
  padding: 15px 25px 20px;
  font-size: 1em;
  line-height: 1.7;
  color: var(--text-on-light);
  background-color: #f9f9f9;
}

.page-login__faq-answer p {
  margin-bottom: 10px;
  color: var(--text-on-light);
}

.page-login__faq-answer a {
  color: var(--primary-color);
  text-decoration: underline;
}

.page-login__faq-answer a:hover {
  color: var(--dark-bg-color);
}

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

  .page-login__hero-section {
    flex-direction: column;
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Apply header offset for mobile */
    gap: 30px;
  }

  .page-login__main-heading {
    font-size: 2em;
    margin-bottom: 15px;
  }

  .page-login__tagline {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-login__form-wrapper {
    padding: 30px 20px;
    margin-top: 20px;
  }
}