.page-login {
    font-family: Arial, sans-serif;
    color: #F2FFF6; /* Text Main - contrasting with #08160F body background */
    background-color: #08160F; /* Background */
    line-height: 1.6;
}

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

.page-login__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 10px 0 60px; /* Small top padding, more bottom padding */
    background-color: #08160F; /* Match body background */
    overflow: hidden; /* Ensure content doesn't overflow */
}

.page-login__hero-image {
    width: 100%;
    height: auto;
    max-width: 1920px; /* Max width for hero image */
    object-fit: cover;
    display: block;
}

.page-login__hero-content {
    text-align: center;
    padding: 30px 20px;
    background-color: rgba(17, 39, 27, 0.8); /* Card BG with transparency for overlay effect, but not overlapping image */
    width: 100%;
    max-width: 800px;
    margin-top: -80px; /* Pull up slightly over the image for visual flow */
    position: relative;
    z-index: 1;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-login__main-title {
    font-size: clamp(2em, 5vw, 3.5em); /* Responsive font size */
    color: #F2FFF6; /* Text Main */
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__hero-description {
    font-size: clamp(1em, 2vw, 1.2em);
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.page-login__cta-buttons {
    display: flex;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;
    gap: 20px;
    margin-top: 20px;
}

.page-login__btn-primary,
.page-login__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    text-align: center;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons don't overflow */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-login__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button color */
    color: #F2FFF6; /* Text Main */
    border: none;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-login__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.3);
}

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

.page-login__btn-secondary:hover {
    background-color: #2AD16F;
    color: #F2FFF6; /* Text Main */
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-login__section-title {
    font-size: clamp(1.8em, 4vw, 2.5em);
    color: #F2FFF6; /* Text Main */
    text-align: center;
    margin-bottom: 40px;
    margin-top: 60px;
    position: relative;
    padding-bottom: 10px;
}

.page-login__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #2AD16F; /* Primary brand color */
    border-radius: 2px;
}

.page-login__text-block {
    font-size: 1em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 20px;
    text-align: justify;
}

.page-login__introduction-section,
.page-login__guide-section,
.page-login__troubleshooting-section,
.page-login__features-section,
.page-login__security-tips-section,
.page-login__faq-section {
    padding: 40px 0;
    background-color: #08160F; /* Background */
}

.page-login__guide-list,
.page-login__troubleshoot-list,
.page-login__security-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.page-login__guide-item,
.page-login__troubleshoot-item,
.page-login__security-item {
    background-color: #11271B; /* Card BG */
    border-left: 5px solid #2AD16F; /* Primary brand color */
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-login__guide-step-title,
.page-login__troubleshoot-heading,
.page-login__security-heading {
    color: #F2FFF6; /* Text Main */
    font-size: 1.3em;
    margin-top: 0;
    margin-bottom: 15px;
}

.page-login__guide-item p,
.page-login__troubleshoot-item p,
.page-login__security-item p {
    color: #A7D9B8; /* Text Secondary */
    font-size: 0.95em;
    line-height: 1.7;
}

.page-login__image-wrapper {
    text-align: center;
    margin: 40px 0;
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
}

.page-login__content-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: block; /* Ensure it behaves as a block element for max-width */
    margin: 0 auto; /* Center the image */
}

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

.page-login__card {
    background-color: #11271B; /* Card BG */
    border-radius: 10px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-login__card-image {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 20px;
    object-fit: cover;
    width: 100%; /* Occupy card width */
    min-height: 200px; /* Minimum size */
}

.page-login__card-title {
    color: #F2FFF6; /* Text Main */
    font-size: 1.4em;
    margin-bottom: 10px;
}

.page-login__card-description {
    color: #A7D9B8; /* Text Secondary */
    font-size: 0.95em;
    line-height: 1.6;
}

.page-login__faq-list {
    margin-top: 30px;
}

.page-login__faq-item {
    background-color: #11271B; /* Card BG */
    margin-bottom: 15px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    overflow: hidden; /* For details tag transition */
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    color: #F2FFF6; /* Text Main */
    font-size: 1.1em;
    background-color: #1e3a2a; /* Slightly darker than card for contrast */
    transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
    background-color: #2e7a4e; /* Border color on hover */
}

.page-login__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-login__faq-item[open] .page-login__faq-toggle {
    transform: rotate(45deg); /* Rotate plus to cross */
}

.page-login__faq-answer {
    padding: 0 25px 20px;
    color: #A7D9B8; /* Text Secondary */
    font-size: 0.95em;
    line-height: 1.7;
}

/* Ensure details tag summary styling */
.page-login__faq-item summary {
    list-style: none; /* Remove default marker */
}
.page-login__faq-item summary::-webkit-details-marker {
    display: none; /* For Webkit browsers */
}

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

    .page-login__hero-section {
        padding: 10px 0 40px;
    }

    .page-login__hero-content {
        padding: 20px 15px;
        margin-top: -60px;
    }

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

    .page-login__hero-description {
        font-size: 1em;
    }

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

    .page-login__btn-primary,
    .page-login__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

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

    .page-login__text-block {
        font-size: 0.95em;
    }

    .page-login__guide-item,
    .page-login__troubleshoot-item,
    .page-login__security-item {
        padding: 20px;
    }

    .page-login__guide-step-title,
    .page-login__troubleshoot-heading,
    .page-login__security-heading {
        font-size: 1.2em;
    }

    .page-login__feature-cards {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-login__card-image {
        min-height: 180px; /* Adjust minimum height for mobile */
    }

    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__image-wrapper,
    .page-login__cta-buttons,
    .page-login__button-group,
    .page-login__btn-container,
    .page-login__video-section,
    .page-login__video-container,
    .page-login__video-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }

    .page-login__video-section {
        padding-top: 10px !important;
    }
}

/* Image filter restriction - must not have filter properties */
.page-login img {
    filter: none; /* Ensure no filter is applied */
}

/* Contrast Fixes */
.page-login {
  color: #F2FFF6; /* Deep green background, use light text */
}

.page-login p, .page-login li {
  color: #A7D9B8;
}

.page-login__btn-primary {
  color: #F2FFF6;
}

.page-login__btn-secondary {
  color: #2AD16F;
}

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