/* style/login.css */

/* Base Styles */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #0a0a0a; /* Ensure consistency with body background */
}

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

.page-login__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  color: #ffffff;
}

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

/* Color Contrast Adjustments based on body background #0a0a0a (dark) */
.page-login__dark-bg {
  background-color: #017439; /* Brand primary color as dark background */
  color: #ffffff;
}

.page-login__light-bg {
  background-color: #ffffff;
  color: #333333;
}

.page-login__light-bg .page-login__section-title,
.page-login__light-bg .page-login__section-description {
  color: #333333;
}

.page-login__light-bg .page-login__card-title,
.page-login__light-bg .page-login__card-text {
  color: #333333;
}

.page-login__light-bg .page-login__link-responsible-gaming {
  color: #017439;
}

/* Hero Section */
.page-login__hero-section {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 70vh;
  padding: 60px 0;
  background-image: url('[GALLERY:bg:1920x1080:momo88,login_background,abstract_green_lines,digital_casino]');
  background-size: cover;
  background-position: center;
  position: relative;
  z-index: 1;
}

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

.page-login__hero-section .page-login__container {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 40px;
}

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

.page-login__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #FFFF00; /* Custom color for login/register font */
  line-height: 1.2;
}

.page-login__hero-description {
  font-size: 1.2em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-login__login-form-wrapper {
  background: rgba(0, 0, 0, 0.7);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  max-width: 450px;
  width: 100%;
  margin-top: 30px;
}

.page-login__form-title {
  font-size: 2em;
  margin-bottom: 25px;
  text-align: center;
  color: #FFFF00; /* Custom color for login/register font */
}

.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: #1a1a1a;
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

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

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

.page-login__btn-login {
  background-color: #C30808; /* Custom color for login button */
  color: #FFFF00; /* Custom color for login font */
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease;
  flex-grow: 1;
  text-align: center;
}

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

.page-login__link-forgot-password {
  color: #017439;
  text-decoration: none;
  font-size: 0.95em;
  transition: color 0.3s ease;
}

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

.page-login__no-account-text {
  text-align: center;
  margin-top: 25px;
  color: #ccc;
}

.page-login__link-register {
  color: #FFFF00; /* Custom color for register font */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-login__link-register:hover {
  color: #ffd700;
}

.page-login__hero-image-container {
  flex: 1;
  min-width: 400px;
  text-align: center;
}

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

/* Features Section */
.page-login__features-section {
  padding: 80px 0;
}

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

.page-login__feature-card {
  background: #f0f0f0;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__feature-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}

.page-login__feature-icon {
  width: 100%;
  height: auto;
  max-width: 150px;
  margin-bottom: 20px;
  border-radius: 8px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

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

.page-login__card-text {
  font-size: 1em;
  color: #555;
}

/* How to Login Section */
.page-login__how-to-login {
  padding: 80px 0;
  background-color: #017439;
}

.page-login__steps-list {
  list-style: none;
  padding: 0;
  margin-top: 50px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 40px;
}

.page-login__step-item {
  background: rgba(0, 0, 0, 0.4);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  counter-increment: step-counter;
  position: relative;
  text-align: center;
}

.page-login__step-item::before {
  content: counter(step-counter);
  position: absolute;
  top: -20px;
  left: 50%;
  transform: translateX(-50%);
  background-color: #FFFF00; /* Custom font color for steps */
  color: #C30808; /* Custom button color for steps */
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8em;
  font-weight: bold;
  border: 3px solid #017439;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}

.page-login__step-title {
  font-size: 1.6em;
  margin-top: 20px;
  margin-bottom: 15px;
  color: #FFFF00; /* Custom font color for steps */
}

.page-login__step-text {
  font-size: 1em;
  color: #f0f0f0;
}

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

.page-login__cta-buttons {
  text-align: center;
  margin-top: 30px;
}

.page-login__btn-secondary {
  background-color: #ffffff;
  color: #017439;
  padding: 12px 30px;
  border: 2px solid #017439;
  border-radius: 5px;
  cursor: pointer;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: background-color 0.3s ease, color 0.3s ease;
}

.page-login__btn-secondary:hover {
  background-color: #f0f0f0;
  color: #005f2e;
}

/* Troubleshooting Section */
.page-login__troubleshooting-section {
  padding: 80px 0;
}

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

.page-login__trouble-card {
  background: #f0f0f0;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

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

.page-login__security-list {
  list-style: none;
  padding: 0;
  margin-top: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.page-login__security-item {
  background: rgba(0, 0, 0, 0.4);
  margin-bottom: 15px;
  padding: 15px 20px;
  border-radius: 8px;
  font-size: 1.1em;
  color: #f0f0f0;
  position: relative;
  padding-left: 40px;
}

.page-login__security-item::before {
  content: '✔';
  position: absolute;
  left: 15px;
  color: #FFFF00; /* Custom font color */
  font-weight: bold;
}

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

.page-login__link-responsible-gaming {
  color: #FFFF00; /* Custom font color */
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-login__link-responsible-gaming:hover {
  color: #ffd700;
}

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

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

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

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  font-size: 1.2em;
  font-weight: bold;
  color: #333333;
  cursor: pointer;
  background-color: #e8e8e8;
  border-bottom: 1px solid #ddd;
  transition: background-color 0.3s ease;
  list-style: none;
}

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

.page-login__faq-question::-webkit-details-marker {
  display: none;
}

.page-login__faq-question::marker {
  display: none;
}

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

.page-login__faq-toggle {
  font-size: 1.5em;
  margin-left: 15px;
  color: #017439;
}

.page-login__faq-item[open] .page-login__faq-toggle {
  content: '−';
}

.page-login__faq-answer {
  padding: 15px 25px;
  font-size: 1em;
  color: #555;
  border-top: 1px solid #eee;
}

/* Call to Action Section */
.page-login__cta-section {
  padding: 80px 0;
  background-color: #C30808; /* Custom color for register/login */
}

.page-login__cta-section .page-login__section-title,
.page-login__cta-section .page-login__section-description {
  color: #FFFF00; /* Custom color for register/login font */
}

.page-login__cta-section .page-login__btn-primary {
  background-color: #FFFF00; /* Custom font color for register/login */
  color: #C30808; /* Custom button color for register/login */
  border: 2px solid #FFFF00;
}

.page-login__cta-section .page-login__btn-primary:hover {
  background-color: #ffd700;
  border-color: #ffd700;
}

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

@media (max-width: 768px) {
  .page-login__main-title {
    font-size: 2.5em;
    text-align: center;
  }

  .page-login__hero-description {
    font-size: 1.1em;
    text-align: center;
  }

  .page-login__hero-section .page-login__container {
    flex-direction: column;
    text-align: center;
  }

  .page-login__hero-content {
    order: 2;
    text-align: center;
  }

  .page-login__login-form-wrapper {
    order: 1;
    margin-bottom: 30px;
    margin-top: 0;
  }

  .page-login__hero-image-container {
    order: 3;
    min-width: unset;
  }

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

  .page-login__section-description {
    font-size: 1em;
  }

  .page-login__features-grid,
  .page-login__troubleshooting-grid {
    grid-template-columns: 1fr;
  }

  .page-login__steps-list {
    grid-template-columns: 1fr;
  }

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

  .page-login__btn-login,
  .page-login__btn-secondary,
  .page-login__btn-primary,
  .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__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;
  }

  .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 {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }

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

  /* Ensure no image filter */
  .page-login img {
    filter: none !important;
  }
}

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

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

  .page-login__btn-login {
    font-size: 1em;
  }

  .page-login__step-title {
    font-size: 1.4em;
  }

  .page-login__faq-question {
    font-size: 1em;
    padding: 15px 20px;
  }
}