/* style/login.css */

/* Base styles for the page */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #333333; /* Default text color for light background */
  background-color: #ffffff; /* Default background */
}

/* Section Padding */
.page-login__section-padding {
  padding: 60px 0;
}

/* Container for max-width centering */
.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  box-sizing: border-box; /* Ensure padding is included in width */
}

/* --- Hero Section --- */
.page-login__hero-section {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 700px; /* Minimum height for hero */
  text-align: center;
  color: #ffffff; /* White text for hero overlay */
  overflow: hidden;
  padding-top: var(--header-offset, 120px); /* Fixed header spacing for desktop */
}

.page-login__hero-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 1;
}

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

.page-login__hero-content {
  position: relative;
  z-index: 3;
  max-width: 800px;
}

.page-login__main-title {
  font-size: 3.2em;
  margin-bottom: 20px;
  color: #FFFFFF;
}

.page-login__description {
  font-size: 1.2em;
  margin-bottom: 40px;
  color: #f0f0f0;
}

/* Login Card */
.page-login__login-card {
  background: rgba(255, 255, 255, 0.95); /* Slightly transparent white */
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
  max-width: 450px;
  margin: 0 auto;
  text-align: left;
  color: #333333;
}

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

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

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

.page-login__form-input {
  width: 100%;
  padding: 12px 15px;
  border: 1px solid #cccccc;
  border-radius: 5px;
  font-size: 1em;
  box-sizing: border-box;
}

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

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

.page-login__checkbox-container {
  display: block;
  position: relative;
  padding-left: 25px;
  cursor: pointer;
  font-size: 0.95em;
  user-select: none;
  color: #555555;
}

.page-login__checkbox {
  position: absolute;
  opacity: 0;
  cursor: pointer;
  height: 0;
  width: 0;
}

.page-login__checkbox-container .page-login__checkbox-label::before {
  content: '';
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border: 1px solid #26A9E0;
  background-color: #ffffff;
  border-radius: 3px;
}

.page-login__checkbox:checked + .page-login__checkbox-label::before {
  background-color: #26A9E0;
  border-color: #26A9E0;
}

.page-login__checkbox:checked + .page-login__checkbox-label::after {
  content: '\2713'; /* Checkmark */
  position: absolute;
  left: 4px;
  top: 0px;
  color: white;
  font-size: 16px;
  line-height: 18px;
}

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

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

.page-login__btn {
  display: block;
  width: 100%;
  padding: 15px 25px;
  font-size: 1.1em;
  font-weight: bold;
  text-align: center;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.3s ease, color 0.3s ease;
  text-decoration: none;
  box-sizing: border-box; /* For button responsive */
  white-space: normal; /* For button responsive */
  word-wrap: break-word; /* For button responsive */
}

.page-login__btn-login {
  background-color: #EA7C07; /* Custom color for login button */
  color: #ffffff;
  border: none;
  margin-bottom: 20px;
}

.page-login__btn-login:hover {
  background-color: #d16e00;
}

.page-login__register-text {
  text-align: center;
  font-size: 0.95em;
  color: #555555;
}

.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;
  text-align: center;
  margin-bottom: 20px;
  color: #26A9E0;
}

.page-login__section-title--light {
  color: #FFFFFF;
}

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

.page-login__section-description--light {
  color: #f0f0f0;
}

/* --- Benefits Section --- */
.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: #ffffff;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s ease;
  border: 1px solid #e0e0e0;
}

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

.page-login__benefit-icon {
  width: 100%; /* Ensure large image */
  height: auto;
  max-width: 300px; /* Example max width for card image */
  margin: 0 auto 20px auto;
  display: block;
  border-radius: 5px;
}

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

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

/* --- Security Section --- */
.page-login__dark-bg {
  background-color: #26A9E0; /* Brand primary color as background */
  color: #ffffff; /* White text for dark background */
}

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

.page-login__security-feature-item {
  background: rgba(255, 255, 255, 0.1); /* Slightly transparent white on brand color */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-login__feature-text {
  font-size: 1em;
  color: #f0f0f0;
}

.page-login__text-link {
  color: #FFFFFF;
  text-decoration: underline;
}

.page-login__text-link:hover {
  color: #e0e0e0;
}

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

.page-login__troubleshooting-item {
  background: #f9f9f9;
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
  border: 1px solid #e0e0e0;
}

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

.page-login__troubleshooting-text {
  font-size: 1em;
  color: #555555;
}

/* --- CTA Section --- */
.page-login__cta-section {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  position: relative;
  overflow: hidden;
  background-color: #FFFFFF; /* Light background for CTA */
  color: #333333;
}

.page-login__cta-content {
  position: relative;
  z-index: 2;
}

.page-login__cta-image {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 50%; /* Example width for decorative image */
  height: auto;
  object-fit: contain;
  opacity: 0.7;
  z-index: 1;
  max-width: 800px; /* Ensure image is not too large */
  pointer-events: none; /* Prevent image from interfering with clicks */
}

.page-login__cta-buttons {
  display: flex;
  gap: 20px;
  margin-top: 30px;
  justify-content: center;
  width: 100%; /* For button responsive */
  max-width: 600px; /* Limit button group width */
  margin-left: auto;
  margin-right: auto;
}

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

.page-login__btn-primary:hover {
  background-color: #1e87c0;
}

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

.page-login__btn-secondary:hover {
  background-color: #f0f0f0;
}

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

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

  .page-login__cta-image {
    width: 60%;
    opacity: 0.5;
  }
}

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

  .page-login__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
  }

  .page-login__description {
    font-size: 1em;
    margin-bottom: 30px;
  }

  .page-login__login-card {
    padding: 30px 20px;
  }

  .page-login__card-title {
    font-size: 1.8em;
    margin-bottom: 20px;
  }

  .page-login__section-padding {
    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,
  .page-login__security-features-grid,
  .page-login__troubleshooting-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login__benefit-card,
  .page-login__security-feature-item,
  .page-login__troubleshooting-item {
    padding: 25px;
  }

  .page-login__benefit-title,
  .page-login__feature-title,
  .page-login__troubleshooting-title {
    font-size: 1.3em;
  }

  .page-login__cta-buttons {
    flex-direction: column;
    gap: 15px;
    width: 100%; /* Ensure full width on mobile */
    padding: 0 15px; /* Add padding to prevent overflow */
    box-sizing: border-box;
  }

  .page-login__btn {
    width: 100% !important; /* Force full width for buttons */
    max-width: 100% !important;
    padding: 12px 15px !important;
  }

  .page-login__cta-image {
    width: 80%;
    opacity: 0.3;
  }
}

/* Image responsive rules (mandatory) */
.page-login img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Mobile specific image, video, and container rules */
@media (max-width: 768px) {
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  .page-login video,
  .page-login__video {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    display: block !important;
  }

  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__login-card,
  .page-login__benefit-card,
  .page-login__security-feature-item,
  .page-login__troubleshooting-item {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px; /* Add horizontal padding to content blocks */
    padding-right: 15px; /* Add horizontal padding to content blocks */
  }

  /* Specific handling for elements that might contain images/videos */
  .page-login__hero-section,
  .page-login__benefits-section,
  .page-login__security-section,
  .page-login__troubleshooting-section,
  .page-login__cta-section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  .page-login__hero-content,
  .page-login__cta-content {
    padding-left: 15px !important;
    padding-right: 15px !important;
  }
}