/* style/login.css */

/* Base styles for the login page */
.page-login {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css */
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    width: 100%;
    height: 100vh; /* Full viewport height */
    display: flex;
    align-items: center;
    justify-content: center;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    overflow: hidden;
}

.page-login__hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
}

.page-login__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
    display: flex;
    align-items: center;
    justify-content: center;
}

.page-login__hero-content {
    text-align: center;
    color: #ffffff;
    max-width: 500px;
    padding: 30px;
    background: rgba(1, 116, 57, 0.85); /* Brand color with transparency */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-login__hero-title {
    font-size: 2.8em;
    margin-bottom: 15px;
    color: #FFFF00; /* Custom font color for login section */
    line-height: 1.2;
}

.page-login__hero-description {
    font-size: 1.1em;
    margin-bottom: 30px;
}

/* Login Form */
.page-login__form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.page-login__form-group {
    text-align: left;
}

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

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #005a2b;
    border-radius: 5px;
    background-color: #1a1a1a;
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
}

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

.page-login__form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 15px;
}

.page-login__link-forgot {
    color: #FFFF00; /* Custom font color for login section */
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.page-login__link-forgot:hover {
    color: #ffffff;
}

.page-login__register-text {
    margin-top: 20px;
    font-size: 1em;
    color: #ffffff;
}

.page-login__link-register {
    color: #FFFF00; /* Custom font color for login section */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-login__link-register:hover {
    color: #ffffff;
}

/* General Section Styles */
.page-login__content-area {
    max-width: 1200px;
    margin: 0 auto;
    padding: 60px 20px;
    background-color: #121212; /* Match body background for consistency */
    color: #ffffff; /* Ensure text is light on dark background */
}

.page-login__dark-section {
    background-color: #0d0d0d; /* Slightly darker than body for contrast */
    color: #ffffff;
    padding: 60px 20px;
}

.page-login__section-title {
    font-size: 2.2em;
    color: #FFFF00; /* Custom font color for titles */
    text-align: center;
    margin-bottom: 20px;
    line-height: 1.3;
}

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

/* Benefit Cards */
.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: rgba(1, 116, 57, 0.2); /* Semi-transparent brand color */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background 0.3s ease;
    border: 1px solid #005a2b;
}

.page-login__benefit-card:hover {
    transform: translateY(-5px);
    background: rgba(1, 116, 57, 0.4);
}

