/* style/login.css */

/* Base styles for the login page */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark background sections */
    background-color: var(--black-color); /* Inherit from shared, should be dark */
}

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

/* Section specific styles */
.page-login__hero-section {
    position: relative;
    padding: 80px 0;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background-color: #26A9E0; /* Primary brand color for hero background */
    color: #FFFFFF;
}

.page-login__dark-section {
    background-color: #26A9E0; /* Primary brand color for dark sections */
    color: #FFFFFF;
}

.page-login__light-bg {
    background-color: #FFFFFF;
    color: #333333; /* Dark text for light background */
}

.page-login__hero-content {
    max-width: 600px;
    margin-right: 40px;
}

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

.page-login__intro-description {
    font-size: 1.2em;
    margin-bottom: 30px;
}

.page-login__login-form-wrapper {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    margin-top: 30px;
}

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

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

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

.page-login__form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f8f8f8;
    color: #333333;
    box-sizing: border-box;
}

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

.page-login__form-actions {
    display: flex;
    gap: 15px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    justify-content: center;
}

.page-login__btn-primary {
    display: inline-block;
    padding: 12px 25px;
    background-color: #EA7C07; /* Login specific color */
    color: #FFFFFF;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    max-width: 100%;
}

.page-login__btn-primary:hover {
    background-color: #d16b06;
}

.page-login__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    background-color: #FFFFFF;
    color: #26A9E0; /* Primary brand color for text */
    border: 2px solid #26A9E0;
    text-decoration: none;
    border-radius: 5px;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease;
    text-align: center;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    box-sizing: border-box;
    max-width: 100%;
}

.page-login__btn-secondary:hover {
    background-color: #26A9E0;
    color: #FFFFFF;
}

.page-login__forgot-password {
    color: #FFFFFF;
    text-decoration: none;
    font-size: 0.9em;
    text-align: center;
    margin-top: 10px;
    transition: color 0.3s ease;
}

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

.page-login__hero-image-wrapper {
    margin-left: 40px;
}

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

/* General section styles */
.page-login__benefits-section,
.page-login__game-showcase-section,
.page-login__why-choose-us-section,
.page-login__cta-section,
.page-login__faq-section {
    padding: 60px 0;
    text-align: center;
}

.page-login__section-title {
    font-size: 2.5em;
    margin-bottom: 20px;
    color: inherit; /* Inherit from section background */
}

.page-login__section-description {
    font-size: 1.1em;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: inherit; /* Inherit from section background */
}

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

.page-login__benefit-card {
    background-color: #f8f8f8; /* Light background for cards in light section */
    color: #333333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: left;
    transition: transform 0.3s ease;
}

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

.page-login__benefit-icon {
    width: 100px;
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: 0;
}

.page-login__benefit-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #26A9E0; /* Brand color for titles */
}

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

/* Game Showcase Grid */
.page-login__game-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-login__game-card {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for dark section */
    color: #FFFFFF;
    padding: 25px;
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
    text-align: left;
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease;
}

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

.page-login__game-image {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
}

.page-login__game-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #FFFFFF;
}

.page-login__game-text {
    font-size: 0.95em;
    color: #f0f0f0;
    flex-grow: 1; /* Push button to bottom */
    margin-bottom: 20px;
}

.page-login__game-card .page-login__btn-secondary {
    margin-top: auto; /* Align button at the bottom */
    align-self: flex-start;
}

/* Why Choose Us Section */
.page-login__why-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    text-align: left;
}

.page-login__why-item {
    background-color: #f8f8f8;
    color: #333333;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.page-login__why-item:hover {
    transform: translateY(-5px);
}

.page-login__why-heading {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #26A9E0;
}

.page-login__why-text {
    font-size: 1em;
    color: #555555;
}

/* CTA Section */
.page-login__cta-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 30px;
    flex-wrap: wrap;
}

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

.page-login__faq-item {
    background-color: rgba(255, 255, 255, 0.1); /* Slightly transparent white for dark section */
    color: #FFFFFF;
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 25px;
    background-color: rgba(255, 255, 255, 0.15);
    cursor: pointer;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
}

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

.page-login__faq-heading {
    margin: 0;
    color: #FFFFFF;
}

.page-login__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    width: 20px;
    text-align: center;
    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;
    transition: max-height 0.3s ease, padding 0.3s ease;
    background-color: rgba(255, 255, 255, 0.05);
}

.page-login__faq-item.active .page-login__faq-answer {
    max-height: 1000px !important; /* Sufficiently large */
    padding: 15px 25px 25px 25px;
}

.page-login__faq-answer p {
    margin: 0;
    padding-bottom: 10px;
    color: #f0f0f0;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-login__hero-content {
        margin-right: 20px;
    }
    .page-login__hero-image-wrapper {
        margin-left: 20px;
    }
}

@media (max-width: 768px) {
    .page-login__hero-section {
        flex-direction: column;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }

    .page-login__hero-content {
        margin-right: 0;
        margin-bottom: 40px;
    }

    .page-login__hero-image-wrapper {
        margin-left: 0;
        width: 100%;
    }

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

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

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

    .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,
    .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;
      flex-direction: column;
    }
    
    .page-login__benefits-grid,
    .page-login__game-grid,
    .page-login__why-list {
        grid-template-columns: 1fr;
        padding: 0 15px;
    }

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

    .page-login__section-description {
        padding: 0 15px;
    }

    .page-login__benefit-card,
    .page-login__game-card,
    .page-login__why-item {
        margin: 0; /* Remove horizontal margin as padding is added to container */
        box-sizing: border-box;
        width: 100%;
    }

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