:root {
    --primary-color: #26A9E0;
    --secondary-color: #FFFFFF;
    --login-button-color: #EA7C07;
    --text-dark: #333333;
    --text-light: #FFFFFF;
    --background-light: #FFFFFF;
    --border-light: #e0e0e0;
}

.page-login {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: var(--text-dark);
    background-color: var(--background-light);
}

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

/* Hero Section */
.page-login__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    background-color: var(--primary-color);
    color: var(--text-light);
    padding: 60px 0;
    padding-top: var(--header-offset, 120px); /* Ensure space below fixed header */
    overflow: hidden;
}

.page-login__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.2;
    z-index: 0;
}

.page-login__hero-section > .page-login__container {
    position: relative;
    z-index: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.page-login__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: var(--text-light);
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-login__description {
    font-size: 1.2em;
    margin-bottom: 40px;
    max-width: 800px;
    color: var(--text-light);
}

.page-login__login-form-wrapper {
    background: rgba(255, 255, 255, 0.95);
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 8px 25px rgba(0,0,0,0.2);
    width: 100%;
    max-width: 450px;
    text-align: left;
    color: var(--text-dark);
}

.page-login__form-intro-text {
    font-size: 0.95em;
    margin-bottom: 25px;
    color: #555;
    text-align: center;
}

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

.page-login__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: bold;
    color: var(--text-dark);
}

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--border-light);
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease;
}

.page-login__form-input:focus {
    border-color: var(--primary-color);
    outline: none;
}

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

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

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

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

.page-login__forgot-password-link {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__forgot-password-link:hover {
    color: #007bff; /* A slightly different blue on hover */
    text-decoration: underline;
}

.page-login__submit-button {
    display: block;
    width: 100%;
    padding: 15px 20px;
    background-color: var(--login-button-color); /* Specific color for login button */
    color: var(--text-light);
    border: none;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
    text-align: center;
    text-decoration: none; /* For a tag */
}

.page-login__submit-button:hover {
    background-color: #d16b00; /* Slightly darker orange */
    transform: translateY(-2px);
}

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

.page-login__register-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-login__register-link:hover {
    color: #007bff;
    text-decoration: underline;
}

/* Section common styles */
.page-login__section-title {
    font-size: 2.5em;
    text-align: center;
    margin-bottom: 20px;
    color: var(--primary-color);
}

.page-login__section-intro {
    font-size: 1.1em;
    text-align: center;
    max-width: 900px;
    margin: 0 auto 50px;
    color: #555;
}

/* Benefits Section */
.page-login__benefits-section {
    padding: 80px 0;
    background-color: var(--primary-color); /* Dark section */
    color: var(--text-light);
}

.page-login__benefits-section .page-login__section-title {
    color: var(--text-light);
}

.page-login__benefits-section .page-login__section-intro {
    color: rgba(255, 255, 255, 0.85);
}

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

.page-login__benefit-card {
    background: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, background 0.3s ease;
}

.page-login__benefit-card:hover {
    transform: translateY(-10px);
    background: rgba(255, 255, 255, 0.2);
}

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

.page-login__benefit-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: var(--text-light);
}

.page-login__benefit-description {
    font-size: 0.95em;
    color: rgba(255, 255, 255, 0.9);
}

/* Game Preview Section */
.page-login__game-preview-section {
    padding: 80px 0;
    background-color: var(--background-light);
}

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

.page-login__game-card {
    display: block;
    background: var(--secondary-color);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    text-decoration: none;
    color: var(--text-dark);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__game-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

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

.page-login__game-title {
    font-size: 1.4em;
    padding: 15px 20px 5px;
    color: var(--primary-color);
}

.page-login__game-description {
    font-size: 0.9em;
    padding: 0 20px 20px;
    color: #666;
}

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

.page-login__btn-primary,
.page-login__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    font-size: 1.1em;
    font-weight: bold;
    text-decoration: none;
    transition: background-color 0.3s ease, color 0.3s ease, transform 0.2s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__btn-primary {
    background-color: var(--primary-color);
    color: var(--text-light);
    border: 2px solid var(--primary-color);
}

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

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

.page-login__btn-secondary:hover {
    background-color: var(--primary-color);
    color: var(--text-light);
    transform: translateY(-2px);
}

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

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

.page-login__faq-item {
    background: var(--secondary-color);
    border: 1px solid var(--border-light);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.15em;
    font-weight: bold;
    color: var(--primary-color);
    cursor: pointer;
    background-color: var(--secondary-color);
    transition: background-color 0.3s ease;
}

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

.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;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #555;
    font-size: 0.95em;
}

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

.page-login__faq-answer p {
    margin-bottom: 0;
}

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

@media (max-width: 768px) {
    .page-login__hero-section {
        min-height: 500px;
        padding: 40px 0;
        padding-top: var(--header-offset, 120px) !important; /* Ensure space below fixed header on mobile */
    }

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

    .page-login__description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-login__login-form-wrapper {
        padding: 30px;
    }

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

    .page-login__section-intro {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-login__benefits-section,
    .page-login__game-preview-section,
    .page-login__faq-section {
        padding: 50px 0;
    }

    .page-login__benefits-grid,
    .page-login__game-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-login__benefit-card,
    .page-login__game-card {
        padding: 25px;
    }

    .page-login__game-image {
        height: 180px;
    }

    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
        padding: 0 15px; /* Add padding to prevent buttons from touching edges */
    }

    .page-login__btn-primary,
    .page-login__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
    }

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

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

    .page-login__faq-item.active .page-login__faq-answer {
        padding: 10px 20px 20px;
    }

    /* Mobile image responsive adaptations */
    .page-login img {
      max-width: 100% !important;
      width: 100% !important;
      height: auto !important;
      display: block !important;
    }
    
    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__login-form-wrapper,
    .page-login__benefits-grid,
    .page-login__game-grid,
    .page-login__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Specific overrides for padding on container if it has already been set to 0 20px */
    .page-login__hero-section > .page-login__container {
        padding-left: 15px !important;
        padding-right: 15px !important;
    }
}

@media (max-width: 480px) {
    .page-login__main-title {
        font-size: 1.8em;
    }
    .page-login__section-title {
        font-size: 1.5em;
    }
    .page-login__login-form-wrapper {
        padding: 20px;
    }
    .page-login__form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
    .page-login__forgot-password-link {
        margin-top: 5px;
    }
}