/* style/login.css */

/* Base styles for the login page content */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333333; /* Dark text for default white body background */
    background-color: #FFFFFF;
}

/* Fixed Header Spacing */
.page-login {
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
}

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

/* Hero Section */
.page-login__hero-section {
    position: relative;
    width: 100%;
    height: 550px; /* Adjust height as needed */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    color: #ffffff; /* White text on dark background */
}

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

.page-login__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(1, 116, 57, 0.7); /* Brand green with opacity */
    z-index: 2;
}

.page-login__hero-content {
    position: relative;
    z-index: 3;
    max-width: 800px;
    padding: 20px;
}

.page-login__hero-title {
    font-size: 3em;
    margin-bottom: 20px;
    color: #FFFFFF;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__hero-description {
    font-size: 1.2em;
    margin-bottom: 30px;
    color: #F0F0F0;
}

.page-login__hero-cta {
    display: flex;
    justify-content: center;
    gap: 20px;
}

/* Buttons */
.page-login__btn-primary,
.page-login__btn-secondary,
.page-login__btn-submit {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    text-align: center;
}

.page-login__btn-primary,
.page-login__btn-submit {
    background-color: #C30808; /* Custom Login/Register color */
    color: #FFFF00; /* Custom Login/Register font color */
    border: 2px solid #C30808;
}

.page-login__btn-primary:hover,
.page-login__btn-submit:hover {
    background-color: #d62d2d;
    border-color: #d62d2d;
}

.page-login__btn-secondary {
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

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

/* Form Section */
.page-login__form-section {
    padding: 60px 0;
    background-color: #FFFFFF; /* Custom Background color */
}

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

.page-login__form-wrapper {
    background-color: #f9f9f9;
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    margin: 0 auto;
}

.page-login__form-title {
    font-size: 2.2em;
    color: #017439;
    margin-bottom: 20px;
    text-align: center;
}

.page-login__form-intro-text {
    font-size: 1em;
    color: #555555;
    text-align: center;
    margin-bottom: 30px;
}

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

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

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

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 1em;
    box-sizing: border-box;
}

.page-login__form-input:focus {
    border-color: #017439;
    outline: none;
    box-shadow: 0 0 0 3px rgba(1, 116, 57, 0.2);
}

.page-login__form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.page-login__forgot-password {
    color: #017439;
    text-decoration: none;
    font-size: 0.95em;
}

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

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

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

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

.page-login__form-illustration {
    display: none; /* Hidden by default, shown on larger screens */
}

.page-login__illustration-caption {
    font-size: 0.9em;
    color: #666666;
    margin-top: 15px;
    line-height: 1.5;
}

/* Benefits Section */
.page-login__benefits-section {
    padding: 80px 0;
    background-color: #017439; /* Brand green background */
    color: #ffffff; /* White text on dark background */
    text-align: center;
}

.page-login__benefits-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.page-login__benefits-intro {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: #F0F0F0;
}

.page-login__benefit-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);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    transition: transform 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-login__benefit-item:hover {
    transform: translateY(-10px);
}

.page-login__benefit-icon {
    width: 200px; /* Min size for images */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
}

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

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

/* Game Variety Section */
.page-login__game-variety-section {
    padding: 80px 0;
    background-color: #f8f8f8;
    color: #333333;
    text-align: center;
}

.page-login__game-variety-title {
    font-size: 2.5em;
    color: #017439;
    margin-bottom: 20px;
}

.page-login__game-variety-intro {
    font-size: 1.1em;
    max-width: 900px;
    margin: 0 auto 50px auto;
    color: #555555;
}

.page-login__game-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.page-login__game-item {
    background-color: #ffffff;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
    text-align: left;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.page-login__game-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
}

.page-login__game-heading {
    font-size: 1.6em;
    color: #017439;
    margin-bottom: 10px;
}

.page-login__game-text {
    font-size: 0.95em;
    color: #666666;
    margin-bottom: 15px;
}

