/* style/login.css */

/* Base styles for the page */
.page-login {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #333333; /* Default text color for light backgrounds */
    background-color: var(--background-color, #ffffff); /* Inherit from shared or default to white */
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding as body handles --header-offset */
    text-align: center;
    overflow: hidden; /* Ensure content does not overflow */
}

.page-login__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
    margin-bottom: 30px; /* Space between image and content */
    border-radius: 8px;
}

.page-login__hero-content {
    max-width: 900px;
    margin: 0 auto;
    z-index: 1; /* Ensure content is above any potential background elements */
}

.page-login__main-title {
    font-size: clamp(2.2rem, 4vw, 3.5rem); /* Responsive font size for H1 */
    font-weight: 700;
    color: #26A9E0; /* Brand color for main title */
    margin-bottom: 15px;
    line-height: 1.2;
}

.page-login__hero-description {
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    color: #555555;
    margin-bottom: 30px;
}

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

/* Section Titles and Descriptions */
.page-login__section-title {
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    font-weight: 700;
    color: #26A9E0;
    text-align: center;
    margin-bottom: 20px;
}

.page-login__section-description {
    font-size: clamp(0.9rem, 1.2vw, 1.1rem);
    color: #555555;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

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

/* Primary Button */
.page-login__btn-primary {
    display: inline-block;
    background-color: #26A9E0;
    color: #ffffff;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(38, 169, 224, 0.3);
    border: 2px solid transparent; /* Consistent border for hover */
}

.page-login__btn-primary:hover {
    background-color: #1a8cc4; /* Slightly darker blue */
    transform: translateY(-2px);
}

/* Secondary Button */
.page-login__btn-secondary {
    display: inline-block;
    background-color: #ffffff;
    color: #26A9E0;
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    font-size: 1rem;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    border: 2px solid #26A9E0;
}

.page-login__btn-secondary:hover {
    background-color: #26A9E0;
    color: #ffffff;
    transform: translateY(-2px);
}

/* Login Form Section */
.page-login__form-section {
    padding: 80px 0;
    background-color: #ffffff; /* Explicitly light background for form */
    color: #333333;
}

.page-login__form-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    margin-top: 40px;
}

.page-login__form-image {
    flex: 1 1 400px; /* Allow image to grow/shrink */
    max-width: 500px;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

.page-login__login-form {
    flex: 1 1 400px; /* Allow form to grow/shrink */
    max-width: 500px;
    background-color: #f8f8f8;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0,0,0,0.1);
}

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

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

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    font-size: 1rem;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.page-login__form-input:focus {
    border-color: #26A9E0;
    outline: none;
}

.page-login__form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.9rem;
}

.page-login__checkbox-label {
    display: flex;
    align-items: center;
    color: #555555;
    cursor: pointer;
}

.page-login__checkbox {
    margin-right: 8px;
}

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

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

.page-login__btn-submit {
    width: 100%;
    background-color: #EA7C07; /* Custom color for login button */
    color: #ffffff;
    padding: 15px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    box-shadow: 0 4px 10px rgba(234, 124, 7, 0.3);
}

.page-login__btn-submit:hover {
    background-color: #cc6b06; /* Slightly darker orange */
    transform: translateY(-2px);
}

.page-login__register-text {
    text-align: center;
    margin-top: 25px;
    color: #555555;
    font-size: 0.95rem;
}

.page-login__register-link {
    color: #26A9E0;
    text-decoration: none;
    font-weight: 600;
    transition: color 0.3s ease;
}

.page-login__register-link:hover {
    color: #1a8cc4;
    text-decoration: underline;
}

/* Benefits Section (Dark Background) */
.page-login__benefits-section {
    padding: 80px 0;
    background-color: #26A9E0; /* Brand color as dark background */
    color: #ffffff; /* White text for dark background */
}

.page-login__benefits-section .page-login__section-title,
.page-login__benefits-section .page-login__section-description {
    color: #ffffff; /* Ensure titles and descriptions are white */
}

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

.page-login__benefit-item {
    background-color: rgba(255, 255, 255, 0.1); /* Semi-transparent white card */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-login__benefit-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #ffffff;
}

.page-login__benefit-text {
    font-size: 1rem;
    color: #f0f0f0;
    flex-grow: 1;
}

