/* style/login.css */

/* Base styles for the page-login scope */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #f0f0f0; /* Light text for dark body background */
    background-color: transparent; /* Body background is handled by shared.css (#000) */
    padding-top: var(--header-offset, 120px); /* Fixed header spacing */
}

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

/* Hero Section */
.page-login__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 700px;
    background-color: #1a1a1a; /* Slightly lighter dark background for hero */
    overflow: hidden;
    padding: 60px 0; /* Add some padding for content */
}

.page-login__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-login__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Make background image subtle */
}

.page-login__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    padding: 20px;
    color: #ffffff;
}

.page-login__hero-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #FFB800; /* Gold for main title */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__hero-description {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

/* Login Card */
.page-login__login-card {
    background: rgba(0, 0, 0, 0.8); /* Darker, semi-transparent background */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    max-width: 450px;
    margin: 0 auto;
    border: 1px solid #E44D26; /* Brand color border */
}

.page-login__card-title {
    font-size: 2em;
    margin-bottom: 30px;
    color: #FFB800;
    text-align: center;
}

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

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

.page-login__form-input {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid #E44D26;
    border-radius: 5px;
    background-color: #333;
    color: #ffffff;
    font-size: 1em;
}

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

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

.page-login__forgot-password {
    color: #FFB800;
    text-decoration: none;
}

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

.page-login__remember-me {
    display: flex;
    align-items: center;
}

.page-login__checkbox {
    margin-right: 8px;
}

.page-login__checkbox-label {
    color: #f0f0f0;
}

/* Buttons */
.page-login__btn-primary,
.page-login__btn-secondary {
    display: block;
    width: 100%;
    padding: 15px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box; /* Crucial for mobile responsiveness */
}

.page-login__btn-primary {
    background-color: #E44D26; /* Main brand color */
    color: #ffffff;
    margin-top: 20px;
}

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

.page-login__btn-secondary {
    background-color: transparent;
    color: #E44D26;
    border: 2px solid #E44D26;
    margin-top: 15px;
}

.page-login__btn-secondary:hover {
    background-color: #E44D26;
    color: #ffffff;
}

.page-login__register-text {
    text-align: center;
    margin-top: 25px;
    color: #f0f0f0;
    font-size: 1em;
}

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

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

/* General Section Styles */
.page-login__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: #FFB800;
}

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

/* Benefits Section */
.page-login__benefits-section {
    padding: 80px 0;
    background-color: #0d0d0d; /* Slightly lighter dark background */
    color: #ffffff;
}

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

