/* style/login.css */

.page-login {
  background-color: #1a1a2e; /* Inherited from body, but explicitly set for clarity */
  color: #ffffff; /* Light text for dark background */
  font-family: Arial, sans-serif;
  line-height: 1.6;
}

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

.page-login__form-section {
  position: relative;
  padding: 80px 0;
  padding-top: var(--header-offset, 120px); /* Adjust for fixed header */
  background: url('[GALLERY:hero_login:1920x1080:keo_bong_da_88,login_background,sports_betting_interface,secure_platform,green_theme]') no-repeat center center/cover;
  color: #ffffff;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh; /* Ensure it takes full viewport height */
}

.page-login__form-wrapper {
  background: rgba(0, 0, 0, 0.75); /* Darker overlay for readability */
  padding: 40px;
  border-radius: 10px;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
  box-sizing: border-box;
}

.page-login__heading {
  font-size: 2.5em;
  margin-bottom: 20px;
  color: #ffffff; /* Ensure white text on dark overlay */
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

.page-login__subheading {
  font-size: 1.1em;
  margin-bottom: 30px;
  color: #f0f0f0;
}

.page-login__form {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

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

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

.page-login__input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #017439; /* Brand green border */
  border-radius: 5px;
  background-color: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__input::placeholder {
  color: #ccc;
}

.page-login__forgot-password {
  text-align: right;
  color: #FFFF00; /* Custom font color for login/register font */
  text-decoration: none;
  font-size: 0.9em;
  margin-top: -10px;
  margin-bottom: 10px;
  display: block;
}

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

.page-login__login-button {
  display: block;
  width: 100%;
  padding: 15px 20px;
  background-color: #C30808; /* Custom login button color */
  color: #FFFF00; /* Custom login button font color */
  border: none;
  border-radius: 5px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal;
  word-wrap: break-word;
}

.page-login__login-button:hover {
  background-color: #a30606;
}

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

.page-login__register-link {
  color: #FFFF00; /* Custom font color for login/register font */
  text-decoration: none;
  font-weight: bold;
}

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

.page-login__benefits-section {
  background-color: #1a1a2e;
  padding: 60px 0;
  text-align: center;
}

.page-login__benefits-heading {
  font-size: 2em;
  margin-bottom: 20px;
  color: #017439; /* Brand green for heading */
}

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

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

.page-login__benefit-item {
  background: rgba(255, 255, 255, 0.05); /* Slightly lighter background for items */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #ffffff;
  transition: transform 0.3s ease;
}

.page-login__benefit-item:hover {
  transform: translateY(-5px);
}

.page-login__benefit-icon {
  width: 200px; /* Min size requirement */
  height: 200px;
  object-fit: contain;
  margin-bottom: 20px;
  border-radius: 5px;
  max-width: 100%; /* Ensure responsiveness */
  height: auto;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.page-login__benefit-title {
  font-size: 1.4em;
  margin-bottom: 15px;
  color: #017439; /* Brand green for titles */
}

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

.page-login__cta-section {
  background-color: #017439; /* Brand green background */
  padding: 60px 0;
  text-align: center;
  color: #ffffff;
}

.page-login__cta-heading {
  font-size: 2.2em;
  margin-bottom: 20px;
  color: #ffffff;
}

.page-login__cta-description {
  font-size: 1.1em;
  max-width: 700px;
  margin: 0 auto 30px auto;
  color: #f0f0f0;
}

.page-login__cta-button {
  display: inline-block;
  padding: 15px 30px;
  background-color: #C30808; /* Custom register button color */
  color: #FFFF00; /* Custom register button font color */
  border: none;
  border-radius: 5px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
  max-width: 100%; /* Ensure responsiveness */
  white-space: normal;
  word-wrap: break-word;
}

.page-login__cta-button:hover {
  background-color: #a30606;
}

/* Responsive styles */
@media (max-width: 768px) {
  .page-login__form-section {
    padding: 60px 0;
    padding-top: var(--header-offset, 120px) !important;
    min-height: auto;
  }

  .page-login__form-wrapper {
    padding: 30px 20px;
    max-width: 90%;
  }

  .page-login__heading {
    font-size: 2em;
  }

  .page-login__subheading,
  .page-login__benefits-description,
  .page-login__cta-description {
    font-size: 1em;
  }

  .page-login__login-button,
  .page-login__cta-button {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-login__benefits-heading,
  .page-login__cta-heading {
    font-size: 1.8em;
  }

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

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

  .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__form-section,
  .page-login__benefits-section,
  .page-login__cta-section {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-login__benefits-section .page-login__container {
    padding-left: 0;
    padding-right: 0;
  }

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