.page-login__benefit-icon {
    width: 100%;
    max-width: 250px; /* Constrain icon size */
    height: auto;
    margin-top: 20px;
    border-radius: 8px;
    object-fit: contain;
}

/* Games Section */
.page-login__games-section {
    padding: 80px 0;
    background-color: #f5f5f5; /* Light grey background */
    color: #333333;
}

.page-login__games-grid {
    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;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-align: center;
    transition: transform 0.3s ease;
}

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

.page-login__game-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-login__game-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin: 20px 15px 10px;
    color: #26A9E0;
}

.page-login__game-title a {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__game-title a:hover {
    color: #1a8cc4;
    text-decoration: underline;
}

.page-login__game-text {
    font-size: 0.95rem;
    color: #555555;
    padding: 0 15px 20px;
}

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

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

.page-login__faq-section .page-login__section-title {
    color: #ffffff;
}

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

.page-login__faq-item {
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

.page-login__faq-item summary {
    list-style: none; /* Hide default marker */
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    font-weight: 600;
    font-size: 1.1rem;
    color: #ffffff;
    transition: background-color 0.3s ease;
}

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

.page-login__faq-item summary:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.page-login__faq-qtext {
    flex-grow: 1;
}

.page-login__faq-toggle {
    font-size: 1.5rem;
    line-height: 1;
    margin-left: 15px;
    color: #ffffff;
    transition: transform 0.3s ease;
}

.page-login__faq-item[open] .page-login__faq-toggle {
    transform: rotate(45deg); /* Rotate '+' to 'x' or just change to '-' */
}

.page-login__faq-answer {
    padding: 0 25px 20px;
    font-size: 0.95rem;
    color: #f0f0f0;
}

.page-login__faq-answer p {
    margin-bottom: 10px;
}
.page-login__faq-answer p:last-child {
    margin-bottom: 0;
}


/* Final CTA Section */
.page-login__cta-final {
    padding: 80px 0;
    background-color: #ffffff;
    color: #333333;
}

/* Responsive adjustments */
@media (max-width: 1024px) {
    .page-login__hero-section {
        padding: 40px 15px;
        padding-top: 10px;
    }
    .page-login__hero-image {
        margin-bottom: 20px;
    }
    .page-login__form-wrapper {
        flex-direction: column;
        gap: 30px;
    }
    .page-login__form-image,
    .page-login__login-form {
        max-width: 100%;
    }
    .page-login__benefits-grid,
    .page-login__games-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    }
}

@media (max-width: 768px) {
    .page-login__hero-section {
        padding: 30px 15px;
        padding-top: 10px !important;
    }
    .page-login__hero-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

    /* All images responsive */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    /* All image/content containers responsive */
    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__form-wrapper,
    .page-login__login-form,
    .page-login__benefits-grid,
    .page-login__game-card,
    .page-login__faq-list,
    .page-login__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow: hidden !important; /* Prevent horizontal scroll */
    }

    /* Video responsiveness (if any, though not in this page's HTML) */
    .page-login video,
    .page-login__video {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    .page-login__video-section,
    .page-login__video-container,
    .page-login__video-wrapper {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      overflow: hidden !important;
    }
    .page-login__video-section {
      padding-top: 10px !important; /* body already handles --header-offset */
    }

    /* Button responsiveness */
    .page-login__cta-button,
    .page-login__btn-primary,
    .page-login__btn-secondary,
    .page-login__btn-submit,
    .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; /* Allow text to wrap */
        word-wrap: break-word !important; /* Allow long words to break */
        padding-left: 15px;
        padding-right: 15px;
    }
    .page-login__cta-buttons {
        flex-direction: column !important; /* Stack buttons vertically */
        gap: 15px !important;
    }

    .page-login__main-title {
        font-size: 2.2rem;
    }
    .page-login__section-title {
        font-size: 1.8rem;
    }
    .page-login__form-section,
    .page-login__benefits-section,
    .page-login__games-section,
    .page-login__faq-section,
    .page-login__cta-final {
        padding: 40px 0;
    }
    .page-login__login-form {
        padding: 30px;
    }
    .page-login__faq-item summary {
        font-size: 1rem;
        padding: 15px 20px;
    }
    .page-login__faq-answer {
        padding: 0 20px 15px;
    }
}