/* style/login.css */

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

.page-login {
    color: var(--page-login-text-main); /* Light text for dark background */
    background-color: var(--page-login-bg); /* Dark background */
    font-family: Arial, sans-serif;
    line-height: 1.6;
}

/* Headings */
.page-login h1, .page-login h2, .page-login h3, .page-login h4, .page-login h5, .page-login h6 {
    color: var(--page-login-text-main);
    margin-bottom: 15px;
    font-weight: 700;
    line-height: 1.2;
}

.page-login__main-title {
    font-weight: 700;
    line-height: 1.2;
    max-width: 800px; /* To prevent H1 from being too wide */
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    /* No fixed font-size, rely on responsive behavior and font-weight */
}

.page-login__section-title {
    text-align: center;
    font-size: 2.5em; /* Example, will be responsive */
    margin-bottom: 20px;
    color: var(--page-login-text-main);
}

.page-login__section-description {
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: var(--page-login-text-secondary);
}

/* Sections */
.page-login__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    justify-content: center;
    padding: 60px 20px; /* General padding */
    padding-top: 10px; /* Small top padding for this section, body handles header offset */
    text-align: center;
    background-color: var(--page-login-bg);
}

.page-login__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Max width for hero image */
    margin-bottom: 30px; /* Space between image and content */
}

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

.page-login__hero-content {
    max-width: 900px;
    z-index: 1; /* Ensure content is above any background layers */
}

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

.page-login__form-section,
.page-login__troubleshoot-section,
.page-login__security-section,
.page-login__cta-download-section {
    background-color: var(--page-login-card-bg); /* Darker green for sections */
    padding: 80px 0;
    color: var(--page-login-text-main);
}

.page-login__benefits-section,
.page-login__faq-section {
    background-color: var(--page-login-bg);
    padding: 80px 0;
    color: var(--page-login-text-main);
}

/* Buttons */
.page-login__btn-primary,
.page-login__submit-button {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    background: var(--page-login-btn-gradient);
    color: #ffffff; /* White text for gradient button */
    font-weight: bold;
    text-decoration: none;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: none;
    cursor: pointer;
    font-size: 1.1em;
    text-align: center;
    box-sizing: border-box;
}

.page-login__btn-primary:hover,
.page-login__submit-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

.page-login__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    background: transparent;
    border: 2px solid var(--page-login-primary-color);
    color: var(--page-login-primary-color); /* Brand color text for secondary button */
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease;
    cursor: pointer;
    font-size: 1.1em;
    text-align: center;
    box-sizing: border-box;
}

.page-login__btn-secondary:hover {
    background-color: var(--page-login-primary-color);
    color: #ffffff;
}

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

/* Forms */
.page-login__login-form {
    background-color: var(--page-login-bg); /* Use page background for form card */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid var(--page-login-divider);
}

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

.page-login__form-label {
    display: block;
    margin-bottom: 10px;
    color: var(--page-login-text-secondary);
    font-weight: bold;
}

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--page-login-border);
    border-radius: 8px;
    background-color: #0A1F16; /* Slightly lighter dark green */
    color: var(--page-login-text-main);
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.page-login__form-input::placeholder {
    color: var(--page-login-text-secondary);
    opacity: 0.7;
}

.page-login__form-input:focus {
    border-color: var(--page-login-glow);
    outline: none;
}

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

.page-login__remember-me {
    color: var(--page-login-text-secondary);
    display: flex;
    align-items: center;
}

.page-login__checkbox {
    margin-right: 8px;
    accent-color: var(--page-login-primary-color);
}

.page-login__forgot-password,
.page-login__register-link {
    color: var(--page-login-gold); /* Gold for important links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__forgot-password:hover,
.page-login__register-link:hover {
    color: var(--page-login-glow);
    text-decoration: underline;
}

.page-login__register-prompt {
    text-align: center;
    margin-top: 25px;
    color: var(--page-login-text-secondary);
}

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

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

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

.page-login__benefit-icon {
    width: 200px; /* Minimum size */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    min-height: 200px; /* Ensure minimum size */
}

.page-login__benefit-title,
.page-login__troubleshoot-title {
    font-size: 1.4em;
    color: var(--page-login-text-main);
    margin-bottom: 15px;
}

