.page-login {
  color: #ffffff; /* Dark body background, so light text */
  font-family: 'Arial', sans-serif;
  line-height: 1.6;
  background-color: #000000; /* 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: 36px;
  font-weight: bold;
  text-align: center;
  margin-bottom: 40px;
  color: #FFD700; /* Gold for emphasis */
}

.page-login__description {
  font-size: 18px;
  text-align: center;
  max-width: 800px;
  margin: 0 auto 30px auto;
  color: #f0f0f0;
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 80px 20px;
  padding-top: var(--header-offset, 120px);
  min-height: 80vh;
  text-align: center;
  overflow: hidden;
}

.page-login__hero-background-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: -2;
  filter: brightness(0.4);
}

.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: 1;
  max-width: 900px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-login__main-title {
  font-size: 48px;
  color: #FFD700; /* Gold for main title */
  margin-bottom: 20px;
  line-height: 1.2;
  text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__form-container {
  background: rgba(255, 255, 255, 0.95); /* Slightly transparent white for contrast */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
  width: 100%;
  max-width: 450px;
  margin-top: 40px;
  color: #333333; /* Dark text on light background */
}

.page-login__form-title {
  font-size: 28px;
  color: #CC0000; /* Red for form title */
  margin-bottom: 30px;
  text-align: center;
}

.page-login__form-group {
  margin-bottom: 20px;
  text-align: left;
}

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 16px;
  box-sizing: border-box;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-login__form-input:focus {
  border-color: #CC0000;
  box-shadow: 0 0 0 3px rgba(204, 0, 0, 0.2);
  outline: none;
}

.page-login__form-options {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 25px;
  font-size: 14px;
}

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

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

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

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

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

.page-login__submit-button {
  width: 100%;
  padding: 15px 25px;
  font-size: 18px;
  font-weight: bold;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-sizing: border-box;
}

.page-login__register-text {
  text-align: center;
  margin-top: 25px;
  font-size: 15px;
  color: #555555;
}

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

.page-login__register-link:hover {
  color: #FFD700;
}

/* Benefits Section */
.page-login__benefits-section {
  padding: 80px 0;
  background-color: #000000; /* Dark background */
  color: #ffffff;
  text-align: center;
}

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

.page-login__benefit-item {
  background: rgba(255, 255, 255, 0.08); /* Semi-transparent white card on dark background */
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
}

.page-login__benefit-item:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.3);
}

.page-login__benefit-icon {
  width: 100%;
  height: auto;
  max-width: 250px; /* Adjust size for icons */
  margin-bottom: 20px;
  border-radius: 8px;
  object-fit: cover;
}

.page-login__benefit-title {
  font-size: 24px;
  color: #FFD700; /* Gold for benefit titles */
  margin-bottom: 15px;
  font-weight: bold;
}

.page-login__benefit-description {
  font-size: 16px;
  color: #cccccc;
  line-height: 1.5;
}

/* Security Section */
.page-login__security-section {
  padding: 80px 0;
  background-color: #0d0d0d; /* Slightly different dark background */
  color: #ffffff;
}

.page-login__security-content {
  display: flex;
  align-items: center;
  gap: 50px;
}

.page-login__security-text-block {
  flex: 1;
  text-align: left;
}

.page-login__security-text-block p {
  font-size: 17px;
  margin-bottom: 20px;
  color: #f0f0f0;
}

.page-login__security-image {
  flex: 1;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
}

/* CTA Register Section */
.page-login__cta-register {
  padding: 80px 0;
  background-color: #CC0000; /* Red background */
  color: #ffffff;
  text-align: center;
}

.page-login__cta-register .page-login__section-title {
  color: #ffffff; /* White title on red background */
}

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

/* Button Styles */
.page-login__btn-primary {
  background: #FFD700; /* Gold button */
  color: #CC0000; /* Red text on gold */
  padding: 15px 35px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  margin: 10px;
  transition: background-color 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
  border: none;
}

.page-login__btn-primary:hover {
  background: #e6c200;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

.page-login__btn-secondary {
  background: transparent;
  color: #FFD700; /* Gold text */
  border: 2px solid #FFD700; /* Gold border */
  padding: 13px 33px;
  border-radius: 8px;
  font-size: 18px;
  font-weight: bold;
  text-decoration: none;
  display: inline-block;
  margin: 10px;
  transition: background-color 0.3s ease, transform 0.3s ease, border-color 0.3s ease, color 0.3s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-login__btn-secondary:hover {
  background: #FFD700;
  color: #CC0000; /* Red text on gold hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
  border-color: #e6c200;
}

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

  .page-login__main-title {
    font-size: 36px;
  }

  .page-login__description {
    font-size: 16px;
    margin-bottom: 20px;
  }

  .page-login__form-container {
    padding: 30px 20px;
    margin-top: 30px;
    max-width: 100%;
    box-sizing: border-box;
  }

  .page-login__form-title {
    font-size: 24px;
    margin-bottom: 20px;
  }

  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    margin-bottom: 20px;
  }

  .page-login__forgot-password {
    margin-top: 10px;
  }

  .page-login__submit-button {
    font-size: 16px;
    padding: 12px 20px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-login__section-title {
    font-size: 28px;
    margin-bottom: 30px;
  }

  .page-login__benefits-section,
  .page-login__security-section,
  .page-login__cta-register {
    padding: 60px 0;
  }

  .page-login__benefits-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

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

  .page-login__benefit-title {
    font-size: 20px;
  }

  .page-login__benefit-description {
    font-size: 15px;
  }

  .page-login__security-content {
    flex-direction: column;
    gap: 30px;
  }

  .page-login__security-text-block {
    text-align: center;
  }

  .page-login__security-image {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-login__btn-primary,
  .page-login__btn-secondary {
    font-size: 16px;
    padding: 12px 25px;
    margin: 8px;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    white-space: normal !important;
    word-wrap: break-word !important;
  }

  .page-login__cta-register .page-login__btn-primary,
  .page-login__cta-register .page-login__btn-secondary {
    display: block;
    margin-left: auto;
    margin-right: auto;
    max-width: 300px !important; /* Constrain width for single column buttons */
  }

  .page-login__container {
    padding: 0 15px;
  }

  /* General image and container responsiveness */
  .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-background-image {
    height: 100%; /* Ensure background image covers */
  }
}