/* style/login.css */

/* Base styles for the login page */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Light text on dark body background */
  background-color: #0a0a0a; /* Ensure body background is respected */
}

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

.page-login__section {
  padding: 60px 0;
  text-align: center;
}

.page-login__dark-bg {
  background-color: #0a0a0a;
  color: #ffffff;
}

.page-login__hero-section {
  position: relative;
  padding: 100px 0;
  background: url('[GALLERY:hero_login_bg:1920x1080:login,background,casino,players,vietnam]') no-repeat center center/cover;
  color: #ffffff;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
  padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
}

.page-login__main-title {
  font-size: 3.5em;
  margin-bottom: 20px;
  color: #26A9E0; /* Brand color for main title */
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
}

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

.page-login__login-box {
  background-color: rgba(0, 0, 0, 0.7);
  border: 1px solid #26A9E0;
  border-radius: 10px;
  padding: 40px;
  max-width: 450px;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(38, 169, 224, 0.5);
}

.page-login__box-title {
  font-size: 2em;
  margin-bottom: 30px;
  color: #ffffff;
}

.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: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid #26A9E0;
  border-radius: 5px;
  background-color: #1a1a1a;
  color: #ffffff;
  font-size: 1em;
}

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

.page-login__btn-primary {
  background-color: #EA7C07; /* Login button specific color */
  color: #ffffff;
  padding: 12px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  display: inline-block;
  text-decoration: none;
  margin-top: 20px;
  font-weight: bold;
}

.page-login__btn-primary:hover {
  background-color: #d16e06;
  transform: translateY(-2px);
}

.page-login__links {
  margin-top: 25px;
  font-size: 0.95em;
}

.page-login__forgot-password-link,
.page-login__register-link {
  color: #26A9E0;
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password-link:hover,
.page-login__register-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.page-login__separator {
  margin: 0 10px;
  color: #ffffff;
}

.page-login__section-title {
  font-size: 2.8em;
  margin-bottom: 25px;
  color: #26A9E0; /* Brand color for section titles */
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.5);
}

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

.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-color: rgba(255, 255, 255, 0.08);
  border: 1px solid #26A9E0;
  border-radius: 10px;
  padding: 30px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: left;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%; /* Ensure cards have equal height */
  display: flex;
  flex-direction: column;
}

.page-login__benefit-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(38, 169, 224, 0.4);
}

.page-login__benefit-image {
  width: 100%;
  height: 200px; /* Fixed height for consistency */
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 20px;
  border: 1px solid #26A9E0;
}

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

.page-login__card-text {
  font-size: 1em;
  color: #e0e0e0;
  flex-grow: 1;
}

.page-login__security-list {
  list-style: none;
  padding: 0;
  max-width: 900px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-login__security-item {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid #26A9E0;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-login__list-title {
  font-size: 1.3em;
  color: #26A9E0;
  margin-bottom: 10px;
}

.page-login__list-text {
  color: #e0e0e0;
  font-size: 1em;
}

.page-login__recovery-steps {
  list-style: none;
  padding: 0;
  max-width: 800px;
  margin: 40px auto 0 auto;
  text-align: left;
}

.page-login__step-item {
  background-color: rgba(255, 255, 255, 0.08);
  border: 1px solid #26A9E0;
  border-radius: 8px;
  padding: 25px;
  margin-bottom: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  counter-increment: step-counter;
  position: relative;
  padding-left: 60px;
}

.page-login__step-item::before {
  content: counter(step-counter);
  position: absolute;
  left: 20px;
  top: 20px;
  background-color: #EA7C07;
  color: #ffffff;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1em;
}

.page-login__register-cta-content,
.page-login__contact-cta-content {
  display: flex;
  align-items: center;
  gap: 40px;
  text-align: left;
  margin-top: 40px;
  background-color: rgba(255, 255, 255, 0.05);
  border-radius: 10px;
  padding: 30px;
  border: 1px solid #26A9E0;
}

.page-login__register-cta-content {
  flex-direction: row;
}

.page-login__contact-cta-content {
  flex-direction: row-reverse; /* Swap image and text for contact section */
}

.page-login__register-image,
.page-login__contact-image {
  width: 50%;
  max-width: 600px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid #26A9E0;
}

.page-login__register-text,
.page-login__contact-text {
  width: 50%;
}

.page-login__register-button,
.page-login__contact-button {
  margin-top: 30px;
}

.page-login__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
  padding: 12px 25px;
  border-radius: 5px;
  font-size: 1.1em;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
  display: inline-block;
  text-decoration: none;
  font-weight: bold;
}

.page-login__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
  transform: translateY(-2px);
}

.page-login__faq-section {
  background-color: #0a0a0a;
  padding: 60px 0;
  color: #ffffff;
}

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

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

.page-login__faq-item summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 20px 25px;
  cursor: pointer;
  font-size: 1.2em;
  font-weight: bold;
  color: #ffffff;
  background-color: rgba(38, 169, 224, 0.2);
  border-bottom: 1px solid transparent;
  transition: background-color 0.3s ease, border-bottom-color 0.3s ease;
}

.page-login__faq-item summary:hover {
  background-color: rgba(38, 169, 224, 0.3);
}

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

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

.page-login__faq-toggle {
  font-size: 1.5em;
  line-height: 1;
  margin-left: 15px;
}

.page-login__faq-item[open] summary {
  border-bottom-color: #26A9E0;
}

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

.page-login__faq-answer {
  padding: 15px 25px 20px;
  background-color: rgba(0, 0, 0, 0.5);
  color: #e0e0e0;
  font-size: 1em;
  line-height: 1.7;
  border-top: 1px solid #26A9E0;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 2.8em;
  }
  .page-login__section-title {
    font-size: 2.2em;
  }
  .page-login__register-cta-content,
  .page-login__contact-cta-content {
    flex-direction: column;
    text-align: center;
  }
  .page-login__register-image,
  .page-login__contact-image {
    width: 80%;
    max-width: 500px;
    margin-bottom: 30px;
  }
  .page-login__register-text,
  .page-login__contact-text {
    width: 100%;
  }
}

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

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

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

  .page-login__intro-text {
    font-size: 1em;
  }

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

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

  .page-login__form-input {
    width: calc(100% - 20px) !important;
  }

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

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

  .page-login__separator {
    display: none;
  }

  .page-login__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 {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login__benefit-card {
    padding: 20px;
  }

  .page-login__benefit-image {
    height: 180px;
  }

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

  .page-login__security-item,
  .page-login__step-item {
    padding: 20px;
    padding-left: 50px;
  }

  .page-login__step-item::before {
    left: 15px;
    top: 15px;
    width: 25px;
    height: 25px;
    font-size: 1em;
  }

  .page-login__register-cta-content,
  .page-login__contact-cta-content {
    padding: 20px;
  }

  .page-login__register-image,
  .page-login__contact-image {
    width: 100%;
    margin-bottom: 20px;
  }

  .page-login__faq-item summary {
    padding: 15px 20px;
    font-size: 1.1em;
  }

  .page-login__faq-answer {
    padding: 10px 20px 15px;
  }

  /* Mobile responsive images/videos/containers */
  .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__register-cta-content,
  .page-login__contact-cta-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden !important;
  }

  .page-login__login-form {
    width: 100%;
  }
}