/* style/login.css */

/* Base styles for page-login */
.page-login {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  color: #FFF5E1; /* Text Main */
  background-color: #B71C1C; /* Background */
  padding-bottom: 40px; /* Ensure space above footer */
}

/* Hero Section */
.page-login__hero-section {
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding-top: 10px; /* Small top padding, relying on shared for body padding */
  padding-bottom: 40px;
  background-color: #D32F2F; /* Card BG, as a section background */
}

.page-login__hero-image-wrapper {
  width: 100%;
  max-height: 500px;
  overflow: hidden;
}

.page-login__hero-image {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
}

.page-login__hero-content {
  max-width: 900px;
  padding: 20px;
  z-index: 1;
}

.page-login__main-title {
  font-size: clamp(2em, 4vw, 3em);
  font-weight: bold;
  color: #F4D34D; /* Gold */
  margin-bottom: 10px;
  line-height: 1.2;
}

.page-login__hero-description {
  font-size: 1.1em;
  color: #FFF5E1; /* Text Main */
  max-width: 700px;
  margin: 0 auto;
}

/* Container for content sections */
.page-login__container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 20px;
  box-sizing: border-box;
}

/* Section Titles */
.page-login__section-title {
  font-size: 2.5em;
  color: #F4D34D; /* Gold */
  text-align: center;
  margin-bottom: 20px;
  font-weight: bold;
}

.page-login__section-description {
  font-size: 1.1em;
  color: #FFF5E1; /* Text Main */
  text-align: center;
  margin-bottom: 30px;
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

/* Login Form Section */
.page-login__form-section {
  background-color: #D32F2F; /* Card BG */
  padding: 60px 0;
}

.page-login__form {
  max-width: 500px;
  margin: 0 auto;
  background-color: #7A0E0E; /* Deep Red */
  padding: 30px;
  border-radius: 10px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #F2B544; /* Border */
}

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

.page-login__form-label {
  display: block;
  margin-bottom: 8px;
  font-weight: bold;
  color: #FFF5E1; /* Text Main */
  font-size: 1em;
}

.page-login__form-input {
  width: calc(100% - 20px);
  padding: 12px 10px;
  border: 1px solid #F2B544; /* Border */
  border-radius: 5px;
  background-color: #B71C1C; /* Background */
  color: #FFF5E1; /* Text Main */
  font-size: 1em;
}

.page-login__form-input::placeholder {
  color: rgba(255, 245, 225, 0.7); /* Lighter version of Text Main */
}

.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: #F4D34D; /* Gold */
}

.page-login__checkbox-label {
  color: #FFF5E1; /* Text Main */
  font-size: 0.95em;
}

.page-login__forgot-password {
  color: #F4D34D; /* Gold */
  text-decoration: none;
  font-size: 0.95em;
}

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

.page-login__submit-button {
  width: 100%;
  padding: 15px 20px;
  border: none;
  border-radius: 5px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button gradient */
  color: #7A0E0E; /* Deep Red for contrast */
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  text-decoration: none; /* Ensure button-like links are styled */
  display: block; /* Ensure it takes full width */
  text-align: center;
}

.page-login__submit-button:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%); /* Invert gradient on hover */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-login__register-text {
  text-align: center;
  margin-top: 25px;
  color: #FFF5E1; /* Text Main */
  font-size: 1em;
}

.page-login__register-link {
  color: #F4D34D; /* Gold */
  text-decoration: none;
  font-weight: bold;
}

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

/* Benefits Section */
.page-login__benefits-section {
  padding: 60px 0;
  background-color: #B71C1C; /* Background */
}

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

.page-login__benefit-card {
  background-color: #D32F2F; /* Card BG */
  padding: 30px;
  border-radius: 10px;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
  border: 1px solid #F2B544; /* Border */
  display: flex;
  flex-direction: column;
  align-items: center;
}

.page-login__benefit-icon {
  width: 100%; /* Occupy card width */
  max-width: 250px; /* Max size for visual balance */
  height: auto;
  margin-bottom: 20px;
  border-radius: 5px;
  object-fit: cover;
}

.page-login__benefit-title {
  font-size: 1.5em;
  color: #F4D34D; /* Gold */
  margin-bottom: 10px;
  font-weight: bold;
}

.page-login__benefit-description {
  color: #FFF5E1; /* Text Main */
  font-size: 0.95em;
}

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

.page-login__dark-section {
  background-color: #7A0E0E; /* Deep Red */
  border-radius: 10px;
  padding: 40px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  border: 1px solid #F2B544; /* Border */
}

.page-login__cta-buttons {
  display: flex;
  justify-content: center;
  gap: 20px;
  margin-top: 30px;
}

.page-login__btn-primary,
.page-login__btn-secondary {
  padding: 15px 30px;
  border-radius: 5px;
  font-size: 1.1em;
  font-weight: bold;
  text-decoration: none;
  transition: all 0.3s ease;
  box-sizing: border-box;
  white-space: normal;
  word-wrap: break-word;
  text-align: center;
}

.page-login__btn-primary {
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button gradient */
  color: #7A0E0E; /* Deep Red */
  border: 2px solid transparent;
}

.page-login__btn-primary:hover {
  background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%); /* Invert gradient on hover */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

.page-login__btn-secondary {
  background-color: transparent;
  color: #F4D34D; /* Gold */
  border: 2px solid #F4D34D; /* Gold Border */
}

.page-login__btn-secondary:hover {
  background-color: #F4D34D; /* Gold */
  color: #7A0E0E; /* Deep Red */
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

/* General image and container responsiveness */
.page-login img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Responsive Styles */
@media (max-width: 1024px) {
  .page-login__main-title {
    font-size: clamp(2em, 5vw, 2.8em);
  }

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

  .page-login__hero-image-wrapper {
    max-height: 400px;
  }
}

@media (max-width: 768px) {
  /* HERO 主图区域 */
  .page-login__hero-section {
    padding-top: 10px !important; /* Small top padding, relying on shared for body padding */
    padding-bottom: 20px;
  }
  .page-login__main-title {
    font-size: clamp(1.8em, 6vw, 2.5em) !important;
  }
  .page-login__hero-description {
    font-size: 1em !important;
  }

  /* 其他内容模块 - 通用容器 padding */
  .page-login__container,
  .page-login__form,
  .page-login__dark-section {
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 通用图片与容器 */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }

  /* 按钮与按钮容器 */
  .page-login__cta-buttons {
    flex-direction: column !important;
    gap: 15px !important;
    padding-left: 15px !important;
    padding-right: 15px !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
  }

  .page-login__submit-button,
  .page-login__btn-primary,
  .page-login__btn-secondary,
  .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;
  }

  /* 产品展示图区域 (Benefits Grid acts as a content grid) */
  .page-login__benefits-grid {
    grid-template-columns: 1fr !important;
    gap: 20px !important;
  }

  .page-login__benefit-card {
    padding: 20px !important;
  }

  .page-login__hero-image-wrapper {
    max-height: 300px !important;
  }

  .page-login__section-title {
    font-size: 1.8em !important;
  }

  .page-login__section-description {
    font-size: 0.9em !important;
  }

  .page-login__form-input {
    padding: 10px 8px !important;
  }

  .page-login__submit-button {
    font-size: 1.1em !important;
  }

  .page-login__register-text, .page-login__forgot-password {
    font-size: 0.9em !important;
  }
}