/* style/login.css */

/* Custom Colors */
:root {
    --primary-color: #11A84E; /* Main */
    --secondary-color: #22C768; /* Aux */
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --bg-dark: #08160F; /* Background */
    --card-bg: #11271B; /* Card BG */
    --text-main: #F2FFF6; /* Text Main */
    --text-secondary: #A7D9B8; /* Text Secondary */
    --border-color: #2E7A4E; /* Border */
    --glow-color: #57E38D; /* Glow */
    --gold-color: #F2C14E; /* Gold */
    --divider-color: #1E3A2A; /* Divider */
    --deep-green: #0A4B2C; /* Deep Green */
}

.page-login {
    font-family: 'Arial', sans-serif;
    color: var(--text-main); /* Default text color for the page */
    background-color: var(--bg-dark); /* Ensure consistency with body background */
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column; /* Image on top, content below */
    align-items: center;
    padding: 10px 0 60px 0; /* Small top padding, more bottom padding */
    background-color: var(--bg-dark);
    text-align: center;
}

.page-login__hero-image-wrapper {
    width: 100%;
    max-width: 1920px; /* Max width for the image */
    overflow: hidden;
}

.page-login__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    min-height: 200px; /* Min size requirement */
}

.page-login__hero-content {
    max-width: 800px;
    margin-top: 40px;
    padding: 0 20px;
}

.page-login__main-title {
    font-size: clamp(2em, 4vw, 3em); /* Responsive font size for H1 */
    color: var(--gold-color);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    text-shadow: 0 0 10px rgba(87, 227, 141, 0.5); /* Glow color shadow */
}

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

.page-login__login-form-wrapper {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.3);
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    border: 1px solid var(--border-color);
}

.page-login__login-form {
    display: flex;
    flex-direction: column;
}

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

.page-login__form-label {
    display: block;
    margin-bottom: 8px;
    color: var(--text-main);
    font-weight: 600;
}

.page-login__form-input {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid var(--border-color);
    border-radius: 5px;
    background-color: var(--deep-green);
    color: var(--text-main);
    font-size: 1em;
    outline: none;
    transition: border-color 0.3s ease;
}

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

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

.page-login__form-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.page-login__cta-button {
    display: block;
    width: 100%;
    padding: 15px 25px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
    box-sizing: border-box; /* Ensure padding is included in width */
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-login__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-login__btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-login__btn-secondary {
    background-color: transparent;
    color: var(--glow-color);
    border: 2px solid var(--glow-color);
    box-shadow: 0 2px 10px rgba(87, 227, 141, 0.2);
}

.page-login__btn-secondary:hover {
    background-color: rgba(87, 227, 141, 0.1);
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(87, 227, 141, 0.4);
}

.page-login__forgot-password {
    display: block;
    margin-top: 15px;
    color: var(--text-secondary);
    font-size: 0.9em;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
    color: var(--glow-color);
}

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

.page-login__section-title {
    font-size: clamp(1.8em, 3.5vw, 2.5em);
    color: var(--gold-color);
    text-align: center;
    margin-bottom: 20px;
    font-weight: 700;
    line-height: 1.3;
    text-shadow: 0 0 8px rgba(87, 227, 141, 0.3);
}

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

/* Benefits Section */
.page-login__benefits-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

.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);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

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

.page-login__benefit-icon {
    width: 100%; /* Make it responsive */
    max-width: 200px; /* Keep it within reasonable bounds */
    height: auto;
    object-fit: contain;
    margin: 0 auto 20px auto;
    display: block;
    min-width: 200px; /* Ensure actual image is large */
    min-height: 200px; /* Ensure actual image is large */
}

.page-login__card-title {
    font-size: 1.4em;
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: 600;
}

