/* style/login.css */
.page-login {
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  color: #ffffff; /* Default text color for dark body background */
  background-color: #1a1a2e; /* Matches shared.css body background */
}

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

.page-login__hero-section {
  position: relative;
  width: 100%;
  min-height: 500px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background-size: cover;
  background-position: center;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing */
  box-sizing: border-box;
}

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

.page-login__hero-content {
  position: relative;
  z-index: 2;
  color: #ffffff;
  max-width: 800px;
}

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

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

.page-login__form-section {
  padding: 60px 0;
  background-color: #1a1a2e;
}

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

.page-login__login-card {
  background-color: rgba(255, 255, 255, 0.08); /* Subtle light background on dark body */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
  max-width: 450px;
  width: 100%;
  box-sizing: border-box;
  color: #ffffff;
}

.page-login__card-title {
  font-size: 2em;
  margin-bottom: 30px;
  text-align: center;
  color: #ffffff;
}

.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(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 1em;
  box-sizing: border-box;
}

.page-login__form-input::placeholder {
  color: rgba(255, 255, 255, 0.7);
}

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

.page-login__checkbox {
  margin-right: 8px;
  accent-color: #017439;
}

.page-login__checkbox-label {
  color: #ffffff;
}

.page-login__forgot-password-link {
  color: #017439;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-login__forgot-password-link:hover {
  color: #FFFF00;
}

.page-login__btn-login {
  width: 100%;
  padding: 15px 20px;
  background-color: #C30808; /* Custom login button color */
  color: #FFFFFF; /* Adjusted for WCAG AA contrast with #C30808 (4.75:1) */
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

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

.page-login__register-prompt {
  text-align: center;
  margin-top: 30px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding-top: 20px;
}

.page-login__register-text {
  color: #ffffff;
  margin-bottom: 15px;
}

.page-login__btn-register {
  display: inline-block;
  padding: 12px 25px;
  background-color: #017439;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-register:hover {
  background-color: #005a2e;
  transform: translateY(-2px);
}

.page-login__security-info {
  max-width: 500px;
  width: 100%;
  text-align: center;
  color: #ffffff;
  padding: 20px;
  box-sizing: border-box;
}

.page-login__security-title {
  font-size: 1.8em;
  margin-bottom: 20px;
  color: #FFFF00;
}

.page-login__security-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-login__security-description {
  font-size: 1.1em;
}

.page-login__benefits-section,
.page-login__promo-section,
.page-login__support-section,
.page-login__register-cta-section {
  padding: 80px 0;
  background-color: #1a1a2e;
  color: #ffffff;
}

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

.page-login__section-intro {
  font-size: 1.15em;
  text-align: center;
  max-width: 900px;
  margin: 0 auto 50px auto;
  line-height: 1.8;
}

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

.page-login__benefit-card,
.page-login__promo-item {
  background-color: rgba(255, 255, 255, 0.08);
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  text-align: center;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
}

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

.page-login__benefit-image,
.page-login__promo-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
}

.page-login__benefit-text,
.page-login__promo-description {
  font-size: 1em;
  line-height: 1.7;
  margin-bottom: 20px;
  flex-grow: 1;
}

.page-login__btn-read-more,
.page-login__btn-view-promos,
.page-login__btn-contact,
.page-login__btn-register-large {
  display: inline-block;
  padding: 12px 25px;
  background-color: #017439;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 15px;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
}

.page-login__btn-read-more:hover,
.page-login__btn-view-promos:hover,
.page-login__btn-contact:hover,
.page-login__btn-register-large:hover {
  background-color: #005a2e;
  transform: translateY(-2px);
}

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

.page-login__support-image {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  flex: 1 1 400px;
}

.page-login__support-list {
  list-style: none;
  padding: 0;
  margin: 0;
  flex: 1 1 400px;
  font-size: 1.1em;
  line-height: 2;
}

.page-login__support-item {
  margin-bottom: 10px;
  color: #ffffff;
}

.page-login__support-item strong {
  color: #FFFF00;
}

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

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

.page-login__register-cta-content {
  text-align: center;
}

.page-login__responsible-gambling {
  margin-top: 30px;
  font-size: 0.95em;
  color: rgba(255, 255, 255, 0.8);
}

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

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

.highlight-text {
  color: #FFFF00; /* Highlight important keywords */
  font-weight: bold;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: 2.5em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__login-card {
    max-width: 100%;
  }
  .page-login__form-section .page-login__container {
    flex-direction: column;
  }
  .page-login__security-info {
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    min-height: 400px;
    padding-top: var(--header-offset, 120px) !important;
  }
  .page-login__main-title {
    font-size: 2em;
  }
  .page-login__hero-description {
    font-size: 1em;
  }
  .page-login__section-title {
    font-size: 1.8em;
  }
  .page-login__section-intro {
    font-size: 1em;
    margin-bottom: 30px;
  }
  .page-login__benefits-section,
  .page-login__promo-section,
  .page-login__support-section,
  .page-login__register-cta-section {
    padding: 40px 0;
  }
  .page-login__login-card {
    padding: 30px 20px;
  }
  .page-login__card-title {
    font-size: 1.8em;
  }
  .page-login__form-input,
  .page-login__btn-login,
  .page-login__btn-register {
    font-size: 0.95em;
    padding: 10px 15px;
  }
  .page-login__btn-login, .page-login__btn-register, .page-login__btn-read-more, .page-login__btn-view-promos, .page-login__btn-contact, .page-login__btn-register-large {
    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__benefits-grid,
  .page-login__promo-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .page-login__benefit-card,
  .page-login__promo-item {
    padding: 20px;
  }
  .page-login__support-content {
    flex-direction: column;
    gap: 20px;
  }
  .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__support-list {
    padding-left: 0;
  }
}

@media (max-width: 480px) {
  .page-login__main-title {
    font-size: 1.8em;
  }
  .page-login__section-title {
    font-size: 1.5em;
  }
  .page-login__card-title {
    font-size: 1.5em;
  }
  .page-login__form-options {
    flex-direction: column;
    gap: 10px;
    align-items: flex-start;
  }
}