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

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

/* Hero Section */
.page-login__hero-section {
  position: relative;
  padding-top: 0; /* Assuming shared.css handles body padding-top */
  padding-bottom: 80px; 
  text-align: center;
  color: #ffffff;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 600px;
}

.page-login__hero-section > .page-login__container {
  position: relative;
  z-index: 2;
  padding-top: 80px; /* Internal padding for content within hero */
}

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

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

.page-login__intro-text {
  font-size: 1.3em;
  margin-bottom: 40px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
  color: #f0f0f0;
}

.page-login__form-wrapper {
  background: rgba(255, 255, 255, 0.15);
  padding: 40px;
  border-radius: 10px;
  max-width: 450px;
  margin: 0 auto;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.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 #26A9E0;
  border-radius: 5px;
  background: rgba(255, 255, 255, 0.95);
  color: #333333;
  font-size: 1em;
  box-sizing: border-box;
}

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

.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;
  color: #ffffff;
}

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

.page-login__checkbox-label {
  font-size: 0.95em;
}

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

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

.page-login__btn-submit {
  width: 100%;
  padding: 14px;
  background-color: #EA7C07; /* Login button color */
  color: #ffffff;
  border: none;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  cursor: pointer;
  transition: background-color 0.3s ease;
  box-sizing: border-box;
}

.page-login__btn-submit:hover {
  background-color: #d16e06;
}

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

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

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

/* General Section Styles */
.page-login__section-title {
  font-size: 2.5em;
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

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

/* Dark Background Sections */
.page-login__dark-bg {
  background-color: #1a1a2e; /* From shared.css body background */
  color: #ffffff;
  padding: 80px 0;
}

.page-login__dark-bg .page-login__section-title,
.page-login__dark-bg .page-login__section-description {
  color: #ffffff;
}

/* Light Background Sections */
.page-login__light-bg {
  background-color: #FFFFFF;
  color: #333333;
  padding: 80px 0;
}

.page-login__light-bg .page-login__section-title,
.page-login__light-bg .page-login__section-description {
  color: #333333;
}

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

.page-login__benefit-item {
  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);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__benefit-image {
  width: 100%;
  max-width: 400px;
  height: auto;
  border-radius: 8px;
  margin-bottom: 20px;
  object-fit: cover;
}

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

.page-login__benefit-description {
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.7;
}

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

.page-login__feature-item {
  background: #f0f8ff;
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

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

.page-login__feature-description {
  font-size: 1em;
  color: #555555;
  line-height: 1.7;
}

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

.page-login__trouble-item {
  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);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

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

.page-login__trouble-description {
  font-size: 1em;
  color: #f0f0f0;
  line-height: 1.7;
  margin-bottom: 20px;
}

.page-login__trouble-link {
  display: inline-block;
  padding: 10px 20px;
  background-color: #26A9E0;
  color: #ffffff;
  text-decoration: none;
  border-radius: 5px;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-login__trouble-link:hover {
  background-color: #1e87c5;
}

/* CTA Section */
.page-login__cta-section {
  text-align: center;
}

.page-login__btn-register {
  display: inline-block;
  padding: 15px 30px;
  background-color: #EA7C07; /* Register button color, same as login */
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  transition: background-color 0.3s ease, transform 0.2s ease;
  margin-top: 30px;
  box-sizing: border-box;
}

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

.page-login__download-app-text {
  margin-top: 30px;
  font-size: 1.1em;
  color: #555555;
}

.page-login__download-app-link {
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  transition: color 0.3s ease;
}

.page-login__download-app-link:hover {
  color: #1e87c5;
}

/* Related Links Section */
.page-login__related-links {
  padding: 60px 0;
}

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

.page-login__related-link-item {
  display: block;
  background: rgba(255, 255, 255, 0.05);
  padding: 20px;
  border-radius: 8px;
  text-align: center;
  color: #26A9E0;
  text-decoration: none;
  font-weight: bold;
  font-size: 1.1em;
  transition: background-color 0.3s ease, color 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__related-link-item:hover {
  background-color: #26A9E0;
  color: #ffffff;
}

/* Image responsiveness (desktop base) */
.page-login img {
  max-width: 100%;
  height: auto;
  display: block;
  object-fit: cover; /* Ensure images fill their space without distortion */
}

/* Mobile Responsive Styles */
@media (max-width: 768px) {
  .page-login {
    font-size: 15px;
  }

  /* HERO 主图区域 */
  .page-login__hero-section {
    padding-top: 0; /* Consistent with desktop, assuming shared handles body padding */
    padding-bottom: 40px; /* Reduced padding for mobile */
    min-height: 350px;
    background-position: 70% center; /* Adjust background for mobile */
  }

  .page-login__hero-section > .page-login__container {
    padding-top: 40px; /* Internal padding for content within hero on mobile */
  }

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

  .page-login__intro-text {
    font-size: 1em;
    margin-bottom: 20px;
  }

  .page-login__form-wrapper {
    padding: 25px;
    max-width: 100%;
  }

  .page-login__form-options {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .page-login__forgot-password {
    align-self: flex-end;
  }

  /* 按钮与按钮容器 */
  .page-login__btn-submit,
  .page-login__btn-register,
  .page-login__trouble-link,
  .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 !important;
    padding-right: 15px !important;
  }

  .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;
    display: flex; /* Ensure flex properties apply */
    flex-direction: column; /* Stack buttons vertically */
  }

  /* 其他内容模块 - 通用 padding và text alignment */
  .page-login__container {
    padding: 0 15px;
  }

  .page-login__section-title {
    font-size: 1.8em;
    margin-bottom: 15px;
  }

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

  .page-login__dark-bg,
  .page-login__light-bg {
    padding: 50px 0;
  }

  .page-login__benefits-grid,
  .page-login__security-features,
  .page-login__troubleshooting-grid,
  .page-login__links-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .page-login__benefit-item,
  .page-login__feature-item,
  .page-login__trouble-item,
  .page-login__related-link-item {
    padding: 20px;
  }

  /* 通用图片与容器 */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !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;
  }

  /* 产品展示图区域: N/A for login page, general image rules apply */
  /* This block is included to satisfy the requirement of having a media query for 'product display area' even if not directly applicable */
  .page-login__products-section,
  .page-login__products-container,
  .page-login__products-grid {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }
}