:root {
    --main-color: #11A84E;
    --accent-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg-color: #11271B;
    --background-color: #08160F;
    --text-main-color: #F2FFF6;
    --text-secondary-color: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

/* Base styles for the login page content */
.page-login {
    background-color: var(--background-color); /* #08160F */
    color: var(--text-main-color); /* #F2FFF6 */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 50px; /* Add some padding at the bottom */
}

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

/* Section titles */
.page-login__section-title {
    font-size: 2.5em;
    color: var(--gold-color); /* #F2C14E */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
    letter-spacing: 0.5px;
}

/* Section descriptions */
.page-login__section-description {
    font-size: 1.1em;
    color: var(--text-secondary-color); /* #A7D9B8 */
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 40px;
    overflow: hidden; /* Ensure no overflow from image */
}

.page-login__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 30px;
}

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

.page-login__hero-content {
    text-align: center;
    max-width: 900px;
    padding: 0 20px;
}

.page-login__hero-title {
    font-size: clamp(2.2em, 4vw, 3.5em); /* Responsive font size for H1 */
    color: var(--text-main-color); /* #F2FFF6 */
    margin-bottom: 15px;
    font-weight: bold;
    line-height: 1.2;
}

.page-login__hero-description {
    font-size: 1.2em;
    color: var(--text-secondary-color); /* #A7D9B8 */
    margin-bottom: 30px;
}

.page-login__hero-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

/* Buttons */
.page-login__btn-primary,
.page-login__btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure button responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    text-align: center;
}

.page-login__btn-primary {
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-login__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
    opacity: 0.9;
}

.page-login__btn-secondary {
    background-color: transparent;
    color: var(--text-main-color); /* #F2FFF6 */
    border: 2px solid var(--border-color); /* #2E7A4E */
}

.page-login__btn-secondary:hover {
    background-color: var(--deep-green-color); /* #0A4B2C */
    color: #ffffff;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Dark section styling */
.page-login__dark-section {
    background-color: var(--card-bg-color); /* #11271B */
    padding: 60px 0;
}

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

.page-login__benefit-card {
    background-color: var(--card-bg-color); /* #11271B */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color); /* #2E7A4E */
    color: var(--text-main-color); /* #F2FFF6 */
}

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

.page-login__benefit-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block; /* Ensure it behaves as a block element */
}

.page-login__card-title {
    font-size: 1.5em;
    color: var(--gold-color); /* #F2C14E */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-login__card-text {
    font-size: 1em;
    color: var(--text-secondary-color); /* #A7D9B8 */
}

/* Login Guide Section */
.page-login__login-guide-section {
    padding: 60px 0;
    background-color: var(--background-color); /* #08160F */
}

.page-login__guide-steps {
    display: flex;
    flex-direction: column;
    gap: 40px;
}

.page-login__guide-step {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background-color: var(--card-bg-color); /* #11271B */
    border-radius: 10px;
    padding: 30px;
    border: 1px solid var(--border-color); /* #2E7A4E */
    color: var(--text-main-color); /* #F2FFF6 */
}

.page-login__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--glow-color); /* #57E38D */
    background-color: var(--deep-green-color); /* #0A4B2C */
    border-radius: 50%;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    box-shadow: 0 0 15px rgba(87, 227, 141, 0.3);
}

.page-login__step-title {
    font-size: 1.8em;
    color: var(--gold-color); /* #F2C14E */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-login__step-text {
    font-size: 1.1em;
    color: var(--text-secondary-color); /* #A7D9B8 */
    margin-bottom: 20px;
    max-width: 700px;
}

.page-login__step-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border: 1px solid var(--border-color); /* #2E7A4E */
}

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

.page-login__trouble-card {
    background-color: var(--card-bg-color); /* #11271B */
    border-radius: 10px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color); /* #2E7A4E */
    color: var(--text-main-color); /* #F2FFF6 */
}

.page-login__trouble-card .page-login__card-title {
    color: var(--gold-color); /* #F2C14E */
}

