/* style/login.css */

/* Base Styles for the Login Page */
.page-login {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF6D6; /* Main text color for dark background */
    background-color: #0A0A0A; /* Page background */
}

.page-login__section {
    padding: 60px 0;
}

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

.page-login__section-title {
    font-size: clamp(2em, 4vw, 2.8em); /* H1 rules applied to H2 for content */
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #F2C14E; /* Primary color for titles */
    line-height: 1.2;
}

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

/* Buttons */
.page-login__btn-primary,
.page-login__btn-secondary {
    display: inline-block;
    padding: 12px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    transition: all 0.3s ease;
    cursor: pointer;
    border: none;
    font-size: 1em;
    max-width: 100%; /* For mobile responsiveness */
    box-sizing: border-box; /* For mobile responsiveness */
    white-space: normal; /* For mobile button text wrapping */
    word-wrap: break-word; /* For mobile button text wrapping */
}

.page-login__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #DDA11D 100%);
    color: #111111; /* Dark text for bright button */
    border: 2px solid transparent;
}

.page-login__btn-primary:hover {
    background: linear-gradient(180deg, #FFE080 0%, #E6B02A 100%);
    box-shadow: 0 0 15px rgba(255, 211, 107, 0.7);
}

.page-login__btn-secondary {
    background: transparent;
    color: #F2C14E; /* Primary color text */
    border: 2px solid #F2C14E;
}

.page-login__btn-secondary:hover {
    background: #F2C14E;
    color: #111111; /* Dark text for primary color background */
    box-shadow: 0 0 15px rgba(242, 193, 78, 0.7);
}

.page-login__cta-buttons {
    display: flex;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping on small screens */
    width: 100%; /* For mobile responsiveness */
    max-width: 100%; /* For mobile responsiveness */
    box-sizing: border-box; /* For mobile responsiveness */
}

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

/* Hero Section */
.page-login__hero-section {
    background: linear-gradient(135deg, #0A0A0A 0%, #1a1a1a 100%); /* Dark gradient background */
    padding-top: var(--header-offset, 120px); /* For fixed header */
    padding-bottom: 60px;
    position: relative;
    overflow: hidden;
}

.page-login__hero-content-wrapper {
    display: flex;
    flex-direction: column; /* Default to column for mobile first, will change to row for desktop */
    align-items: center;
    text-align: center;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.page-login__hero-text {
    flex: 1;
    max-width: 700px;
    z-index: 1;
}

.page-login__main-title {
    font-size: clamp(2.5em, 5vw, 3.5em); /* H1 font size control */
    font-weight: 800;
    color: #FFD36B; /* Auxiliary color for main title */
    margin-bottom: 15px;
    line-height: 1.1;
}

.page-login__tagline {
    font-size: 1.2em;
    color: #FFF6D6;
    margin-bottom: 30px;
}

.page-login__hero-image-container {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1;
    margin-top: 30px; /* Space between text and image on mobile */
}

.page-login__hero-image {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
    display: block; /* Ensure it behaves as a block element */
    min-width: 200px; /* Minimum size requirement */
    min-height: 200px; /* Minimum size requirement */
    object-fit: cover; /* Ensure images cover the area without distortion */
}

/* Login Form Section */
.page-login__form-section {
    background-color: #0A0A0A; /* Dark background */
    padding: 80px 0;
}

.page-login__login-form {
    background-color: #111111; /* Card BG color */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
    max-width: 500px;
    margin: 40px auto 0 auto;
    border: 1px solid #3A2A12; /* Border color */
}

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

.page-login__form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #FFF6D6; /* Text Main color */
    font-size: 1.1em;
}

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #3A2A12; /* Border color */
    border-radius: 8px;
    background-color: #0A0A0A; /* Darker input background */
    color: #FFF6D6; /* Input text color */
    font-size: 1em;
    box-sizing: border-box;
    transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.page-login__form-input::placeholder {
    color: rgba(255, 246, 214, 0.5); /* Lighter placeholder text */
}

.page-login__form-input:focus {
    border-color: #FFD36B; /* Glow color on focus */
    box-shadow: 0 0 8px rgba(255, 211, 107, 0.6);
    outline: none;
}

.page-login__form-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 30px;
    flex-wrap: wrap; /* Allow wrapping */
    gap: 15px;
}

.page-login__submit-button {
    flex-grow: 1;
    min-width: 150px;
}

.page-login__forgot-password-link {
    color: #FFD36B; /* Auxiliary color for links */
    text-decoration: none;
    font-size: 0.95em;
    transition: color 0.3s ease;
}

.page-login__forgot-password-link:hover {
    color: #F2C14E; /* Primary color on hover */
}

.page-login__register-prompt {
    text-align: center;
    margin-top: 25px;
    color: #FFF6D6;
}

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

.page-login__register-link:hover {
    color: #F2C14E;
}

/* Benefits Section */
.page-login__benefits-section {
    background-color: #0A0A0A; /* Dark background */
    padding: 80px 0;
}

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

.page-login__benefit-card,
.page-login__gaming-card {
    background-color: #111111; /* Card BG color */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #3A2A12;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #FFF6D6;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.page-login__benefit-card:hover,
.page-login__gaming-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 25px rgba(255, 211, 107, 0.2);
}

.page-login__benefit-icon,
.page-login__gaming-image {
    max-width: 100%; /* Ensure images are responsive */
    height: auto;
    margin-bottom: 20px;
    border-radius: 8px;
    min-width: 200px;
    min-height: 200px;
    object-fit: cover; /* Ensure images cover the area without distortion */
}

.page-login__card-title {
    font-size: 1.5em;
    font-weight: bold;
    margin-bottom: 15px;
    color: #FFD36B; /* Auxiliary color for card titles */
    line-height: 1.3;
}

.page-login__card-text {
    font-size: 1em;
    color: #FFF6D6;
    flex-grow: 1; /* Make sure text takes available space */
}

/* Gaming Options Section */
.page-login__gaming-options-section {
    background-color: #0A0A0A; /* Using body background for consistency */
    padding: 80px 0;
}

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

.page-login__gaming-card .page-login__btn-primary {
    margin-top: 20px;
    width: 100%;
}

/* Dark section specific styles */
.page-login__dark-section {
    background-color: #0A0A0A; /* Ensure background is dark */
    color: #FFF6D6; /* Light text for dark background */
}

.page-login__text-contrast-fix {
    color: #FFF6D6; /* Ensure light text on dark background */
}

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

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

.page-login__faq-item {
    background-color: #111111; /* Card BG color */
    border: 1px solid #3A2A12;
    border-radius: 10px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-login__faq-item.active {
    box-shadow: 0 0 15px rgba(255, 211, 107, 0.2);
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    background-color: #111111;
    color: #FFD36B; /* Auxiliary color for questions */
    font-size: 1.2em;
    font-weight: bold;
    transition: background-color 0.3s ease;
}

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

.page-login__faq-question h3 {
    margin: 0;
    color: inherit;
    font-size: 1em; /* Reset h3 font size within question */
}

.page-login__faq-toggle {
    font-size: 1.8em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #F2C14E; /* Primary color for toggle icon */
}

.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;
    background-color: #0A0A0A; /* Darker background for answer */
    color: #FFF6D6;
}

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

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

/* CTA Section at bottom */
.page-login__cta-section {
    background: linear-gradient(135deg, #0A0A0A 0%, #1a1a1a 100%); /* Dark gradient background */
    padding: 80px 0;
    text-align: center;
}

.page-login__cta-content {
    max-width: 800px;
}

/* Responsive Design */
@media (min-width: 769px) {
    .page-login__hero-content-wrapper {
        flex-direction: row;
        text-align: left;
    }

    .page-login__hero-text {
        text-align: left;
    }

    .page-login__hero-image-container {
        margin-top: 0;
    }

    .page-login__cta-buttons {
        justify-content: flex-start; /* Align buttons to the left on desktop */
    }

    .page-login__cta-section .page-login__cta-buttons {
        justify-content: center; /* Keep centered for bottom CTA */
    }
}

@media (max-width: 768px) {
    .page-login__section {
        padding: 40px 0;
    }

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

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

    .page-login__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Mobile fixed header padding */
        padding-bottom: 40px;
    }

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

    .page-login__tagline {
        font-size: 1em;
    }

    .page-login__cta-buttons {
        flex-direction: column;
        gap: 15px;
        align-items: center;
        padding: 0 15px; /* Add padding to container */
    }

    .page-login__btn-primary,
    .page-login__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-login__form-section {
        padding: 60px 0;
    }

    .page-login__login-form {
        padding: 30px 20px;
        margin-top: 20px;
    }

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

    .page-login__submit-button {
        width: 100%;
    }

    .page-login__benefits-grid,
    .page-login__gaming-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 30px;
    }
    
    .page-login__benefit-icon,
    .page-login__gaming-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }

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

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

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

    /* Mobile image responsive optimization */
    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block;
        filter: none !important; /* Ensure no filter on images */
    }
    
    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__cta-buttons,
    .page-login__button-group,
    .page-login__btn-container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
}