.page-login__card-text {
    font-size: 0.95em;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Guide Section */
.page-login__guide-section {
    padding: 80px 0;
    background-color: var(--deep-green);
}

.page-login__guide-list {
    list-style: none;
    padding: 0;
    margin: 0 auto;
    max-width: 800px;
}

.page-login__guide-item {
    background-color: var(--card-bg);
    padding: 25px 30px;
    margin-bottom: 20px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.page-login__guide-step-title {
    font-size: 1.3em;
    color: var(--gold-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-login__guide-item p {
    font-size: 1em;
    color: var(--text-secondary);
    line-height: 1.6;
}

.page-login__troubleshooting {
    margin-top: 50px;
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
}

.page-login__sub-title {
    font-size: 1.5em;
    color: var(--gold-color);
    margin-bottom: 20px;
    text-align: center;
    font-weight: 600;
}

.page-login__troubleshooting-list {
    list-style: disc;
    padding-left: 25px;
    color: var(--text-secondary);
}

.page-login__troubleshooting-list li {
    margin-bottom: 10px;
    line-height: 1.6;
}

.page-login__troubleshooting-list strong {
    color: var(--text-main);
}

/* Security Section */
.page-login__security-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

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

.page-login__feature-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    border: 1px solid var(--border-color);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

.page-login__feature-icon {
    font-size: 3em;
    margin-bottom: 15px;
    display: block;
    color: var(--glow-color);
}

.page-login__feature-title {
    font-size: 1.4em;
    color: var(--gold-color);
    margin-bottom: 10px;
    font-weight: 600;
}

.page-login__feature-text {
    font-size: 0.95em;
    color: var(--text-secondary);
    line-height: 1.7;
}

/* Promotions CTA */
.page-login__promotions-cta {
    padding: 60px 0;
    background-color: var(--deep-green);
    text-align: center;
}

.page-login__promotions-content {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* FAQ Section */
.page-login__faq-section {
    padding: 80px 0;
    background-color: var(--bg-dark);
}

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

.page-login__faq-item {
    background-color: var(--card-bg);
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.15);
    overflow: hidden;
    color: var(--text-main);
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15em;
    font-weight: 600;
    color: var(--text-main);
    background-color: var(--card-bg);
    transition: background-color 0.3s ease;
    list-style: none; /* For <summary> */
}

.page-login__faq-question:hover {
    background-color: rgba(var(--border-color), 0.3); /* Lighter hover for dark background */
}

.page-login__faq-toggle {
    font-size: 1.5em;
    font-weight: bold;
    color: var(--glow-color);
    margin-left: 15px;
}

/* Hide default details marker */
.page-login__faq-item summary::-webkit-details-marker {
    display: none;
}
.page-login__faq-item summary::marker {
    display: none;
}

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

.page-login__faq-answer p {
    margin-top: 15px;
}

/* Final CTA Section */
.page-login__final-cta {
    padding: 80px 0;
    background-color: var(--deep-green);
    text-align: center;
}

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


/* Responsive Design */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: clamp(1.8em, 4.5vw, 2.5em);
    }
    .page-login__section-title {
        font-size: clamp(1.6em, 3.8vw, 2.2em);
    }
}

@media (max-width: 768px) {
    .page-login__hero-section {
        padding-bottom: 40px;
    }

    .page-login__hero-content {
        margin-top: 30px;
    }

    .page-login__main-title {
        font-size: clamp(1.6em, 6vw, 2.2em);
        margin-bottom: 15px;
    }

    .page-login__description {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-login__login-form-wrapper {
        padding: 25px;
        max-width: 100%;
        margin: 0 15px; /* Add side margin for small screens */
    }

    .page-login__form-actions {
        flex-direction: column;
        gap: 10px;
    }

    .page-login__cta-button {
        padding: 12px 20px;
        font-size: 1em;
    }

    .page-login__benefits-section,
    .page-login__guide-section,
    .page-login__security-section,
    .page-login__promotions-cta,
    .page-login__faq-section,
    .page-login__final-cta {
        padding: 40px 0;
    }

    .page-login__section-title {
        font-size: clamp(1.5em, 5vw, 2em);
        margin-bottom: 15px;
    }

    .page-login__section-description {
        font-size: 0.95em;
        margin-bottom: 30px;
    }

    .page-login__benefits-grid,
    .page-login__security-features-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .page-login__benefit-icon {
        max-width: 150px; /* Adjust max-width for smaller screens, but keep min 200px for actual image */
        height: auto;
    }

    .page-login__card-title,
    .page-login__feature-title {
        font-size: 1.2em;
    }

    .page-login__guide-item {
        padding: 20px;
    }

    .page-login__guide-step-title {
        font-size: 1.1em;
    }

    .page-login__sub-title {
        font-size: 1.3em;
    }

    .page-login__faq-question {
        font-size: 1em;
        padding: 15px 20px;
    }
    .page-login__faq-answer {
        padding: 0 20px 15px 20px;
    }

    .page-login__button-group {
        flex-direction: column;
        gap: 15px;
        margin-top: 30px;
    }

    /* Mobile specific overrides for images, videos, and buttons */
    .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__login-form-wrapper,
    .page-login__button-group {
        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 */
    }

    .page-login__cta-button,
    .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;
        /* Remove padding-left/right here if already applied to container */
    }
    /* Ensure containers for buttons also have correct padding */
    .page-login__form-actions,
    .page-login__button-group {
        padding-left: 0;
        padding-right: 0;
    }
}