/* General Styling for .page-login */
.page-login {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #FFF6D6; /* Main text color for dark body background */
    background: #0A0A0A; /* Body background color */
}

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

.page-login__section-title {
    font-size: 36px;
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #FFD36B; /* Auxiliary color for titles */
    text-shadow: 0 0 8px rgba(255, 211, 107, 0.5); /* Glow effect */
}

.page-login__section-intro {
    font-size: 18px;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #FFF6D6;
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    margin-bottom: 60px;
    overflow: hidden;
}

.page-login__hero-image-wrapper {
    position: relative;
    width: 100%;
    height: 600px; /* Fixed height for desktop hero */
    overflow: hidden;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-login__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover for desktop */
    display: block;
}

.page-login__hero-content {
    position: relative;
    max-width: 900px;
    margin: 40px auto 0 auto; /* Margin after image */
    text-align: center;
    padding: 0 15px;
    box-sizing: border-box;
}

.page-login__main-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    color: #F2C14E; /* Main brand color for H1 */
    text-shadow: 0 0 15px rgba(242, 193, 78, 0.7);
    line-height: 1.2;
}

.page-login__description {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

.page-login__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

/* Buttons */
.page-login__btn-primary,
.page-login__btn-secondary,
.page-login__btn-submit {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 18px;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-login__btn-primary,
.page-login__btn-submit {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #FFF6D6;
    border: none;
    box-shadow: 0 4px 15px rgba(242, 193, 78, 0.4);
}

.page-login__btn-primary:hover,
.page-login__btn-submit:hover {
    background: linear-gradient(180deg, #FFE080 0%, #E8AD2A 100%);
    box-shadow: 0 6px 20px rgba(242, 193, 78, 0.6);
    transform: translateY(-2px);
}

.page-login__btn-secondary {
    background: transparent;
    color: #F2C14E;
    border: 2px solid #F2C14E;
    box-shadow: 0 4px 10px rgba(242, 193, 78, 0.2);
}

.page-login__btn-secondary:hover {
    background: rgba(242, 193, 78, 0.1);
    color: #FFD36B;
    border-color: #FFD36B;
    box-shadow: 0 6px 15px rgba(242, 193, 78, 0.4);
    transform: translateY(-2px);
}

.page-login__btn-large {
    min-width: 250px;
}

/* Form Section */
.page-login__form-section {
    background: #111111; /* Card BG */
    padding: 60px 0;
    margin-bottom: 60px;
}

.page-login__login-form {
    max-width: 500px;
    margin: 40px auto;
    padding: 40px;
    background: #0A0A0A; /* Deeper dark background for form */
    border-radius: 10px;
    border: 1px solid #3A2A12; /* Border */
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
}

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

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

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #3A2A12;
    border-radius: 5px;
    background: #111111;
    color: #FFF6D6;
    font-size: 16px;
    box-sizing: border-box;
}

.page-login__form-input::placeholder {
    color: rgba(255, 246, 214, 0.5);
}

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

.page-login__checkbox-group {
    display: flex;
    align-items: center;
}

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

.page-login__checkbox-label {
    font-size: 15px;
    color: #FFF6D6;
}

.page-login__forgot-password {
    font-size: 15px;
    color: #F2C14E;
    text-decoration: none;
}

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

.page-login__register-text {
    text-align: center;
    margin-top: 30px;
    font-size: 16px;
    color: #FFF6D6;
}

.page-login__register-link {
    color: #F2C14E;
    text-decoration: none;
    font-weight: 600;
}

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

/* Benefits Section */
.page-login__benefits-section {
    padding: 60px 0;
    margin-bottom: 60px;
    background: #0A0A0A; /* Deeper dark background */
}

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

.page-login__benefit-card {
    background: #111111; /* Card BG */
    border: 1px solid #3A2A12;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: #FFF6D6;
}

.page-login__benefit-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(242, 193, 78, 0.2);
}

.page-login__benefit-icon {
    width: 200px;
    height: auto;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 5px;
}

.page-login__card-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #F2C14E;
}

.page-login__card-text {
    font-size: 16px;
    color: #FFF6D6;
}

/* Guide Section */
.page-login__guide-section {
    background: #111111; /* Card BG */
    padding: 60px 0;
    margin-bottom: 60px;
}

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

.page-login__step-card {
    background: #0A0A0A;
    border: 1px solid #3A2A12;
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: #FFF6D6;
}

.page-login__step-number {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    width: 60px;
    height: 60px;
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #0A0A0A;
    border-radius: 50%;
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 20px;
    box-shadow: 0 0 10px rgba(242, 193, 78, 0.7);
}

.page-login__step-title {
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #F2C14E;
}

.page-login__step-text {
    font-size: 16px;
    color: #FFF6D6;
}