.page-login__game-link {
    display: inline-block;
    color: #C30808;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid #C30808;
    padding-bottom: 3px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.page-login__game-link:hover {
    color: #d62d2d;
    border-color: #d62d2d;
}

/* Security Overview Section */
.page-login__security-overview-section {
    padding: 80px 0;
    background-color: #017439;
    color: #ffffff;
    text-align: center;
}

.page-login__security-overview-title {
    font-size: 2.8em;
    margin-bottom: 20px;
    color: #FFFFFF;
}

.page-login__security-overview-intro {
    font-size: 1.2em;
    max-width: 800px;
    margin: 0 auto 50px auto;
    color: #F0F0F0;
}

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

.page-login__security-feature-item {
    background-color: rgba(255, 255, 255, 0.1);
    padding: 30px;
    border-radius: 12px;
    text-align: left;
    transition: transform 0.3s ease;
}

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

.page-login__feature-heading {
    font-size: 1.6em;
    color: #FFFFFF;
    margin-bottom: 10px;
}

.page-login__feature-text {
    font-size: 0.95em;
    color: #F0F0F0;
    margin-bottom: 15px;
}

.page-login__feature-link {
    display: inline-block;
    color: #FFFF00;
    text-decoration: none;
    font-weight: bold;
    border-bottom: 2px solid #FFFF00;
    padding-bottom: 3px;
    transition: color 0.3s ease, border-color 0.3s ease;
}

.page-login__feature-link:hover {
    color: #FFFFAA;
    border-color: #FFFFAA;
}

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

.page-login__faq-title {
    font-size: 2.5em;
    color: #017439;
    text-align: center;
    margin-bottom: 50px;
}

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

.page-login__faq-item {
    border-bottom: 1px solid #e0e0e0;
    margin-bottom: 15px;
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 0;
    cursor: pointer;
    font-weight: bold;
    color: #333333;
    transition: color 0.3s ease;
}

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

.page-login__faq-heading {
    font-size: 1.2em;
    margin: 0;
}

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

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

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .page-login {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-login__hero-section {
        height: 400px;
    }

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

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

    .page-login__hero-cta {
        flex-direction: column;
        gap: 15px;
    }

    .page-login__btn-primary,
    .page-login__btn-secondary,
    .page-login__btn-submit {
        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__form-section {
        padding: 40px 0;
    }

    .page-login__form-wrapper {
        padding: 30px 20px;
        max-width: 100%;
    }

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

    .page-login__form-actions {
        flex-direction: column;
        gap: 15px;
        align-items: stretch;
    }

    .page-login__forgot-password {
        text-align: center;
    }

    .page-login__register-text {
        font-size: 0.9em;
    }

    .page-login__benefits-section {
        padding: 50px 0;
    }

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

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

    .page-login__benefit-grid {
        grid-template-columns: 1fr;
    }

    .page-login__game-variety-section {
        padding: 50px 0;
    }

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

    .page-login__game-variety-intro {
        font-size: 1em;
    }

    .page-login__game-list {
        grid-template-columns: 1fr;
    }

    .page-login__security-overview-section {
        padding: 50px 0;
    }

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

    .page-login__security-overview-intro {
        font-size: 1em;
    }

    .page-login__security-features-grid {
        grid-template-columns: 1fr;
    }

    .page-login__faq-section {
        padding: 50px 0;
    }

    .page-login__faq-title {
        font-size: 2em;
        margin-bottom: 30px;
    }

    .page-login__faq-heading {
        font-size: 1.1em;
    }

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

    .page-login__container,
    .page-login__form-container,
    .page-login__form-section,
    .page-login__benefits-section,
    .page-login__game-variety-section,
    .page-login__security-overview-section,
    .page-login__faq-section {
        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__form-wrapper {
        width: 100% !important; /* Ensure form wrapper takes full width within container */
        max-width: 100% !important;
        box-sizing: border-box !important;
    }
}

/* Desktop layout for form section */
@media (min-width: 769px) {
    .page-login__form-container {
        display: flex;
        align-items: center;
        gap: 50px;
    }

    .page-login__form-wrapper {
        flex: 1;
        margin: 0; /* Remove auto margin for flex layout */
    }

    .page-login__form-illustration {
        display: block;
        flex: 1;
        text-align: center;
    }

    .page-login__illustration-image {
        max-width: 100%;
        height: auto;
        border-radius: 12px;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    }
}