/* style/login.css */

/* Base styles for the page-login scope */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #121212; /* Inherited from body, but good to reinforce for clarity */
}

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

/* Hero Section */
.page-login__hero-section {
  position: relative;
  width: 100%;
  min-height: 700px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: url('[GALLERY:hero:1920x1080:hi823,login_background,online_betting,dynamic_casino,secure_platform]') no-repeat center center/cover;
  color: #ffffff;
  padding: 60px 20px;
  padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
  box-sizing: border-box;
}

.page-login__hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
  z-index: 1;
}

.page-login__hero-content {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 20px;
}

.page-login__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
  line-height: 1.2;
}

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

/* Login Form Wrapper */
.page-login__form-wrapper {
  background: rgba(255, 255, 255, 0.15); /* Slightly transparent white for contrast */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
  max-width: 400px;
  margin: 30px auto 0;
}

.page-login__form-title {
  font-size: 1.8em;
  margin-bottom: 25px;
  color: #ffffff;
}

.page-login__login-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.page-login__form-group {
  text-align: left;
}

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

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

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

.page-login__form-input:focus {
  border-color: #26A9E0;
  outline: none;
  box-shadow: 0 0 0 3px rgba(38, 169, 224, 0.3);
}

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

.page-login__forgot-password-link {
  color: #26A9E0;
  text-decoration: none;
}

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

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

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

.page-login__checkbox-label {
  cursor: pointer;
}

.page-login__submit-button {
  background-color: #EA7C07; /* Custom color for login button */
  color: #ffffff;
  padding: 14px 25px;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 20px;
}

.page-login__submit-button:hover {
  background-color: #d86c06;
  transform: translateY(-2px);
}

.page-login__register-prompt {
  margin-top: 25px;
  color: #f0f0f0;
  font-size: 0.95em;
}

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

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

/* General Section Styles */
.page-login__section-title {
  font-size: 2.5em;
  margin-bottom: 15px;
  text-align: center;
  color: #ffffff;
}

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

/* Benefits Section */
.page-login__benefits-section {
  padding: 80px 20px;
  background-color: #1a1a1a; /* Darker background for this section */
  color: #ffffff;
}

.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: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, background 0.3s ease;
}

.page-login__benefit-card:hover {
  transform: translateY(-5px);
  background: rgba(38, 169, 224, 0.15); /* Hover with primary color tint */
}

.page-login__benefit-icon {
  width: 100%; /* Ensure image fills card width */
  max-width: 200px; /* Max size for icon-like images */
  height: auto;
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-login__benefit-title {
  font-size: 1.5em;
  margin-bottom: 15px;
  color: #26A9E0; /* Primary color for titles */
}

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

.page-login__cta-section {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 60px;
    flex-wrap: wrap;
}

.page-login__btn-primary,
.page-login__btn-secondary {
  display: inline-block;
  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;
}

.page-login__btn-primary {
  background-color: #26A9E0;
  color: #ffffff;
  border: 2px solid #26A9E0;
}

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

.page-login__btn-secondary {
  background-color: transparent;
  color: #26A9E0;
  border: 2px solid #26A9E0;
}

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

/* Guide Section */
.page-login__guide-section {
  padding: 80px 20px;
  background-color: #121212;
  color: #ffffff;
}

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

.page-login__step-item {
  background: rgba(255, 255, 255, 0.05);
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__step-number {
  font-size: 2.5em;
  font-weight: bold;
  color: #26A9E0;
  margin-bottom: 15px;
}

.page-login__step-title {
  font-size: 1.4em;
  margin-bottom: 10px;
  color: #ffffff;
}

.page-login__step-text {
  font-size: 0.95em;
  color: #e0e0e0;
}

/* FAQ Section */
.page-login__faq-section {
  padding: 80px 20px;
  background-color: #1a1a1a;
  color: #ffffff;
}

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

.page-login__faq-item {
  margin-bottom: 15px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.05);
}

.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 25px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.08);
  transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
  background-color: rgba(38, 169, 224, 0.15);
}

.page-login__faq-title {
  font-size: 1.2em;
  margin: 0;
  color: #ffffff;
}

.page-login__faq-toggle {
  font-size: 1.5em;
  font-weight: bold;
  color: #26A9E0;
  transition: transform 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-toggle {
  transform: rotate(45deg); /* Change + to X or - */
}

.page-login__faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 25px;
  transition: max-height 0.4s ease-out, padding 0.4s ease-out;
  color: #e0e0e0;
}

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

