/* style/login.css */
/* Base styles for the login page */
.page-login {
  font-family: 'Arial', sans-serif;
  color: #FFF5E1; /* Text Main */
  background: #B71C1C; /* Background */
  line-height: 1.6;
}

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

/* Hero Section - Specific for Login Page */
.page-login__hero-section {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 60px 20px;
  /* \uD83D\uDEA8 页头由 shared 的 body { padding-top: var(--header-offset); } 承担；此处仅用小额顶距，禁止 var(--header-offset) 以免双倍空白 */
  padding-top: 10px; /* Adhering to the 8-16px rule for non-homepage hero */
  padding-bottom: 40px;
  background: linear-gradient(180deg, #C91F17 0%, #7A0E0E 100%); /* Deep Red with primary */
  color: #FFF5E1; /* Text Main */
}

.page-login__hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.page-login__hero-image {
  width: 100%;
  margin-bottom: 30px;
}

.page-login__hero-image img {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  border-radius: 8px;
  object-fit: cover;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-login__hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
}

.page-login__hero-content h1 {
  /* No fixed font-size for H1 */
  font-weight: bold;
  line-height: 1.2;
  margin-bottom: 15px;
  color: #FFCC66; /* Glow */
  text-shadow: 0 0 10px rgba(255, 204, 102, 0.5);
}

.page-login__hero-content p {
  font-size: 1.1em;
  max-width: 800px;
  margin: 0 auto 20px;
}

/* Section Titles */
.page-login__section-title {
  text-align: center;
  font-size: 2.2em;
  margin-bottom: 40px;
  color: #FFCC66; /* Glow */
  font-weight: bold;
  text-shadow: 0 0 8px rgba(255, 204, 102, 0.4);
}

/* Login Form Section */
.page-login__form-section {
  padding: 60px 20px;
  background: #B71C1C; /* Background */
  color: #FFF5E1; /* Text Main */
}

.page-login__login-form {
  max-width: 500px;
  margin: 0 auto;
  background: #D32F2F; /* Card BG */
  padding: 40px;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4);
  border: 2px solid #F2B544; /* Border */
}

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

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

.page-login__form-input {
  width: 100%;
  padding: 15px;
  border: 1px solid #F2B544; /* Border */
  border-radius: 8px;
  background: #7A0E0E; /* Deep Red */
  color: #FFF5E1; /* Text Main */
  font-size: 1em;
  box-sizing: border-box;
}

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

.page-login__password-wrapper {
  position: relative;
}

.page-login__toggle-password {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);\n  cursor: pointer;
  color: #F4D34D; /* Gold */
  font-size: 1.2em;
}

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

.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 */
}

.page-login__forgot-password {
  color: #F4D34D; /* Gold */
  text-decoration: none;
  transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
  color: #FFCC66; /* Glow */
  text-decoration: underline;
}

/* Buttons */
.page-login__btn-primary {
  display: block;
  width: 100%;
  padding: 18px;
  background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button gradient */
  color: #7A0E0E; /* Deep Red for contrast */
  text-align: center;
  border: none;
  border-radius: 8px;
  font-size: 1.2em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  text-decoration: none; /* For link-buttons */
  box-sizing: border-box; /* Ensure padding and border are included in width */
}

.page-login__btn-primary:hover {
  background: linear-gradient(180deg, #FFE899 0%, #FFD86A 100%); /* Lighter gradient on hover */
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-login__btn-secondary {
  display: inline-block;
  padding: 12px 25px;
  background: #F4D34D; /* Gold */
  color: #7A0E0E; /* Deep Red */
  text-align: center;
  border: 2px solid #F2B544; /* Border */
  border-radius: 8px;
  font-size: 1em;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  box-sizing: border-box;
}

.page-login__btn-secondary:hover {
  background: #FFCC66; /* Glow */
  color: #B71C1C; /* Background */
  border-color: #FFCC66;
}

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

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

.page-login__register-link:hover {
  color: #FFCC66; /* Glow */
  text-decoration: underline;
}

/* Security Section */
.page-login__security-section {
  padding: 60px 20px;
  background: #7A0E0E; /* Deep Red */
  color: #FFF5E1; /* Text Main */
}

.page-login__security-content {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.page-login__security-image {
  flex-shrink: 0;
  width: 400px; /* Base width */
  height: 300px; /* Base height */
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

.page-login__security-text p {
  margin-bottom: 20px;
  font-size: 1.05em;
}

/* Support CTA Section */
.page-login__support-cta-section {
  padding: 60px 20px;
  background: #B71C1C; /* Background */
  color: #FFF5E1; /* Text Main */
}

.page-login__support-flex {
  display: flex;
  align-items: center;
  gap: 40px;
  max-width: 1000px;
  margin: 0 auto;
}

.page-login__support-info {
  flex: 1;
}

.page-login__support-info p {
  margin-bottom: 25px;
  font-size: 1.05em;
}

.page-login__support-image {
  flex-shrink: 0;
  width: 400px; /* Base width */
  height: 300px; /* Base height */
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
}

/* --- Responsive Design --- */
@media (max-width: 1024px) {
  .page-login__hero-content h1 {
    font-size: 2.5em;
  }
  .page-login__section-title {
    font-size: 2em;
  }
  .page-login__security-content,
  .page-login__support-flex {
    flex-direction: column;
    text-align: center;
  }
  .page-login__security-image,
  .page-login__support-image {
    width: 80%;
    height: auto;
    margin-bottom: 30px;
  }
  .page-login__support-info {
    order: 2; /* Put text below image on smaller screens for support section */
  }
}

@media (max-width: 768px) {
  .page-login__hero-section {
    padding-top: 10px !important; /* Mobile small top padding */
    padding-bottom: 30px;
    padding-left: 15px;
    padding-right: 15px;
  }

  .page-login__hero-content h1 {
    font-size: 2em;
    margin-bottom: 10px;
  }
  .page-login__hero-content p {
    font-size: 1em;
  }

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

  .page-login__form-section,
  .page-login__security-section,
  .page-login__support-cta-section {
    padding: 40px 15px;
  }

  .page-login__login-form {
    padding: 25px;
  }

  .page-login__form-label {
    font-size: 1em;
    margin-bottom: 8px;
  }

  .page-login__form-input {
    padding: 12px;
    font-size: 0.95em;
  }

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

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

  /* Specific image overrides for mobile */
  .page-login img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
  
  .page-login__hero-image img,
  .page-login__security-image,
  .page-login__support-image {
    width: 100% !important;
    height: auto !important;
  }

  /* Ensure containers containing images/buttons are responsive */
  .page-login__section,
  .page-login__card,
  .page-login__container,
  .page-login__login-form,
  .page-login__security-content,
  .page-login__support-flex {
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding-left: 15px;
    padding-right: 15px;
  }
  
  .page-login__security-text,
  .page-login__support-info {
    padding-left: 0;
    padding-right: 0;
  }
}

@media (max-width: 480px) {
  .page-login__hero-content h1 {
    font-size: 1.7em;
  }
  .page-login__section-title {
    font-size: 1.5em;
  }
  .page-login__btn-primary {
    font-size: 1.1em;
    padding: 15px;
  }
  .page-login__btn-secondary {
    font-size: 0.9em;
    padding: 10px 20px;
  }
}