/* style/login.css */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: #000;
}

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

/* Hero Section */
.page-login__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 700px;
    padding: 80px 20px;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    background-color: #1A1A1A;
    overflow: hidden;
    text-align: center;
}

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

.page-login__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.page-login__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    margin: 0 auto;
}

.page-login__main-title {
    font-size: 3.5em;
    color: #FFD700;
    margin-bottom: 20px;
    line-height: 1.2;
}

.page-login__hero-description {
    font-size: 1.3em;
    color: #f0f0f0;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-login__login-card {
    background-color: rgba(26, 26, 26, 0.9);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    max-width: 450px;
    margin: 40px auto 0;
    border: 1px solid #FFD700;
}

.page-login__card-title {
    font-size: 2em;
    color: #FFD700;
    margin-bottom: 30px;
}

.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: #f0f0f0;
    font-weight: bold;
}

.page-login__form-input {
    width: 100%;
    padding: 15px;
    border: 1px solid #FFD700;
    border-radius: 5px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
}

.page-login__form-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

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

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

.page-login__checkbox {
    width: 16px;
    height: 16px;
    accent-color: #FFD700;
}

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

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

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

.page-login__btn-primary {
    display: inline-block;
    padding: 15px 30px;
    background-color: #FFD700;
    color: #1A1A1A;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
}

.page-login__btn-primary:hover {
    background-color: #e6c200;
    transform: translateY(-2px);
}

.page-login__login-button {
    margin-top: 20px;
}

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

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

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

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

.page-login__section-title {
    font-size: 2.5em;
    color: #FFD700;
    margin-bottom: 20px;
}

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

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

.page-login__benefit-item {
    background-color: #1A1A1A;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(255, 215, 0, 0.3);
}

.page-login__benefit-icon {
    width: 100%;
    height: auto;
    max-width: 200px;
    margin-bottom: 20px;
    border-radius: 5px;
}

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

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

/* Games Preview Section */
.page-login__games-preview-section {
    background-color: #1A1A1A;
    padding: 80px 20px;
    color: #ffffff;
    text-align: center;
}

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

.page-login__game-card {
    background-color: rgba(255, 215, 0, 0.1);
    padding: 25px;
    border-radius: 10px;
    border: 1px solid rgba(255, 215, 0, 0.2);
    text-align: left;
    transition: transform 0.3s ease;
}

.page-login__game-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 20px rgba(255, 215, 0, 0.2);
}

.page-login__game-title {
    font-size: 1.5em;
    margin-bottom: 10px;
}

.page-login__game-title a {
    color: #FFD700;
    text-decoration: none;
}

.page-login__game-title a:hover {
    text-decoration: underline;
}

.page-login__game-description {
    color: #cccccc;
    font-size: 0.95em;
}

/* Mobile App Section */
.page-login__mobile-app-section {
    background-color: #0d0d0d;
    padding: 80px 20px;
    color: #ffffff;
    text-align: center;
}

.page-login__mobile-app-flex {
    display: flex;
    align-items: center;
    justify-content: space-around;
    flex-wrap: wrap;
    gap: 40px;
}

.page-login__mobile-app-content {
    flex: 1;
    min-width: 300px;
    max-width: 550px;
    text-align: left;
}

.page-login__mobile-app-image-wrapper {
    flex: 1;
    min-width: 300px;
    max-width: 500px;
    text-align: center;
}

.page-login__mobile-app-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
}

.page-login__download-button {
    margin-top: 30px;
    background-color: #FFD700;
    color: #1A1A1A;
}

.page-login__download-button:hover {
    background-color: #e6c200;
}

/* FAQ Section */
.page-login__faq-section {
    background-color: #1A1A1A;
    padding: 80px 20px;
    color: #ffffff;
    text-align: center;
}

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

.page-login__faq-item {
    background-color: rgba(255, 215, 0, 0.05);
    border: 1px solid rgba(255, 215, 0, 0.2);
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #1A1A1A;
    color: #FFD700;
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

.page-login__faq-title {
    margin: 0;
    color: #FFD700;
}

.page-login__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
}

.page-login__faq-item.active .page-login__faq-toggle {
    transform: rotate(45deg);
}

.page-login__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    color: #cccccc;
    text-align: left;
    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-answer p {
    margin-bottom: 0;
}

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

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

.page-login__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    background-color: transparent;
    color: #FFD700;
    border: 2px solid #FFD700;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
}

.page-login__btn-secondary:hover {
    background-color: #FFD700;
    color: #1A1A1A;
    transform: translateY(-2px);
}

.page-login__btn-tertiary {
    display: inline-block;
    padding: 15px 30px;
    background-color: #CC0000; /* Auxiliary accent color */
    color: #ffffff;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-decoration: none;
    text-align: center;
    box-sizing: border-box;
}

.page-login__btn-tertiary:hover {
    background-color: #a30000;
    transform: translateY(-2px);
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: 3em;
    }
    .page-login__hero-description {
        font-size: 1.2em;
    }
    .page-login__section-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;
        min-height: auto;
        padding: 60px 15px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-login__hero-content {
        order: 2;
        margin-top: 40px;
    }
    .page-login__hero-image-wrapper {
        order: 1;
        position: relative;
        width: 100%;
        height: 250px;
        opacity: 0.5;
    }
    .page-login__main-title {
        font-size: 2.5em;
    }
    .page-login__hero-description {
        font-size: 1.1em;
    }
    .page-login__login-card {
        padding: 30px;
        max-width: 100%;
        margin-top: 30px;
    }
    .page-login__section-title {
        font-size: 2em;
    }
    .page-login__section-description {
        font-size: 1em;
    }
    .page-login__benefits-grid {
        grid-template-columns: 1fr;
    }
    .page-login__mobile-app-flex {
        flex-direction: column;
    }
    .page-login__mobile-app-content,
    .page-login__mobile-app-image-wrapper {
        max-width: 100%;
        width: 100%;
        text-align: center;
    }
    .page-login__mobile-app-content {
        order: 2;
    }
    .page-login__mobile-app-image-wrapper {
        order: 1;
    }
    .page-login__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-login__faq-answer {
        padding: 15px 20px;
    }
    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-login__btn-primary,
    .page-login__btn-secondary,
    .page-login__btn-tertiary,
    .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__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;
    }
    .page-login img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-login video,
    .page-login__video {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
}

@media (max-width: 480px) {
    .page-login__main-title {
        font-size: 2em;
    }
    .page-login__hero-description {
        font-size: 1em;
    }
    .page-login__card-title {
        font-size: 1.8em;
    }
    .page-login__section-title {
        font-size: 1.8em;
    }
    .page-login__benefit-title {
        font-size: 1.5em;
    }
}