/* style/login.css */

/* Base styles for the page-login content */
.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 */
}

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

.page-login__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* Hero Section */
.page-login__hero-section {
    position: relative;
    padding: 120px 0 80px 0; /* Adjusted padding to accommodate header offset */
    background: url('[GALLERY:hero:1920x1080:xxwin,login_banner,gaming_platform,secure_access]') no-repeat center center/cover;
    color: #ffffff;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 700px;
    box-sizing: border-box;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
}

.page-login__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.6); /* Dark overlay for text readability */
    z-index: 1;
}

.page-login__container {
    position: relative;
    z-index: 2;
}

.page-login__login-card {
    background: rgba(255, 255, 255, 0.15); /* Slightly transparent white for dark body bg */
    border-radius: 10px;
    padding: 40px;
    max-width: 450px;
    margin: 40px auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(5px);
}

.page-login__main-title {
    font-size: 2.2em;
    margin-bottom: 15px;
    color: #ffffff;
    font-weight: bold;
    text-align: center;
}

.page-login__subtitle {
    font-size: 1.1em;
    margin-bottom: 30px;
    color: #f0f0f0;
    text-align: center;
}

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

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

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

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #017439;
    border-radius: 5px;
    background-color: rgba(255, 255, 255, 0.05);
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

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

.page-login__form-input:focus {
    border-color: #00b359;
    background-color: rgba(255, 255, 255, 0.1);
    outline: none;
}

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

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

.page-login__checkbox {
    width: 16px;
    height: 16px;
    accent-color: #017439; /* Custom checkbox color */
}

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

.page-login__forgot-password {
    color: #017439;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__forgot-password:hover {
    color: #00b359;
    text-decoration: underline;
}

.page-login__submit-button {
    background-color: #C30808; /* Custom login button color */
    color: #FFFF00; /* Custom login button font color */
    padding: 15px 25px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease;
    width: 100%;
    box-sizing: border-box;
}

.page-login__submit-button:hover {
    background-color: #a30606;
    color: #fff;
}

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

.page-login__register-link a {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-login__register-link a:hover {
    color: #00b359;
    text-decoration: underline;
}

/* Benefits Section */
.page-login__benefits-section {
    padding: 80px 0;
    text-align: center;
}

.page-login__dark-section {
    background-color: #017439; /* Brand primary color for dark sections */
    color: #ffffff;
}

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

.page-login__benefit-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

.page-login__benefit-icon {
    width: 200px;
    height: 200px;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-login__benefit-title {
    font-size: 1.5em;
    color: #FFFF00; /* Highlighted text for titles */
    margin-bottom: 15px;
    font-weight: bold;
}

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

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

.page-login__btn-primary,
.page-login__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    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;
    box-sizing: border-box;
    max-width: 100%; /* Ensure responsiveness */
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text breaking */
    text-align: center;
}

.page-login__btn-primary {
    background-color: #C30808; /* Custom login/register button color */
    color: #FFFF00; /* Custom login/register button font color */
    border: 2px solid #C30808;
}

.page-login__btn-primary:hover {
    background-color: #a30606;
    border-color: #a30606;
    color: #fff;
}

.page-login__btn-secondary {
    background-color: transparent;
    color: #FFFF00; /* Custom login/register button font color */
    border: 2px solid #FFFF00;
}

.page-login__btn-secondary:hover {
    background-color: #FFFF00;
    color: #C30808;
    border-color: #FFFF00;
}

/* Security Section */
.page-login__security-section {
    padding: 80px 0;
    background-color: #2a2a2a; /* Slightly lighter dark background */
    color: #ffffff;
}

.page-login__two-column-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 50px;
    align-items: center;
}

.page-login__security-content {
    text-align: left;
}

.page-login__security-list {
    list-style: none;
    padding: 0;
    margin-top: 30px;
}

.page-login__security-list-item {
    background: rgba(255, 255, 255, 0.08);
    margin-bottom: 15px;
    padding: 15px 20px;
    border-left: 5px solid #017439;
    border-radius: 5px;
    font-size: 1em;
    color: #f0f0f0;
}

