/* style/login.css */

/* Base styles for the login page */
.page-login {
    font-family: 'Arial', sans-serif;
    color: #ffffff; /* Light text for dark body background */
    background-color: transparent; /* Body background from shared.css */
    line-height: 1.6;
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    padding-top: 10px; /* Small top padding, body handles header offset */
    padding-bottom: 60px;
    background-color: #1a1a2e; /* Fallback/overlay for hero */
}

.page-login__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

.page-login__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    opacity: 0.3; /* Slightly dim image for text readability */
}

.page-login__hero-content {
    position: relative;
    z-index: 1;
    text-align: center;
    max-width: 900px;
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.5); /* Semi-transparent background for text */
    border-radius: 10px;
    margin-top: 80px; /* Adjust as needed to not overlap header */
}

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

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

/* General Section Styles */
.page-login__section {
    padding: 60px 20px;
    background-color: #1a1a2e; /* Dark background for sections */
    color: #ffffff;
}

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

.page-login__container--center {
    text-align: center;
}

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

.page-login__section-description {
    font-size: 1.05em;
    text-align: center;
    max-width: 800px;
    margin: 0 auto 40px auto;
    color: #f0f0f0;
}

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

.page-login__btn {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease;
    box-sizing: border-box; /* Crucial for responsive buttons */
    max-width: 100%; /* Ensure buttons don't exceed container width */
    text-align: center;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word;
}

.page-login__btn-primary {
    background-color: #EA7C07; /* Login button color */
    color: #FFFFFF;
    border: 2px solid #EA7C07;
}

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

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

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

/* Login Form Section */
.page-login__login-form-section {
    background-color: #1a1a2e;
    padding-top: 40px;
}

.page-login__form-wrapper {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 40px;
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 40px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-login__form-image {
    max-width: 45%;
    height: auto;
    border-radius: 8px;
    display: block;
    min-width: 200px; /* Min size for images */
}

.page-login__login-form {
    flex: 1;
    min-width: 300px;
}

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

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

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #3a3a5a;
    border-radius: 5px;
    background-color: #2a2a4a;
    color: #ffffff;
    font-size: 1em;
    box-sizing: border-box;
}

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

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

.page-login__login-submit {
    flex-grow: 1;
    margin-right: 15px;
}

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

.page-login__forgot-password:hover,
.page-login__register-link:hover {
    color: #EA7C07;
    text-decoration: underline;
}

.page-login__no-account-text {
    text-align: center;
    margin-top: 20px;
    color: #f0f0f0;
}

/* Why Login Section */
.page-login__why-login-section {
    background-color: #1a1a2e;
}

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

.page-login__feature-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-login__feature-title {
    font-size: 1.4em;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-login__feature-text {
    font-size: 0.95em;
    color: #cccccc;
}

/* How To Login Section */
.page-login__how-to-login-section {
    background-color: #1a1a2e;
}

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

.page-login__step-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-login__step-number {
    font-size: 2.5em;
    color: #EA7C07;
    font-weight: bold;
    margin-bottom: 10px;
}

.page-login__step-title {
    font-size: 1.3em;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-login__step-text {
    font-size: 0.95em;
    color: #cccccc;
}

.page-login__cta-buttons--center {
    margin-top: 40px;
}

/* Game Showcase Section */
.page-login__game-showcase-section {
    background-color: #1a1a2e;
}

.page-login__game-showcase-image {
    width: 100%;
    height: auto;
    border-radius: 10px;
    margin-top: 40px;
    margin-bottom: 40px;
    display: block;
    min-width: 200px; /* Min size for images */
}

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

.page-login__game-category-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

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

.page-login__game-category-link {
    display: block;
    padding: 20px;
    text-decoration: none;
    color: #ffffff;
}

.page-login__game-category-title {
    font-size: 1.2em;
    color: #26A9E0;
    margin-bottom: 10px;
}

.page-login__game-category-text {
    font-size: 0.9em;
    color: #cccccc;
}

/* Register & Download Section */
.page-login__register-download-section {
    background-color: #1a1a2e;
}

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

.page-login__card {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 10px;
    padding: 30px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
}

.page-login__card-title {
    font-size: 1.6em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-login__card-text {
    font-size: 1em;
    color: #cccccc;
    margin-bottom: 25px;
    flex-grow: 1;
}

.page-login__card-image {
    max-width: 80%;
    height: auto;
    border-radius: 8px;
    margin-bottom: 25px;
    min-width: 200px; /* Min size for images */
}

/* FAQ Section */
.page-login__faq-section {
    background-color: #1a1a2e;
}

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

.page-login__faq-item {
    background-color: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    font-size: 1.1em;
    font-weight: bold;
    color: #f0f0f0;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.08);
    transition: background-color 0.3s ease;
    list-style: none; /* For details/summary */
}

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

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

.page-login__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: #26A9E0;
    margin-left: 15px;
}

.page-login__faq-item[open] .page-login__faq-toggle {
    color: #EA7C07;
}

.page-login__faq-answer {
    padding: 20px;
    padding-top: 0;
    font-size: 0.95em;
    color: #cccccc;
    line-height: 1.6;
}

/* Call to Action Section */
.page-login__call-to-action {
    background-color: #1a1a2e;
    padding-bottom: 80px;
}

/* Responsive Design */
@media (max-width: 1024px) {
    .page-login__hero-content {
        padding: 15px;
    }

    .page-login__main-title {
        font-size: clamp(1.8em, 3.5vw, 3em);
    }

    .page-login__section-title {
        font-size: clamp(1.6em, 2.5vw, 2.5em);
    }
}

@media (max-width: 768px) {
    .page-login__hero-section {
        padding-bottom: 40px;
    }

    .page-login__hero-content {
        margin-top: 60px;
        padding: 15px;
        max-width: 95%;
    }

    .page-login__main-title {
        font-size: clamp(1.8em, 6vw, 2.5em);
    }

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

    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
        width: 100%;
        max-width: 100%;
        box-sizing: border-box;
        padding: 0 15px; /* Add padding to container */
    }

    .page-login__btn {
        width: 100% !important;
        max-width: 100% !important;
        padding: 12px 20px;
        font-size: 1em;
        box-sizing: border-box !important;
        white-space: normal !important;
        word-wrap: break-word !important;
    }

    .page-login__section {
        padding: 40px 15px;
    }

    .page-login__container {
        padding-left: 15px;
        padding-right: 15px;
        max-width: 100%;
        width: 100%;
        box-sizing: border-box;
        overflow: hidden; /* Prevent horizontal scroll */
    }

    .page-login__section-title {
        font-size: clamp(1.5em, 5vw, 2em);
    }

    .page-login__form-wrapper {
        flex-direction: column;
        padding: 25px;
        gap: 20px;
    }

    .page-login__form-image {
        max-width: 100%;
        min-width: 200px; /* Ensure min size */
        margin-bottom: 20px;
    }

    .page-login__login-form {
        width: 100%;
    }

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

    .page-login__login-submit {
        margin-right: 0;
        width: 100%;
    }

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

    .page-login__features-grid,
    .page-login__steps-grid,
    .page-login__game-categories,
    .page-login__grid-two-cols {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-login__game-showcase-image,
    .page-login__card-image,
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Ensure min size */
    }

    /* Video section top padding for mobile, if a video were present */
    .page-login__video-section {
        padding-top: 10px !important;
    }

    .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__faq-question {
        font-size: 1em;
        padding: 15px;
    }
    .page-login__faq-answer {
        font-size: 0.9em;
    }
}