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

.page-login {
    font-family: Arial, sans-serif;
    color: var(--text-main); /* Default text color for dark background */
    background-color: var(--background-color-page); /* Assumed body background */
}

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

.page-login__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles --header-offset */
    background-color: var(--background-color-page);
    overflow: hidden;
}

.page-login__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    margin-bottom: 20px;
}

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

.page-login__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.4); /* Slightly dark overlay for readability */
    border-radius: 12px;
}

.page-login__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem);
    font-weight: bold;
    color: var(--gold-color);
    margin-bottom: 15px;
    line-height: 1.2;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.6);
}

.page-login__description {
    font-size: 1.1rem;
    color: var(--text-main);
    line-height: 1.6;
    margin-bottom: 30px;
}

.page-login__cta-buttons {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.page-login__btn-primary,
.page-login__btn-secondary {
    display: inline-block;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-sizing: border-box;
}

.page-login__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: 2px solid var(--deep-green-color);
    box-shadow: 0 4px 15px rgba(17, 168, 78, 0.4);
}

.page-login__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(17, 168, 78, 0.6);
}

.page-login__btn-secondary {
    background-color: transparent;
    color: var(--glow-color);
    border: 2px solid var(--glow-color);
}

.page-login__btn-secondary:hover {
    background-color: var(--glow-color);
    color: var(--background-color-page);
    transform: translateY(-3px);
}

.page-login__section-title {
    font-size: clamp(1.8rem, 3.5vw, 2.8rem);
    font-weight: bold;
    text-align: center;
    margin-bottom: 25px;
    color: var(--gold-color);
    line-height: 1.3;
}

.page-login__section-description {
    font-size: 1rem;
    text-align: center;
    margin-bottom: 40px;
    line-height: 1.6;
    color: var(--text-secondary);
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

/* Light background sections */
.page-login__light-bg {
    background-color: #ffffff;
    color: #333333; /* Deep dark text for contrast on light background */
    padding: 60px 0;
}

.page-login__light-bg .page-login__section-title,
.page-login__light-bg .page-login__section-description,
.page-login__light-bg .page-login__form-label,
.page-login__light-bg .page-login__forgot-password,
.page-login__light-bg .page-login__remember-me,
.page-login__light-bg .page-login__no-account-text,
.page-login__light-bg .page-login__register-link,
.page-login__light-bg .page-login__troubleshoot-title,
.page-login__light-bg .page-login__troubleshoot-text,
.page-login__light-bg .page-login__troubleshoot-link,
.page-login__light-bg .page-login__security-title,
.page-login__light-bg .page-login__security-text {
    color: #333333; /* Ensure deep dark text on light background */
}

.page-login__light-bg .page-login__section-title {
    color: var(--deep-green-color); /* Use a dark brand color for titles on light bg */
}

.page-login__light-bg .page-login__troubleshoot-link,
.page-login__light-bg .page-login__register-link,
.page-login__light-bg .page-login__btn-secondary {
    color: var(--deep-green-color);
}

.page-login__light-bg .page-login__btn-secondary:hover {
    background-color: var(--deep-green-color);
    color: #ffffff;
}

/* Dark background sections */
.page-login__dark-bg {
    background-color: var(--background-color-page);
    color: var(--text-main);
    padding: 60px 0;
}

.page-login__dark-bg .page-login__section-title {
    color: var(--gold-color);
}

.page-login__dark-bg .page-login__section-description {
    color: var(--text-secondary);
}

/* Login Form Section */
.page-login__login-form {
    max-width: 450px;
    margin: 0 auto;
    background-color: #ffffff;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

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

.page-login__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: #333333;
}

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 1rem;
    box-sizing: border-box;
    color: #333333;
}

.page-login__form-input::placeholder {
    color: #999999;
}

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