.page-login__guide-note {
    text-align: center;
    margin-top: 40px;
    font-size: 16px;
    color: #FFF6D6;
}

/* Troubleshooting Section */
.page-login__troubleshooting-section {
    padding: 60px 0;
    margin-bottom: 60px;
    background: #0A0A0A; /* Deeper dark background */
}

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

.page-login__trouble-card {
    background: #111111; /* Card BG */
    border: 1px solid #3A2A12;
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: #FFF6D6;
}

.page-login__trouble-card .page-login__card-title {
    color: #F2C14E;
}

.page-login__trouble-cta {
    text-align: center;
    margin-top: 40px;
    font-size: 16px;
    color: #FFF6D6;
}

.page-login__contact-link {
    color: #F2C14E;
    text-decoration: none;
    font-weight: 600;
}

.page-login__contact-link:hover {
    text-decoration: underline;
    color: #FFD36B;
}

/* Security Section */
.page-login__security-section {
    background: #111111; /* Card BG */
    padding: 60px 0;
    margin-bottom: 60px;
}

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

.page-login__tip-item {
    background: #0A0A0A;
    border: 1px solid #3A2A12;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    color: #FFF6D6;
}

.page-login__tip-icon {
    width: 200px;
    height: auto;
    object-fit: contain;
    margin-bottom: 15px;
    border-radius: 5px;
}

.page-login__tip-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 10px;
    color: #F2C14E;
}

.page-login__tip-text {
    font-size: 15px;
    color: #FFF6D6;
}

/* FAQ Section */
.page-login__faq-section {
    padding: 60px 0;
    margin-bottom: 60px;
    background: #0A0A0A; /* Deeper dark background */
}

.page-login__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

details.page-login__faq-item {
  margin-bottom: 15px;
  border-radius: 10px;
  border: 1px solid #3A2A12;
  overflow: hidden;
  background: #111111; /* Card BG */
  color: #FFF6D6;
}
details.page-login__faq-item summary.page-login__faq-question {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 20px;
  cursor: pointer;
  user-select: none;
  list-style: none;
  transition: background-color 0.3s ease;
  color: #F2C14E;
}
details.page-login__faq-item summary.page-login__faq-question::-webkit-details-marker {
  display: none;
}
details.page-login__faq-item summary.page-login__faq-question:hover {
  background: rgba(242, 193, 78, 0.1);
}
.page-login__faq-qtext {
  flex: 1;
  font-size: 18px;
  font-weight: 600;
  line-height: 1.5;
  text-align: left;
  color: #F2C14E;
}
.page-login__faq-toggle {
  font-size: 28px;
  font-weight: bold;
  color: #FFD36B;
  flex-shrink: 0;
  margin-left: 15px;
  width: 30px;
  text-align: center;
}
details.page-login__faq-item .page-login__faq-answer {
  padding: 0 20px 20px;
  background: #0A0A0A; /* Deeper dark for answer background */
  border-radius: 0 0 10px 10px;
  color: #FFF6D6;
}
.page-login__faq-answer p {
    margin: 0;
    font-size: 16px;
    line-height: 1.7;
}


/* Final CTA Section */
.page-login__cta-final-section {
    background: #111111; /* Card BG */
    padding: 80px 0;
    text-align: center;
}

.page-login__cta-final-section .page-login__section-title {
    margin-bottom: 15px;
}

.page-login__cta-final-section .page-login__section-intro {
    margin-bottom: 50px;
}

.page-login__cta-final-section .page-login__cta-buttons {
    gap: 25px;
}

/* Images General */
.page-login img {
    max-width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Default for content images */
}

/* --- Responsive Design --- */

/* Mobile (max-width: 768px) */
@media (max-width: 768px) {
    .page-login__container {
        padding: 15px;
    }

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

    .page-login__section-intro {
        font-size: 16px;
        margin-bottom: 30px;
    }

    /* HERO 主图区域 */
    .page-login__hero-section {
        padding-top: 10px;
        margin-bottom: 40px;
    }

    .page-login__hero-image-wrapper {
        height: 250px; /* Smaller height for mobile hero */
    }

    .page-login__hero-image {
        object-fit: contain !important;
        aspect-ratio: unset !important;
        width: 100% !important;
        height: auto !important;
    }

    .page-login__hero-content {
        margin-top: 30px;
        padding: 0 10px;
    }

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

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

    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* 按钮与按钮容器 */
    .page-login__btn-primary,
    .page-login__btn-secondary,
    .page-login__btn-submit,
    .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;
      padding-right: 15px;
      font-size: 16px;
      padding: 12px 20px;
    }
    
    .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;
      flex-direction: column;
    }

    /* Form Section */
    .page-login__form-section {
        padding: 40px 0;
        margin-bottom: 40px;
    }
}