/* style/login.css */

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

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

/* Hero Section */
.page-login__hero-section {
  background-image: url('[GALLERY:login_hero:1920x1080:69vin,login_background,online_casino,gaming_portal,luxury]');
  background-size: cover;
  background-position: center;
  padding: 100px 0;
  padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  z-index: 1;
}

.page-login__hero-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6);
  z-index: -1;
}

.page-login__hero-content {
  text-align: center;
  color: #ffffff;
  max-width: 900px;
  margin: 0 auto;
}

.page-login__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFFF00; /* Custom font color for titles */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__intro-text {
  font-size: 1.2em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__login-form-wrapper {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 40px;
}

.page-login__login-form {
  background-color: #0a0a0a; /* Dark background, matching body */
  color: #ffffff;
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  max-width: 450px;
  width: 100%;
  border: 1px solid #017439;
}

.page-login__form-title {
  font-size: 2em;
  margin-bottom: 30px;
  color: #FFFF00; /* Custom font color for titles */
}

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

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

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

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

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

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

.page-login__checkbox {
  margin-right: 8px;
}

.page-login__checkbox-label {
  color: #ffffff;
}

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

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

.page-login__btn-submit {
  display: block;
  width: 100%;
  padding: 15px 20px;
  background-color: #C30808; /* Custom Login button color */
  color: #FFFFFF; /* WCAG AA compliant text color */
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
}

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

.page-login__register-text {
  margin-top: 25px;
  font-size: 1em;
  color: #ffffff;
}

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

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

.page-login__form-image {
  max-width: 600px;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.page-login__form-image img {
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  max-width: 100%; /* Ensure image is responsive */
  height: auto; /* Maintain aspect ratio */
}

/* General Section Styles */
.page-login__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #FFFF00; /* Custom font color for titles */
  padding-top: 40px;
}

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

.page-login__sub-title {
  font-size: 1.8em;
  margin-bottom: 15px;
  color: #017439;
}

.page-login__text-block {
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 20px;
  color: #cccccc;
}

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

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

.page-login__benefit-card {
  background-color: #0a0a0a;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #017439;
  color: #ffffff;
}

.page-login__benefit-card img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  min-width: 200px; /* Min size for content images */
  min-height: 200px; /* Min size for content images */
}

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

.page-login__card-text {
  font-size: 0.95em;
  color: #cccccc;
}

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

.page-login__security-content {
  display: flex;
  flex-wrap: wrap;
  gap: 40px;
  align-items: center;
}

.page-login__security-text {
  flex: 1;
  min-width: 300px;
}

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

.page-login__security-image img {
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  min-width: 200px; /* Min size for content images */
  min-height: 200px; /* Min size for content images */
}

.page-login__btn-learn-more {
  display: inline-block;
  margin-top: 30px;
  padding: 12px 25px;
  background-color: #017439;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-login__btn-learn-more:hover {
  background-color: #005f2c;
}

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

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

.page-login__troubleshoot-item {
  background-color: #0a0a0a;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #017439;
  color: #ffffff;
}

.page-login__troubleshoot-item .page-login__sub-title {
  color: #FFFF00;
}

.page-login__troubleshoot-link {
  display: inline-block;
  margin-top: 15px;
  color: #017439;
  text-decoration: none;
  font-weight: bold;
}

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

.page-login__contact-prompt {
  text-align: center;
  margin-top: 50px;
  font-size: 1.1em;
  color: #f0f0f0;
}

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

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

/* 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 #017439;
  border-radius: 8px;
  margin-bottom: 15px;
  overflow: hidden;
  color: #ffffff;
}

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

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

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

.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: #0a0a0a;
  color: #cccccc;
}

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

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

/* Floating Buttons */
.page-login__floating-button {
  position: fixed;
  right: 20px;
  width: 120px;
  padding: 12px 0;
  text-align: center;
  border-radius: 5px;
  font-weight: bold;
  text-decoration: none;
  color: #FFFFFF; /* WCAG AA compliant text color */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
  transition: background-color 0.3s ease, transform 0.3s ease;
  z-index: 1000;
  box-sizing: border-box;
}

.page-login__floating-button--login {
  background-color: #C30808; /* Custom Login button color */
  bottom: 100px;
}

.page-login__floating-button--login:hover {
  background-color: #a00606;
  transform: translateY(-3px);
}

.page-login__floating-button--register {
  background-color: #017439; /* Main brand color for register */
  bottom: 40px;
}

.page-login__floating-button--register:hover {
  background-color: #005f2c;
  transform: translateY(-3px);
}


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

@media (max-width: 768px) {
  .page-login__hero-section {
    padding: 80px 0;
    padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header adjustment */
  }

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

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

  .page-login__login-form-wrapper {
    flex-direction: column;
    gap: 30px;
  }

  .page-login__login-form {
    padding: 30px;
    max-width: 100%;
  }

  .page-login__form-image {
    max-width: 100%;
    padding: 0 15px;
  }

  .page-login__form-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

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

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

  .page-login__benefits-section,
  .page-login__security-section,
  .page-login__troubleshoot-section,
  .page-login__faq-section {
    padding: 60px 0;
  }

  .page-login__benefits-grid,
  .page-login__troubleshoot-grid {
    grid-template-columns: 1fr;
    gap: 20px;
    padding: 0 15px;
  }

  .page-login__benefit-card,
  .page-login__troubleshoot-item {
    padding: 25px;
  }

  .page-login__benefit-card img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

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

  .page-login__security-image img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    min-width: 200px !important;
    min-height: 200px !important;
  }

  .page-login__btn-learn-more {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
  }

  .page-login__faq-list {
    padding: 0 15px;
  }

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

  .page-login__floating-button {
    width: 100px;
    right: 10px;
    padding: 10px 0;
    font-size: 0.9em;
  }

  /* Ensure all content containers are responsive */
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__login-form-wrapper,
  .page-login__benefits-grid,
  .page-login__troubleshoot-grid,
  .page-login__security-content,
  .page-login__faq-list {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

  /* Buttons responsive on mobile */
  .page-login__btn-submit,
  .page-login__btn-primary,
  .page-login__btn-secondary,
  .page-login a[class*="button"],
  .page-login a[class*="btn"] {
    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;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 1.8em;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__sub-title {
    font-size: 1.5em;
  }
  .page-login__floating-button {
    width: 90px;
    right: 5px;
    padding: 8px 0;
    font-size: 0.85em;
  }
}