.page-login__faq-text {
  margin: 0;
  font-size: 1em;
}

/* CTA Register Section */
.page-login__cta-register-section {
  padding: 80px 20px;
  background-color: #26A9E0; /* Primary brand color background */
  color: #ffffff;
  text-align: center;
}

.page-login__cta-register-section .page-login__section-title {
  color: #ffffff;
}

.page-login__cta-register-section .page-login__section-description {
  color: #f0f0f0;
  margin-bottom: 40px;
}

.page-login__btn-large {
  padding: 18px 40px;
  font-size: 1.2em;
  margin: 10px;
}

/* Image specific styles - ensure no filter */
.page-login img {
  border-radius: 8px;
  /* No filter property allowed */
}

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

@media (max-width: 768px) {
  .page-login__main-title {
    font-size: 2.2em;
  }
  .page-login__intro-text {
    font-size: 1em;
  }
  .page-login__form-wrapper {
    padding: 25px;
  }
  .page-login__form-title {
    font-size: 1.5em;
  }
  .page-login__hero-section {
    padding: 40px 15px;
    padding-top: var(--header-offset, 120px) !important; /* Ensure header offset applies */
    min-height: 600px;
  }

  .page-login__benefits-section,
  .page-login__guide-section,
  .page-login__faq-section,
  .page-login__cta-register-section {
    padding: 50px 15px;
  }

  .page-login__benefits-grid,
  .page-login__guide-steps {
    grid-template-columns: 1fr;
  }

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

  .page-login__cta-section {
    flex-direction: column;
    gap: 15px;
  }

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

  /* Image responsive rules */
  .page-login img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__form-wrapper,
  .page-login__hero-content {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow-x: hidden; /* Prevent horizontal scroll */
  }

  .page-login__video-section {
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-login__video,
  .page-login video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }
  .page-login__video-section,
  .page-login__video-container,
  .page-login__video-wrapper {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
    overflow: hidden !important;
  }
}

/* Color Contrast Enforcement */
/* body background is #121212 (dark), so text should be light */
.page-login {
  color: #ffffff; /* Default light text for dark body */
}

.page-login__hero-content,
.page-login__form-wrapper,
.page-login__form-label,
.page-login__forgot-password-link,
.page-login__remember-me,
.page-login__checkbox-label,
.page-login__register-prompt,
.page-login__section-title,
.page-login__section-description,
.page-login__benefit-text,
.page-login__step-title,
.page-login__step-text,
.page-login__faq-title,
.page-login__faq-text {
  color: #ffffff; /* Ensure all text is light */
}

/* Specific elements that need different contrast */
.page-login__form-input {
  background-color: #2a2a2a; /* Darker input background */
  color: #ffffff; /* Light text on dark input */
}

.page-login__benefit-card,
.page-login__step-item,
.page-login__faq-item {
  background: rgba(255, 255, 255, 0.08); /* Light transparent background on dark body */
  color: #ffffff; /* Light text */
}

.page-login__benefit-card:hover {
  background: rgba(38, 169, 224, 0.2); /* Slightly more opaque brand color tint on hover */
}

.page-login__faq-question {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.page-login__faq-question:hover {
  background-color: rgba(38, 169, 224, 0.2);
}

.page-login__btn-primary {
  background-color: #26A9E0; /* Brand primary color */
  color: #ffffff; /* White text on primary color */
}

.page-login__btn-secondary {
  background-color: transparent;
  color: #26A9E0; /* Primary color text */
  border: 2px solid #26A9E0;
}

.page-login__btn-secondary:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

.page-login__submit-button {
  background-color: #EA7C07; /* Login button specific color */
  color: #ffffff; /* White text on login button color */
}

/* Ensure all links are readable */
.page-login a {
  color: #26A9E0; /* Primary brand color for links */
}
.page-login a:hover {
  color: #1f8ec4; /* Darker shade on hover */
}

/* Content area images minimum size enforcement for CSS */
.page-login__benefits-grid img,
.page-login__guide-steps img {
  min-width: 200px;
  min-height: 200px;
  object-fit: cover;
}
@media (max-width: 768px) {
  .page-login__benefits-grid img,
  .page-login__guide-steps img {
    min-width: unset; /* Reset min-width for mobile to allow max-width: 100% */
    min-height: unset; /* Reset min-height for mobile to allow height: auto */
    width: 100% !important;
    height: auto !important;
  }
}