.page-login__forgot-password {
    color: var(--deep-green-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

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

.page-login__remember-me {
    color: #333333;
    display: flex;
    align-items: center;
    gap: 5px;
}

.page-login__submit-button {
    width: 100%;
    cursor: pointer;
    border: none;
}

.page-login__no-account-text {
    text-align: center;
    margin-top: 25px;
    font-size: 1rem;
    color: #333333;
}

.page-login__register-link {
    color: var(--deep-green-color);
    text-decoration: none;
    font-weight: bold;
}

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

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

.page-login__benefit-card {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
}

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

.page-login__benefit-icon {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-login__benefit-title {
    font-size: 1.5rem;
    font-weight: bold;
    color: var(--glow-color);
    margin-bottom: 10px;
}

.page-login__benefit-description {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

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

.page-login__troubleshoot-card {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}

.page-login__troubleshoot-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--deep-green-color);
    margin-bottom: 15px;
}

.page-login__troubleshoot-text {
    font-size: 0.95rem;
    color: #555555;
    line-height: 1.6;
    margin-bottom: 20px;
}

.page-login__troubleshoot-link {
    display: inline-block;
    color: var(--deep-green-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-login__troubleshoot-link:hover {
    text-decoration: underline;
    color: #13994A;
}

/* CTA Register Section */
.page-login__cta-register-section {
    text-align: center;
    position: relative;
    overflow: hidden;
}

.page-login__cta-register-section .page-login__section-description {
    margin-bottom: 30px;
}

.page-login__register-image {
    width: 100%;
    max-width: 800px;
    height: auto;
    display: block;
    margin: 40px auto 0;
    border-radius: 12px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.4);
    object-fit: cover;
}

/* Security Section */
.page-login__security-features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-login__security-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    border: 1px solid #e0e0e0;
}

.page-login__security-icon {
    width: 100%;
    max-width: 150px;
    height: auto;
    margin: 0 auto 20px;
    display: block;
    object-fit: contain;
}

.page-login__security-title {
    font-size: 1.4rem;
    font-weight: bold;
    color: var(--deep-green-color);
    margin-bottom: 10px;
}

.page-login__security-text {
    font-size: 0.95rem;
    color: #555555;
    line-height: 1.6;
}

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

.page-login__faq-item {
    background-color: var(--card-bg);
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid var(--divider-color);
    overflow: hidden;
}

.page-login__faq-item summary {
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1rem;
    color: var(--text-main);
    background-color: var(--deep-green-color);
    border-radius: 10px;
    transition: background-color 0.3s ease;
}

.page-login__faq-item summary:hover {
    background-color: #13994A;
}

.page-login__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-login__faq-qtext {
    flex-grow: 1;
    color: var(--text-main);
}

.page-login__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: var(--glow-color);
}

.page-login__faq-item[open] .page-login__faq-toggle {
    content: '−';
}

.page-login__faq-answer {
    padding: 20px 25px;
    background-color: var(--card-bg);
    border-top: 1px solid var(--divider-color);
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.7;
}

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

    .page-login__section-title {
        font-size: clamp(1.6rem, 4vw, 2.5rem);
    }
}

@media (max-width: 768px) {
    .page-login {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-login__container {
        padding: 0 15px;
    }

    .page-login__hero-section,
    .page-login__light-bg,
    .page-login__dark-bg {
        padding: 40px 0;
    }

    .page-login__hero-content {
        padding: 15px;
    }

    .page-login__main-title {
        font-size: clamp(1.8rem, 6vw, 2.5rem);
    }

    .page-login__description {
        font-size: 1rem;
    }

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

    .page-login__btn-primary,
    .page-login__btn-secondary {
        width: 100% !important; /* Force full width on mobile */
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1rem;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }
    
    .page-login__login-form {
        padding: 30px 20px;
    }

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

    .page-login__benefits-grid,
    .page-login__troubleshoot-grid,
    .page-login__security-features {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-login__benefit-icon,
    .page-login__security-icon {
        max-width: 120px;
    }
    
    .page-login__register-image {
        max-width: 100%;
        margin-left: auto;
        margin-right: auto;
    }
    
    /* Mobile image responsiveness */
    .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__hero-image-wrapper,
    .page-login__benefits-card,
    .page-login__troubleshoot-card,
    .page-login__security-item,
    .page-login__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-login__hero-section {
        padding-top: 10px !important; /* body already handles --header-offset */
    }
    
    /* Button container specific for mobile */
    .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;
    }

    .page-login__faq-item summary {
        font-size: 1rem;
        padding: 15px 20px;
    }

    .page-login__faq-answer {
        padding: 15px 20px;
    }
}

@media (max-width: 480px) {
    .page-login__main-title {
        font-size: clamp(1.6rem, 7vw, 2.2rem);
    }

    .page-login__section-title {
        font-size: clamp(1.4rem, 6vw, 2rem);
    }

    .page-login__hero-section,
    .page-login__light-bg,
    .page-login__dark-bg {
        padding: 30px 0;
    }

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