/* 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 body background */
    background-color: transparent; /* Body background is handled by shared.css (#0a0a0a) */
}

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

.page-login__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

.page-login__section-intro {
    font-size: 1.1em;
    color: #f0f0f0;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.page-login__text-block {
    font-size: 1em;
    color: #f0f0f0;
    margin-bottom: 20px;
}

/* Buttons */
.page-login__btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrapping */
    word-wrap: break-word; /* Allow text wrapping */
    max-width: 100%; /* Ensure responsiveness */
}

.page-login__btn-login {
    background-color: #C30808; /* Custom color for login button */
    color: #FFFF00; /* Custom font color for login button */
    border: 2px solid #C30808;
    margin-right: 15px;
}

.page-login__btn-login:hover {
    background-color: #a00606;
    border-color: #a00606;
}

.page-login__btn-register {
    background-color: #017439; /* Main brand color */
    color: #ffffff;
    border: 2px solid #017439;
}

.page-login__btn-register:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}

.page-login__btn-download {
    background-color: #017439;
    color: #ffffff;
    border: 2px solid #017439;
    margin-right: 15px;
    margin-bottom: 10px;
}

.page-login__btn-download:last-child {
    margin-right: 0;
}

.page-login__btn-download:hover {
    background-color: #005a2e;
    border-color: #005a2e;
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    min-height: 600px;
    background: linear-gradient(135deg, #0a0a0a 0%, #1a1a1a 100%);
    overflow: hidden;
}

.page-login__hero-content {
    flex: 1;
    max-width: 600px;
    z-index: 1;
    text-align: left;
    margin-right: 40px;
}

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

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

.page-login__hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 600px;
    min-width: 200px; /* Min image size */
}

.page-login__hero-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

/* Login Form */
.page-login__login-form-wrapper {
    background-color: rgba(255, 255, 255, 0.08); /* Semi-transparent white for card-like effect */
    border-radius: 12px;
    padding: 30px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    margin-top: 30px;
    max-width: 400px; /* Constrain form width */
}

.page-login__form-heading {
    font-size: 2em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 25px;
}

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

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

.page-login__form-input {
    width: 100%;
    padding: 12px;
    border: 1px solid #017439;
    border-radius: 8px;
    background-color: rgba(255, 255, 255, 0.1);
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
}

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

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

.page-login__form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 25px;
    flex-wrap: wrap; /* Allow buttons to wrap on smaller screens */
    gap: 15px; /* Space between buttons */
}

.page-login__forgot-password {
    text-align: center;
    margin-top: 20px;
}

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

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

/* Features Section */
.page-login__features-section {
    padding: 80px 0;
    background-color: #0a0a0a; /* Dark background for this section */
    color: #ffffff;
}

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

.page-login__feature-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, background-color 0.3s ease;
    min-height: 450px; /* Ensure cards have consistent height */
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
}

.page-login__feature-card:hover {
    transform: translateY(-5px);
    background-color: rgba(255, 255, 255, 0.1);
}

.page-login__feature-icon {
    width: 100%; /* Ensure icon takes full width of its container */
    max-width: 250px; /* Max width for consistency */
    height: auto;
    margin: 0 auto 20px auto;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-login__feature-title {
    font-size: 1.8em;
    color: #01a355; /* Use a brighter green for titles */
    margin-bottom: 15px;
}

.page-login__feature-description {
    font-size: 1em;
    color: #f0f0f0;
    flex-grow: 1; /* Allow description to take available space */
}

/* Game Overview Section */
.page-login__game-overview-section {
    padding: 80px 0;
    background-color: #1a1a1a;
    color: #ffffff;
}

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

.page-login__game-card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: #ffffff;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}

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

.page-login__game-image {
    width: 100%;
    height: 200px; /* Fixed height for game images */
    object-fit: cover;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}

.page-login__game-title {
    font-size: 1.5em;
    color: #01a355;
    margin: 15px 0 10px;
    padding: 0 20px;
}

.page-login__game-description {
    font-size: 0.95em;
    color: #f0f0f0;
    padding: 0 20px 20px;
    flex-grow: 1;
}

/* Download Section */
.page-login__download-section {
    padding: 80px 0;
    background-color: #0a0a0a;
    color: #ffffff;
}

.page-login__download-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.page-login__download-content {
    flex: 1;
    max-width: 600px;
}

.page-login__download-buttons {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}

.page-login__download-image-wrapper {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 500px;
    min-width: 200px; /* Min image size */
}

.page-login__download-image {
    width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3);
    object-fit: cover;
    min-width: 200px; /* Min image size */
    min-height: 200px; /* Min image size */
}