.page-login__security-list-item strong {
    color: #FFFF00;
}

.page-login__security-image-wrapper {
    text-align: center;
}

.page-login__security-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    display: block; /* Ensure it behaves as a block element */
    margin: 0 auto; /* Center the image */
}

/* Gaming Experience Section */
.page-login__gaming-experience-section {
    padding: 80px 0;
    text-align: center;
}

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

.page-login__gaming-item {
    background: rgba(255, 255, 255, 0.1);
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.page-login__gaming-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
}

.page-login__gaming-image {
    width: 100%;
    height: 300px; /* Fixed height for consistency */
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

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

.page-login__gaming-text {
    font-size: 0.95em;
    color: #f0f0f0;
    margin-bottom: 20px;
}

.page-login__btn-link {
    display: inline-block;
    color: #017439;
    background-color: #FFFF00;
    padding: 8px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-login__btn-link:hover {
    background-color: #e0e000;
    color: #004d26;
}

.page-login__additional-text {
    margin-top: 60px;
    font-style: italic;
    font-size: 1.05em;
    color: #cccccc;
}

/* FAQ Section */
.page-login__faq-section {
    padding: 80px 0;
    background-color: #2a2a2a;
    color: #ffffff;
}

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

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

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

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

.page-login__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #FFFF00;
    font-weight: bold;
}

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

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

.page-login__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 20px;
    transition: max-height 0.3s ease-out, padding 0.3s ease-out;
    color: #f0f0f0;
}

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

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

/* Call to Action Section */
.page-login__cta-section {
    padding: 80px 0;
    text-align: center;
}

/* Footer Info Section */
.page-login__footer-info {
    padding: 40px 0;
    background-color: #1a1a1a; /* Even darker footer */
    color: #cccccc;
    text-align: center;
    font-size: 0.9em;
}

.page-login__copyright {
    margin-bottom: 15px;
}

.page-login__legal-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
}

.page-login__legal-links a {
    color: #017439;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__legal-links a:hover {
    color: #00b359;
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__hero-section {
        min-height: 600px;
        padding: 100px 0 60px 0;
        padding-top: var(--header-offset, 120px);
    }
    .page-login__main-title {
        font-size: 2em;
    }
    .page-login__login-card {
        padding: 30px;
    }
    .page-login__two-column-grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    .page-login__security-image {
        margin-top: 30px;
    }
    .page-login__benefit-icon {
        width: 150px;
        height: 150px;
    }
}

@media (max-width: 768px) {
    .page-login {
        font-size: 16px;
        line-height: 1.6;
    }
    .page-login__container {
        padding: 0 15px;
    }
    .page-login__section-title {
        font-size: 1.8em;
    }
    .page-login__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }
    .page-login__hero-section {
        min-height: 500px;
        padding: 80px 0 40px 0;
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header offset */
        background-size: cover;
    }
    .page-login__main-title {
        font-size: 1.8em;
    }
    .page-login__subtitle {
        font-size: 1em;
    }
    .page-login__login-card {
        padding: 25px;
        margin: 20px auto;
    }
    .page-login__form-input {
        padding: 10px 12px;
    }
    .page-login__submit-button {
        padding: 12px 20px;
        font-size: 1em;
    }
    .page-login__register-link {
        font-size: 0.95em;
    }

    /* Images and Videos responsiveness */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-login video,
    .page-login__video { /* If video element is added */
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__video-section,
    .page-login__video-container,
    .page-login__video-wrapper,
    .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;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }
    .page-login__gaming-image {
        height: 250px; /* Allow image height to adjust, but keep a minimum visual size */
    }
    .page-login__security-image {
        max-width: 100%;
        height: auto;
    }
    .page-login__benefit-icon {
        width: 120px;
        height: 120px;
    }

    /* Buttons responsiveness */
    .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;
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-login__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
    }

    .page-login__faq-question h3 {
        font-size: 1.1em;
    }
    .page-login__faq-toggle {
        font-size: 1.5em;
    }
    .page-login__faq-answer {
        padding: 15px;
    }
    .page-login__legal-links {
        flex-direction: column;
        gap: 10px;
    }
}