/* style/login.css */

/* Custom Colors from palette */
:root {
    --vb77-primary-green: #11A84E;
    --vb77-secondary-green: #22C768;
    --vb77-button-gradient-start: #2AD16F;
    --vb77-button-gradient-end: #13994A;
    --vb77-card-bg: #11271B;
    --vb77-background: #08160F;
    --vb77-text-main: #F2FFF6;
    --vb77-text-secondary: #A7D9B8;
    --vb77-border: #2E7A4E;
    --vb77-glow: #57E38D;
    --vb77-gold: #F2C14E;
    --vb77-divider: #1E3A2A;
    --vb77-deep-green: #0A4B2C;
}

.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--vb77-text-main); /* Default text color for dark background */
    background-color: var(--vb77-background); /* Body background from shared.css, but sections will use this */
}

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

/* Hero Section */
.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;
    padding-top: 10px; /* Small top padding, body handles header offset */
    text-align: center;
    overflow: hidden; /* Ensure content doesn't overflow */
    background-color: var(--vb77-deep-green); /* Fallback background */
}

.page-login__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
    margin-bottom: 20px; /* Space between image and content */
}

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

.page-login__hero-content {
    position: relative;
    z-index: 2; /* Ensure content is above any subtle background effects */
    max-width: 800px;
    color: var(--vb77-text-main);
}

.page-login__main-title {
    font-size: 2.8em; /* Using em for relative sizing */
    font-weight: bold;
    color: var(--vb77-gold);
    margin-bottom: 15px;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-login__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: var(--vb77-text-secondary);
}

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

/* Buttons */
.page-login__btn-primary,
.page-login__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: all 0.3s ease;
    box-sizing: border-box;
    max-width: 100%; /* Ensure buttons are responsive */
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Allow text to break words */
    text-align: center;
}

.page-login__btn-primary {
    background: linear-gradient(180deg, var(--vb77-button-gradient-start) 0%, var(--vb77-button-gradient-end) 100%);
    color: #ffffff;
    border: 2px solid transparent;
}

.page-login__btn-primary:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(var(--vb77-button-gradient-start), 0.3);
}

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

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

/* Sections */
.page-login__section-title {
    font-size: 2.2em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 40px;
    color: var(--vb77-gold);
    line-height: 1.2;
}

.page-login__description {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 40px;
    color: var(--vb77-text-secondary);
}

.page-login__dark-section {
    background-color: var(--vb77-background);
    padding: 80px 0;
    color: var(--vb77-text-main);
}

.page-login__light-bg {
    background-color: #f8f9fa; /* Light background for contrast */
    padding: 80px 0;
    color: #333333; /* Dark text for light background */
}

/* Benefits Section */
.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-color: var(--vb77-card-bg);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
    border: 1px solid var(--vb77-border);
    color: var(--vb77-text-main);
}

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

.page-login__benefit-icon {
    width: 100%;
    max-width: 200px;
    height: auto;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

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

.page-login__card-description {
    font-size: 1em;
    color: var(--vb77-text-secondary);
}

/* How to Login Section */
.page-login__guide-steps {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-bottom: 60px;
}

.page-login__step-item {
    background-color: #ffffff; /* Light card for light section */
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
    color: #333333;
}

.page-login__step-number {
    font-size: 2.5em;
    font-weight: bold;
    color: var(--vb77-primary-green);
    margin-bottom: 15px;
}

.page-login__step-title {
    font-size: 1.4em;
    font-weight: bold;
    margin-bottom: 10px;
    color: #000000;
}

.page-login__step-description {
    font-size: 1em;
    color: #555555;
}

.page-login__troubleshooting {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
    max-width: 800px;
    margin: 0 auto;
    color: #333333;
}

.page-login__troubleshooting-title {
    font-size: 1.8em;
    font-weight: bold;
    text-align: center;
    margin-bottom: 25px;
    color: var(--vb77-primary-green);
}

.page-login__troubleshooting-list {
    list-style: disc;
    padding-left: 25px;
    margin-bottom: 30px;
    font-size: 1.1em;
    color: #555555;
}

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

/* Registration CTA */
.page-login__registration-cta {
    text-align: center;
    padding: 80px 20px;
}

/* Games Overview */
.page-login__game-categories {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-login__game-card {
    background-color: #ffffff;
    border-radius: 12px;
    padding: 20px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
    border: 1px solid #e0e0e0;
    color: #333333;
}

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

.page-login__game-thumbnail {
    width: 100%;
    height: 180px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    display: block;
}

.page-login__game-card .page-login__card-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    color: var(--vb77-primary-green);
}

.page-login__game-card .page-login__card-title a {
    color: var(--vb77-primary-green);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__game-card .page-login__card-title a:hover {
    color: var(--vb77-secondary-green);
    text-decoration: underline;
}

.page-login__game-card .page-login__card-description {
    font-size: 0.95em;
    color: #555555;
}

.page-login__cta-browse {
    text-align: center;
    margin-top: 60px;
}

/* Promotions Section */
.page-login__promotions-section {
    text-align: center;
    padding: 80px 20px;
}

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

.page-login__faq-item {
    background-color: #ffffff;
    border-radius: 12px;
    margin-bottom: 15px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border: 1px solid #e0e0e0;
    color: #333333;
}

.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: #333333;
    transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
    background-color: #f0f0f0;
}

.page-login__faq-qtext {
    flex-grow: 1;
    color: var(--vb77-primary-green);
}

.page-login__faq-toggle {
    font-size: 1.5em;
    margin-left: 15px;
    color: var(--vb77-primary-green);
}

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

.page-login__faq-item[open] .page-login__faq-question {
    background-color: #f0f0f0;
    border-bottom: 1px solid #e0e0e0;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
}

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

/* HTML Details/Summary specific styles */
.page-login__faq-item summary {
    list-style: none; /* Remove default marker */
}

.page-login__faq-item summary::-webkit-details-marker {
    display: none; /* Remove default marker for Webkit browsers */
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: 2.5em;
    }
    .page-login__section-title {
        font-size: 2em;
    }
}

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

    .page-login__hero-section {
        padding: 40px 15px;
    }

    .page-login__main-title {
        font-size: 2em;
    }

    .page-login__hero-description {
        font-size: 1em;
    }

    .page-login__cta-group {
        flex-direction: column;
        gap: 15px;
    }

    .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__section-title {
        font-size: 1.8em;
    }

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

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

    .page-login__container {
        padding: 0 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    /* Images responsiveness */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }

    .page-login__hero-image-wrapper,
    .page-login__benefit-icon,
    .page-login__game-thumbnail {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-login__game-thumbnail {
        height: auto; /* Allow height to adjust on mobile for better fit */
        max-height: 200px; /* Cap height to prevent overly long images */
    }

    /* Card/Container responsiveness */
    .page-login__benefits-grid,
    .page-login__guide-steps,
    .page-login__game-categories {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-login__benefit-card,
    .page-login__step-item,
    .page-login__game-card,
    .page-login__troubleshooting,
    .page-login__faq-item {
        padding: 20px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

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

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