.page-login__benefit-item {
    background: rgba(255, 255, 255, 0.08); /* Semi-transparent white for cards */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-login__benefit-icon {
    width: 200px; /* Min size */
    height: auto;
    margin-bottom: 20px;
    border-radius: 5px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.page-login__benefit-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* Security Section */
.page-login__security-section {
    padding: 80px 0;
    background-color: #000; /* Pure black background */
    color: #ffffff;
}

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

.page-login__feature-item {
    background: rgba(228, 77, 38, 0.15); /* Semi-transparent brand color */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #E44D26;
}

.page-login__feature-title {
    font-size: 1.4em;
    margin-bottom: 15px;
    color: #FFB800;
}

.page-login__feature-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* FAQ Section */
.page-login__faq-section {
    padding: 80px 0;
    background-color: #0d0d0d; /* Slightly lighter dark background */
    color: #ffffff;
}

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

.page-login__faq-item {
    margin-bottom: 15px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    overflow: hidden;
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    background-color: rgba(255, 255, 255, 0.05);
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
    background-color: rgba(255, 255, 255, 0.1);
}

.page-login__faq-heading {
    font-size: 1.2em;
    margin: 0;
    color: #FFB800;
}

.page-login__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: #E44D26;
    transition: transform 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-toggle {
    transform: rotate(45deg); /* Change + to X or - */
}

.page-login__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    background-color: rgba(0, 0, 0, 0.6);
    transition: max-height 0.3s ease, padding 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-answer {
    max-height: 1000px !important; /* Sufficiently large value */
    padding: 20px 25px;
}

.page-login__faq-text {
    margin: 0;
    color: #f0f0f0;
    font-size: 1em;
}

/* CTA Section */
.page-login__cta-section {
    padding: 80px 0;
    background-color: #E44D26; /* Main brand color background */
    color: #ffffff;
    text-align: center;
}

.page-login__cta-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #ffffff;
}

.page-login__cta-description {
    font-size: 1.2em;
    max-width: 700px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

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

.page-login__cta-buttons .page-login__btn-primary,
.page-login__cta-buttons .page-login__btn-secondary {
    width: auto; /* Override 100% width for inline buttons */
    min-width: 220px;
    max-width: 300px;
    display: inline-block; /* For horizontal layout */
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-login__hero-title {
        font-size: 2.8em;
    }
    .page-login__hero-description {
        font-size: 1.1em;
    }
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__cta-title {
        font-size: 2.2em;
    }
}

@media (max-width: 768px) {
    .page-login {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-login__hero-section {
        flex-direction: column;
        text-align: center;
        min-height: auto;
        padding: 40px 0;
    }
    .page-login__hero-content {
        padding: 15px;
    }
    .page-login__hero-title {
        font-size: 2em;
        margin-bottom: 15px;
    }
    .page-login__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }
    .page-login__login-card {
        padding: 30px;
        max-width: 100%;
        margin: 0 15px; /* Add horizontal margin */
    }
    .page-login__card-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }
    .page-login__form-input {
        width: 100% !important; /* Override calc for full width */
    }
    .page-login__form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    /* General section titles and descriptions */
    .page-login__section-title {
        font-size: 1.8em;
        padding: 0 15px;
    }
    .page-login__section-description {
        font-size: 1em;
        margin-bottom: 30px;
        padding: 0 15px;
    }

    /* Benefits Grid */
    .page-login__benefits-grid,
    .page-login__security-features {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }
    .page-login__benefit-item,
    .page-login__feature-item {
        padding: 20px;
    }
    .page-login__benefit-icon {
        width: 200px; /* Ensure minimum size is maintained */
        height: auto;
    }
    .page-login__benefit-title {
        font-size: 1.3em;
    }
    .page-login__feature-title {
        font-size: 1.2em;
    }

    /* FAQ */
    .page-login__faq-list {
        padding: 0 15px;
    }
    .page-login__faq-question {
        padding: 15px 20px;
    }
    .page-login__faq-heading {
        font-size: 1.1em;
    }
    .page-login__faq-answer {
        padding: 0 20px;
    }
    .page-login__faq-item.active .page-login__faq-answer {
        padding: 15px 20px;
    }

    /* CTA Section */
    .page-login__cta-title {
        font-size: 1.8em;
        padding: 0 15px;
    }
    .page-login__cta-description {
        font-size: 1em;
        margin-bottom: 30px;
        padding: 0 15px;
    }
    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px;
    }
    .page-login__cta-buttons .page-login__btn-primary,
    .page-login__cta-buttons .page-login__btn-secondary {
        width: 100% !important; /* Force full width on mobile */
        max-width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 15px !important;
    }

    /* Ensure all images are responsive */
    .page-login img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-login__hero-image-wrapper,
    .page-login__benefit-item,
    .page-login__feature-item,
    .page-login__faq-item,
    .page-login__cta-section,
    .page-login__login-card {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
}

/* Color Contrast Safeguards */
.page-login__dark-bg {
    background-color: #000;
    color: #ffffff;
}

.page-login__light-bg {
    background-color: #0d0d0d; /* Using a dark grey as 'light' in this dark theme for contrast */
    color: #ffffff;
}
/* Specific text color for general paragraphs and lists within dark backgrounds */
.page-login p,
.page-login li {
    color: #f0f0f0;
}