/* style/login.css */

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

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

/* Hero Section */
.page-login__hero-section {
  position: relative;
  width: 100%;
  padding: 60px 20px;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 70vh;
  background-color: #1a1a1a; /* Dark background for hero, consistent with body */
  color: #ffffff;
}

.page-login__hero-content {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 40px;
  max-width: 1200px;
  width: 100%;
  margin: 0 auto;
}

.page-login__form-container {
  flex: 1 1 450px;
  background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter dark background */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  max-width: 500px;
}

.page-login__main-title {
  font-size: 2.5em;
  color: #017439; /* Brand color for main title */
  margin-bottom: 20px;
  text-align: center;
}

.page-login__description {
  font-size: 1.1em;
  margin-bottom: 30px;
  text-align: center;
  color: #f0f0f0;
}

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

.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: rgba(0, 0, 0, 0.4); /* Dark input background */
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

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

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

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

.page-login__checkbox {
  margin-right: 8px;
  accent-color: #017439; /* Brand color for checkbox */
}

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

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

.page-login__btn-login {
  width: 100%;
  padding: 15px;
  background-color: #C30808; /* Specific login button color */
  color: #FFFF00; /* Specific login button text color */
  border: none;
  border-radius: 5px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

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

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

.page-login__link-register {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
}

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

.page-login__hero-image-wrapper {
  flex: 1 1 450px;
  display: flex;
  justify-content: center;
  align-items: center;
  max-width: 500px;
}

.page-login__hero-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.5);
}

/* Sections styles */
.page-login__section-title {
  font-size: 2em;
  margin-bottom: 20px;
  text-align: center;
  color: #017439; /* Brand color for section titles */
}

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

.page-login__light-bg {
  background-color: #2a2a2a; /* Darker variant of body background for contrast */
  color: #ffffff;
}

.page-login__dark-bg {
  background-color: #1a1a1a;
  color: #ffffff;
}

/* Benefits Section */
.page-login__benefits-section .page-login__section-title, .page-login__benefits-section .page-login__section-description {
  color: #ffffff;
}

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

.page-login__benefit-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  color: #ffffff;
}

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

.page-login__benefit-icon {
  width: 100%;
  height: auto;
  max-height: 200px; /* Constrain icon height */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 5px;
}

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

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

/* Security Section */
.page-login__security-section .page-login__section-title, .page-login__security-section .page-login__section-description {
  color: #ffffff;
}

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

.page-login__feature-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

.page-login__feature-icon {
  width: 100%;
  height: auto;
  max-height: 150px; /* Constrain icon height */
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 5px;
}

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

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

.page-login__security-note {
  text-align: center;
  margin-top: 40px;
  font-style: italic;
  color: #ccc;
}

/* Troubleshooting Section */
.page-login__troubleshooting-section .page-login__section-title, .page-login__troubleshooting-section .page-login__section-description {
  color: #ffffff;
}

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

.page-login__trouble-card {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  color: #ffffff;
}

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

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

.page-login__troubleshooting-cta {
  text-align: center;
  margin-top: 40px;
  font-size: 1.1em;
  color: #f0f0f0;
}

.page-login__link-support {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
}

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

/* Responsible Gaming Section */
.page-login__responsible-gaming-section .page-login__section-title, .page-login__responsible-gaming-section .page-login__section-description {
  color: #ffffff;
}

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

.page-login__responsible-image {
  flex: 1 1 400px;
  max-width: 500px;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.page-login__responsible-list {
  flex: 1 1 400px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.page-login__list-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 15px 20px;
  margin-bottom: 15px;
  border-left: 4px solid #017439;
  border-radius: 5px;
  font-size: 1em;
  color: #f0f0f0;
}

.page-login__btn-responsible {
  display: block;
  width: fit-content;
  margin: 40px auto 0 auto;
  padding: 15px 30px;
  background-color: #017439;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-login__btn-responsible:hover {
  background-color: #005a2e;
}

/* FAQ Section */
.page-login__faq-section .page-login__section-title, .page-login__faq-section .page-login__section-description {
  color: #ffffff;
}

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

.page-login__faq-item {
  background-color: rgba(255, 255, 255, 0.08);
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  color: #f0f0f0;
}

.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;
  color: #ffffff;
  background-color: #017439; /* Brand color for question background */
  transition: background-color 0.3s ease;
}

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

.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;
  color: #f0f0f0;
}

.page-login__faq-item.active .page-login__faq-answer {
  max-height: 1000px !important; /* Ensure it expands sufficiently */
  padding: 15px 25px;
}

.page-login__faq-answer p {
  margin: 0;
  font-size: 0.95em;
}

/* Responsive Design */
@media (max-width: 992px) {
  .page-login__hero-content {
    flex-direction: column;
  }
  .page-login__form-container, .page-login__hero-image-wrapper {
    max-width: 100%;
  }
  .page-login__hero-image {
    width: 100%;
    height: auto;
  }
  .page-login__responsible-content {
    flex-direction: column;
  }
  .page-login__responsible-image, .page-login__responsible-list {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-login__main-title {
    font-size: 2em;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__description, .page-login__section-description {
    font-size: 1em;
  }
  .page-login__form-container, .page-login__hero-image-wrapper {
    padding: 20px;
  }
  .page-login__hero-section {
    padding: 40px 15px !important;
  }
  .page-login__container {
    padding: 20px 15px !important;
  }
  
  /* Image responsiveness */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login__hero-image-wrapper,
  .page-login__benefit-card,
  .page-login__feature-item,
  .page-login__trouble-card,
  .page-login__responsible-content,
  .page-login__faq-item,
  .page-login__faq-list,
  .page-login__container,
  .page-login__hero-section,
  .page-login__benefits-section,
  .page-login__security-section,
  .page-login__troubleshooting-section,
  .page-login__responsible-gaming-section,
  .page-login__faq-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }

  /* Button responsiveness */
  .page-login__btn-login,
  .page-login__btn-responsible,
  .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;
  }
  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }
  .page-login__forgot-password {
    align-self: flex-end;
  }
  .page-login__cta-buttons,
  .page-login__button-group,
  .page-login__btn-container {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    flex-wrap: wrap !important;
    gap: 10px;
  }
  .page-login__cta-buttons {
    display: flex;
    flex-direction: column;
  }

  /* FAQ specific padding adjustment */
  .page-login__faq-question,
  .page-login__faq-answer {
    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.5em;
  }
  .page-login__form-container {
    padding: 20px 15px;
  }
  .page-login__faq-question {
    font-size: 1em;
  }
}