.page-login__text-link {
    color: var(--glow-color); /* #57E38D */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-login__text-link:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* Security Section */
.page-login__security-section {
    padding: 60px 0;
    background-color: var(--background-color); /* #08160F */
}

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

.page-login__feature-item {
    background-color: var(--card-bg-color); /* #11271B */
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    border: 1px solid var(--border-color); /* #2E7A4E */
    color: var(--text-main-color); /* #F2FFF6 */
}

.page-login__feature-icon {
    width: 100px; /* Adjust size for icons */
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-login__feature-title {
    font-size: 1.4em;
    color: var(--gold-color); /* #F2C14E */
    margin-bottom: 10px;
    font-weight: bold;
}

.page-login__feature-text {
    font-size: 1em;
    color: var(--text-secondary-color); /* #A7D9B8 */
}

/* FAQ Section */
.page-login__faq-section {
    padding: 60px 0;
}

.page-login__faq-list {
    max-width: 900px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-login__faq-item {
    background-color: var(--card-bg-color); /* #11271B */
    border-radius: 10px;
    border: 1px solid var(--border-color); /* #2E7A4E */
    color: var(--text-main-color); /* #F2FFF6 */
    overflow: hidden;
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: var(--gold-color); /* #F2C14E */
    cursor: pointer;
    background-color: var(--deep-green-color); /* #0A4B2C */
    border-bottom: 1px solid var(--divider-color); /* #1E3A2A */
    transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
    background-color: var(--main-color); /* #11A84E */
}

.page-login__faq-question::-webkit-details-marker,
.page-login__faq-question::marker {
    display: none;
}

.page-login__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--text-main-color); /* #F2FFF6 */
}

.page-login__faq-answer {
    padding: 20px 25px;
    font-size: 1em;
    color: var(--text-secondary-color); /* #A7D9B8 */
    line-height: 1.7;
}

/* CTA Section */
.page-login__cta-section {
    padding: 60px 0;
    text-align: center;
    background-color: var(--background-color); /* #08160F */
}

.page-login__cta-section .page-login__container.page-login__card {
    background-color: var(--card-bg-color); /* #11271B */
    border: 1px solid var(--border-color); /* #2E7A4E */
    padding: 40px 30px;
    border-radius: 10px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.3);
}

.page-login__cta-section .page-login__section-title {
    color: var(--gold-color); /* #F2C14E */
}

.page-login__cta-section .page-login__section-description {
    color: var(--text-secondary-color); /* #A7D9B8 */
}

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

.page-login__copyright {
    text-align: center;
    padding: 20px;
    font-size: 0.9em;
    color: var(--text-secondary-color); /* #A7D9B8 */
    background-color: var(--card-bg-color); /* #11271B */
    border-top: 1px solid var(--divider-color); /* #1E3A2A */
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-login__hero-title {
        font-size: clamp(2em, 4.5vw, 3em);
    }
    .page-login__hero-description {
        font-size: 1.1em;
    }
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__section-description {
        font-size: 1em;
    }
}

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

    /* Images responsiveness */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-login__hero-section,
    .page-login__hero-image-wrapper,
    .page-login__benefits-section,
    .page-login__login-guide-section,
    .page-login__troubleshooting-section,
    .page-login__security-section,
    .page-login__faq-section,
    .page-login__cta-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Hero section */
    .page-login__hero-section {
        padding-top: 10px !important; /* body handles header offset */
        padding-bottom: 30px;
    }
    .page-login__hero-image-wrapper {
        margin-bottom: 20px;
    }
    .page-login__hero-title {
        font-size: clamp(1.8em, 7vw, 2.5em);
    }
    .page-login__hero-description {
        font-size: 0.95em;
    }
    .page-login__hero-cta-buttons,
    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .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;
        padding-right: 15px;
    }

    /* Sections */
    .page-login__dark-section,
    .page-login__login-guide-section,
    .page-login__security-section,
    .page-login__faq-section,
    .page-login__cta-section {
        padding-top: 40px;
        padding-bottom: 40px;
    }

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

    /* Benefits grid */
    .page-login__benefits-grid,
    .page-login__troubleshooting-grid,
    .page-login__security-features {
        grid-template-columns: 1fr;
    }

    .page-login__benefit-image {
        height: 180px;
    }

    /* Login Guide */
    .page-login__guide-step {
        padding: 20px;
    }
    .page-login__step-number {
        width: 50px;
        height: 50px;
        font-size: 2em;
    }
    .page-login__step-title {
        font-size: 1.5em;
    }
    .page-login__step-text {
        font-size: 0.95em;
    }

    /* FAQ */
    .page-login__faq-question {
        padding: 15px 20px;
        font-size: 1.1em;
    }
    .page-login__faq-answer {
        padding: 15px 20px;
        font-size: 0.95em;
    }

    /* CTA Section */
    .page-login__cta-section .page-login__container.page-login__card {
        padding: 30px 20px;
    }
}

@media (max-width: 480px) {
    .page-login__hero-title {
        font-size: clamp(1.6em, 8vw, 2.2em);
    }
    .page-login__section-title {
        font-size: 1.6em;
    }
}