.page-login__benefit-text,
.page-login__troubleshoot-text {
    color: var(--page-login-text-secondary);
    font-size: 0.95em;
}

.page-login__contact-cta {
    text-align: center;
    margin-top: 50px;
}

/* Security Section */
.page-login__security-list {
    list-style: none;
    padding: 0;
    margin: 40px auto 0 auto;
    max-width: 900px;
    color: var(--page-login-text-secondary);
}

.page-login__security-list li {
    background-color: var(--page-login-bg);
    padding: 20px 25px;
    margin-bottom: 10px;
    border-radius: 8px;
    border: 1px solid var(--page-login-divider);
    display: flex;
    align-items: flex-start;
    gap: 15px;
}

.page-login__security-list li strong {
    color: var(--page-login-text-main);
    font-size: 1.1em;
    flex-shrink: 0;
}

.page-login__security-list li::before {
    content: '✅'; /* Checkmark for list items */
    font-size: 1.2em;
    line-height: 1;
    color: var(--page-login-glow);
    margin-top: 2px;
}

.page-login__security-footer {
    text-align: center;
    margin-top: 40px;
    font-style: italic;
    color: var(--page-login-text-secondary);
}

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

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

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-weight: bold;
    color: var(--page-login-text-main);
    background-color: var(--page-login-card-bg);
    transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
    background-color: #1A3427; /* Slightly lighter hover for contrast */
}

.page-login__faq-item[open] .page-login__faq-question {
    background-color: #1A3427;
}

.page-login__faq-qtext {
    flex-grow: 1;
    font-size: 1.1em;
}

.page-login__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: var(--page-login-primary-color);
    transition: transform 0.3s ease;
}

.page-login__faq-item[open] .page-login__faq-toggle {
    transform: rotate(45deg); /* Change + to X or similar */
    color: var(--page-login-gold);
}

.page-login__faq-answer {
    padding: 0 25px 20px 25px;
    color: var(--page-login-text-secondary);
    font-size: 0.95em;
}

.page-login__faq-answer p {
    margin: 0;
}

/* Ensure no default marker for details summary */
.page-login__faq-item summary {
    list-style: none;
}
.page-login__faq-item summary::-webkit-details-marker {
    display: none;
}

/* Flex center for CTA download section */
.page-login__flex-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

/* Responsive Styles */
@media (max-width: 1024px) {
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__hero-section {
        padding: 40px 20px;
        padding-top: 10px;
    }
    .page-login__benefits-grid,
    .page-login__troubleshoot-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-login__main-title {
        font-size: clamp(1.8em, 5vw, 2.5em); /* Clamp for H1 */
    }
    .page-login__section-title {
        font-size: 1.8em;
    }
    .page-login__hero-section {
        padding: 30px 15px;
        padding-top: 10px;
    }
    .page-login__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
    .page-login__container {
        padding: 0 15px;
    }
    .page-login__form-section,
    .page-login__benefits-section,
    .page-login__troubleshoot-section,
    .page-login__security-section,
    .page-login__faq-section,
    .page-login__cta-download-section {
        padding: 50px 0;
    }
    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-login__btn-primary,
    .page-login__btn-secondary,
    .page-login__submit-button,
    .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;
    }
    .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;
    }
    /* Mobile image responsiveness */
    .page-login img {
      max-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__benefit-card,
    .page-login__troubleshoot-item,
    .page-login__faq-item,
    .page-login__security-list li {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-login__benefit-icon {
        width: 100% !important;
        min-width: 200px !important;
        height: auto !important;
        min-height: 200px !important;
    }
    .page-login__faq-question {
        padding: 15px 20px;
    }
    .page-login__faq-qtext {
        font-size: 1em;
    }
    .page-login__faq-answer {
        padding: 0 20px 15px 20px;
    }
    .page-login__security-list li {
        flex-direction: column;
        align-items: flex-start;
    }
    .page-login__security-list li::before {
        margin-bottom: 5px;
    }
}

@media (max-width: 480px) {
    .page-login__login-form {
        padding: 30px 20px;
    }
    .page-login__form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .page-login__forgot-password {
        margin-top: 5px;
    }
    .page-login__benefits-grid,
    .page-login__troubleshoot-grid {
        grid-template-columns: 1fr;
    }
}