.page-login__benefit-icon {
    width: 100%;
    max-width: 250px; /* Example size, ensuring it's >200px */
    height: auto;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-login__card-title {
    font-size: 1.5em;
    color: #FFFF00;
    margin-bottom: 15px;
}

.page-login__card-description {
    font-size: 1em;
    color: #e0e0e0;
}

/* Guide Section */
.page-login__guide-steps {
    display: flex;
    flex-direction: column;
    gap: 50px;
    margin-top: 40px;
}

.page-login__step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__step-image {
    width: 100%;
    max-width: 600px; /* Example size, ensuring it's >200px */
    height: auto;
    object-fit: cover;
    margin-bottom: 25px;
    border-radius: 8px;
}

.page-login__step-title {
    font-size: 1.8em;
    color: #FFFF00;
    margin-bottom: 15px;
}

.page-login__step-description {
    font-size: 1.05em;
    color: #e0e0e0;
}

.page-login__tip-text {
    text-align: center;
    margin-top: 40px;
    font-size: 1.1em;
    color: #f0f0f0;
    padding: 20px;
    background: rgba(1, 116, 57, 0.3);
    border-radius: 8px;
    border: 1px solid #005a2b;
}

/* Troubleshooting Section */
.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: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__trouble-icon {
    width: 100%;
    max-width: 250px; /* Example size, ensuring it's >200px */
    height: auto;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-login__contact-support {
    text-align: center;
    margin-top: 50px;
    padding: 30px;
    background: rgba(1, 116, 57, 0.5);
    border-radius: 10px;
    border: 1px solid #005a2b;
}

.page-login__contact-text {
    font-size: 1.1em;
    margin-bottom: 25px;
    color: #f0f0f0;
}

/* Register CTA Section */
.page-login__register-cta-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    background: rgba(1, 116, 57, 0.1);
    border-radius: 10px;
    padding: 40px;
    margin-top: 60px;
    border: 1px solid rgba(1, 116, 57, 0.3);
}

.page-login__register-content {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.page-login__register-image {
    flex-shrink: 0;
    width: 100%;
    max-width: 500px; /* Example size, ensuring it's >200px */
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

/* Download App Section */
.page-login__download-app-section {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
    background: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 40px;
    margin-top: 60px;
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.page-login__download-content {
    flex: 1;
    min-width: 300px;
    text-align: left;
}

.page-login__download-image {
    flex-shrink: 0;
    width: 100%;
    max-width: 500px; /* Example size, ensuring it's >200px */
    height: auto;
    object-fit: cover;
    border-radius: 10px;
}

/* FAQ Section */
.page-login__faq-section {
    margin-top: 60px;
}

.page-login__faq-list {
    margin-top: 40px;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-login__faq-item {
    background: rgba(1, 116, 57, 0.2);
    border-radius: 8px;
    border: 1px solid #005a2b;
    overflow: hidden;
    color: #e0e0e0;
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    color: #FFFF00; /* Custom font color for FAQ questions */
    transition: background-color 0.3s ease;
    list-style: none; /* Remove default marker for details/summary */
}

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

.page-login__faq-item[open] .page-login__faq-question {
    background-color: rgba(1, 116, 57, 0.4);
}

.page-login__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
}

.page-login__faq-answer {
    padding: 0 25px 20px;
    font-size: 1em;
    color: #e0e0e0;
}

.page-login__faq-answer p {
    margin-bottom: 10px;
}

/* Buttons */
.page-login__btn-primary,
.page-login__btn-secondary {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    border: none; /* Reset default button border */
}

.page-login__btn-primary {
    background-color: #C30808; /* Custom Login/Register button color */
    color: #FFFFFF; /* Contrast fix: Using white for readability */
}

.page-login__btn-primary:hover {
    background-color: #a00606;
}

.page-login__btn-secondary {
    background-color: #ffffff;
    color: #017439; /* Brand color for text on white background */
    border: 2px solid #017439;
}

.page-login__btn-secondary:hover {
    background-color: #f0f0f0;
    border-color: #005a2b;
    color: #005a2b;
}

/* Links within content */
.page-login__section-intro a,
.page-login__step-description a,
.page-login__faq-answer a,
.page-login__download-content a {
    color: #FFFF00; /* Custom font color for links */
    text-decoration: underline;
    transition: color 0.3s ease;
}

.page-login__section-intro a:hover,
.page-login__step-description a:hover,
.page-login__faq-answer a:hover,
.page-login__download-content a:hover {
    color: #ffffff;
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-login__hero-title {
        font-size: 2.2em;
    }
    .page-login__section-title {
        font-size: 1.8em;
    }
    .page-login__benefits-grid {
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    }
    .page-login__register-cta-section,
    .page-login__download-app-section {
        flex-direction: column;
        text-align: center;
    }
    .page-login__register-content,
    .page-login__download-content {
        text-align: center;
    }
    .page-login__register-image,
    .page-login__download-image {
        order: -1; /* Image first on mobile */
        margin-bottom: 30px;
    }
}

@media (max-width: 768px) {
    .page-login {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-login__hero-section {
        height: auto;
        min-height: 100vh;
        padding-top: var(--header-offset, 120px) !important;
    }
    .page-login__hero-content {
        padding: 20px;
        max-width: 90%;
    }
    .page-login__hero-title {
        font-size: 1.8em;
    }
    .page-login__hero-description {
        font-size: 1em;
    }
    .page-login__form-actions {
        flex-direction: column;
        gap: 10px;
    }
    .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;
    }
    .page-login__content-area,
    .page-login__dark-section {
        padding: 30px 15px;
    }
    .page-login__section-title {
        font-size: 1.6em;
    }
    .page-login__section-intro {
        font-size: 0.95em;
        margin-bottom: 20px;
    }
    .page-login__benefit-card,
    .page-login__trouble-card {
        padding: 20px;
    }
    .page-login__step-item {
        padding: 20px;
    }
    .page-login__step-title {
        font-size: 1.4em;
    }
    .page-login__faq-question {
        font-size: 1.05em;
        padding: 15px 20px;
    }
    .page-login__faq-answer {
        padding: 0 20px 15px;
    }
    .page-login__register-cta-section,
    .page-login__download-app-section {
        padding: 30px 15px;
        margin-top: 40px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .page-login__register-image,
    .page-login__download-image,
    .page-login__benefit-icon,
    .page-login__trouble-icon,
    .page-login__step-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    /* Container specific overrides for mobile */
    .page-login__hero-section,
    .page-login__benefits-section,
    .page-login__guide-section,
    .page-login__troubleshooting-section,
    .page-login__register-cta-section,
    .page-login__download-app-section,
    .page-login__faq-section {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }
}