/* FAQ Section */
.page-login__faq-section {
    padding: 80px 0;
    background-color: #1a1a1a; /* Adjusted for dark theme */
    color: #ffffff;
}

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

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

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.08);
    transition: background-color 0.3s ease;
}

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

.page-login__faq-question h3 {
    margin: 0;
    font-size: 1.2em;
    color: #ffffff;
    flex-grow: 1;
}

.page-login__faq-toggle {
    font-size: 1.8em;
    font-weight: bold;
    color: #01a355;
    margin-left: 15px;
    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-out, padding 0.3s ease-out;
    color: #f0f0f0;
}

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

.page-login__faq-answer p {
    margin: 0;
    font-size: 1em;
    color: #f0f0f0;
}

.page-login__faq-answer a {
    color: #01a355;
    text-decoration: none;
}

.page-login__faq-answer a:hover {
    text-decoration: underline;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-login__hero-section {
        flex-direction: column;
        text-align: center;
        padding-bottom: 40px;
    }

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

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

    .page-login__login-form-wrapper {
        margin-left: auto;
        margin-right: auto;
    }

    .page-login__download-flex {
        flex-direction: column;
        text-align: center;
    }

    .page-login__download-content {
        max-width: 100%;
        margin-bottom: 30px;
    }

    .page-login__download-image-wrapper {
        max-width: 80%;
    }
}

@media (max-width: 768px) {
    .page-login__hero-title {
        font-size: 2.2em;
    }

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

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

    .page-login__section-intro {
        font-size: 0.95em;
    }

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

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

    .page-login__btn {
        width: 100%; /* Ensure buttons take full width on mobile */
        max-width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-login__btn-login {
        margin-right: 0;
    }

    .page-login__btn-download {
        margin-right: 0;
    }
    
    .page-login__download-buttons {
        flex-direction: column;
        gap: 10px;
    }

    .page-login__feature-card {
        min-height: auto; /* Allow height to adjust */
    }
    
    /* Mobile image responsiveness */
    .page-login img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-login__hero-image-container,
    .page-login__download-image-wrapper,
    .page-login__feature-icon,
    .page-login__game-image {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow: hidden !important;
    }

    .page-login__hero-section,
    .page-login__features-section,
    .page-login__game-overview-section,
    .page-login__download-section,
    .page-login__faq-section,
    .page-login__container,
    .page-login__login-form-wrapper,
    .page-login__feature-card,
    .page-login__game-card,
    .page-login__download-content,
    .page-login__faq-item {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    /* Adjust padding for hero section on mobile if needed, but header offset should be primary */
    .page-login__hero-section {
        padding-left: 15px;
        padding-right: 15px;
    }

    /* FAQ specific mobile adjustments */
    .page-login__faq-question {
        padding: 15px 20px;
    }
    .page-login__faq-answer {
        padding: 0 20px;
    }
    .page-login__faq-item.active .page-login__faq-answer {
        padding: 10px 20px 20px;
    }
}

/* Ensure content area images CSS min-width */
.page-login__hero-image,
.page-login__feature-icon,
.page-login__game-image,
.page-login__download-image {
    min-width: 200px;
    min-height: 200px;
}

/* Contrast fix for dark background */
.page-login__dark-bg,
.page-login__dark-section {
  color: #ffffff; /* Deep dark background, so white text */
  background: #0a0a0a;
}
.page-login__light-bg { /* Not used here, but for completeness */
    color: #333333;
    background: #ffffff;
}