/* style/login.css */

/* Base styles for the login page */
.page-login {
    font-family: 'Arial', sans-serif;
    color: #FFF5E1; /* Text Main */
    line-height: 1.6;
    background-color: #B71C1C; /* Background */
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding as per instruction */
    padding-bottom: 60px;
    display: flex;
    flex-direction: column; /* Image above content */
    align-items: center;
    text-align: center;
    overflow: hidden; /* Ensure no overflow for image */
}

.page-login__hero-image-wrapper {
    width: 100%;
    max-height: 500px; /* Limit height for hero image */
    overflow: hidden;
    margin-bottom: 40px; /* Space between image and content */
}

.page-login__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover;
}

.page-login__hero-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 0 20px;
}

.page-login__main-title {
    font-size: clamp(2.5rem, 5vw, 3.5rem); /* Responsive H1 font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #FFF5E1; /* Text Main */
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

.page-login__description {
    font-size: 1.1rem;
    margin-bottom: 30px;
    color: #FFF5E1; /* Text Main */
}

/* Login Form */
.page-login__form {
    background-color: rgba(211, 47, 47, 0.85); /* Card BG with transparency */
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
    max-width: 450px;
    margin: 0 auto 30px;
    border: 2px solid #F2B544; /* Border */
}

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

.page-login__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #FFF5E1; /* Text Main */
}

.page-login__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #F4D34D; /* Gold border */
    border-radius: 8px;
    background-color: rgba(0, 0, 0, 0.3);
    color: #FFF5E1; /* Text Main */
    font-size: 1rem;
    box-sizing: border-box;
}

.page-login__form-input::placeholder {
    color: rgba(255, 245, 225, 0.7); /* Lighter placeholder */
}

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

.page-login__form-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 25px;
}

.page-login__login-button,
.page-login__btn-primary,
.page-login__btn-secondary {
    display: block;
    width: 100%;
    padding: 14px 25px;
    border: none;
    border-radius: 8px;
    font-size: 1.1rem;
    font-weight: 700;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-sizing: border-box;
    white-space: normal; /* Allow text wrap */
    word-wrap: break-word; /* Allow text wrap */
}

.page-login__login-button,
.page-login__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button gradient */
    color: #333333; /* Dark text for contrast on gold button */
    box-shadow: 0 4px 15px rgba(255, 216, 106, 0.4);
}

.page-login__login-button:hover,
.page-login__btn-primary:hover {
    background: linear-gradient(180deg, #E6B800 0%, #FFD86A 100%);
    box-shadow: 0 6px 20px rgba(255, 216, 106, 0.6);
    transform: translateY(-2px);
}

.page-login__register-link,
.page-login__forgot-password-link {
    color: #F4D34D; /* Gold */
    text-decoration: none;
    font-size: 0.95rem;
    transition: color 0.3s ease;
    text-align: center;
}

.page-login__register-link:hover,
.page-login__forgot-password-link:hover {
    color: #FFCC66; /* Glow */
    text-decoration: underline;
}

/* General Section Styling */
.page-login__benefits-section,
.page-login__games-preview-section,
.page-login__faq-section,
.page-login__cta-section {
    padding: 60px 20px;
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.page-login__section-title {
    font-size: clamp(2rem, 4vw, 2.8rem);
    font-weight: 700;
    margin-bottom: 40px;
    color: #FFF5E1; /* Text Main */
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.4);
}

/* Benefits Section */
.page-login__benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.page-login__benefit-card {
    background-color: #D32F2F; /* Card BG */
    padding: 30px;
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    border: 1px solid #F2B544; /* Border */
    transition: transform 0.3s ease;
}

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

.page-login__benefit-icon {
    width: 100px; /* Adjust size, ensuring min 200x200px for original image, display smaller */
    height: 100px;
    object-fit: contain;
    margin-bottom: 20px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-login__card-title {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 15px;
    color: #FFCC66; /* Glow */
}

.page-login__card-description {
    font-size: 1rem;
    color: #FFF5E1; /* Text Main */
}

/* Games Preview Section */
.page-login__games-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
    margin-bottom: 40px;
}

.page-login__game-card {
    display: block;
    background-color: #D32F2F; /* Card BG */
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
    text-decoration: none;
    color: #FFF5E1; /* Text Main */
    border: 1px solid #F2B544; /* Border */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.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 consistency */
    object-fit: cover;
    display: block;
}

.page-login__game-title {
    font-size: 1.3rem;
    font-weight: 600;
    padding: 20px;
    color: #FFCC66; /* Glow */
}

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

.page-login__btn-secondary {
    background-color: transparent;
    border: 2px solid #F4D34D; /* Gold border */
    color: #F4D34D; /* Gold text */
    padding: 14px 25px;
}

.page-login__btn-secondary:hover {
    background-color: #F4D34D; /* Gold background on hover */
    color: #333333; /* Dark text for contrast */
    box-shadow: 0 4px 15px rgba(244, 211, 77, 0.4);
    transform: translateY(-2px);
}

/* FAQ Section */
.page-login__faq-list {
    margin-top: 40px;
    text-align: left;
}

.page-login__faq-item {
    background-color: #D32F2F; /* Card BG */
    margin-bottom: 15px;
    border-radius: 10px;
    border: 1px solid #F2B544; /* Border */
    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;
    font-size: 1.2rem;
    font-weight: 600;
    color: #FFCC66; /* Glow */
    cursor: pointer;
    background-color: #7A0E0E; /* Deep Red */
    border-bottom: 1px solid rgba(242, 181, 68, 0.3); /* Lighter border */
    transition: background-color 0.3s ease;
    list-style: none; /* Remove default marker for details */
}

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

.page-login__faq-question:hover {
    background-color: #C91F17; /* Main color on hover */
}

.page-login__faq-qtext {
    flex-grow: 1;
}

.page-login__faq-toggle {
    font-size: 1.5rem;
    font-weight: 700;
    margin-left: 15px;
    color: #F4D34D; /* Gold */
}

.page-login__faq-answer {
    padding: 20px;
    font-size: 1rem;
    color: #FFF5E1; /* Text Main */
    background-color: #D32F2F; /* Card BG */
    border-top: 1px solid rgba(242, 181, 68, 0.2);
}

/* CTA Section (reuse styles where possible) */
.page-login__cta-section {
    padding-bottom: 80px;
}
.page-login__cta-section .page-login__description {
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
}

/* --- Responsive Styles (Desktop/Tablet/Mobile) --- */

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

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

    /* HERO Section */
    .page-login__hero-section {
        padding-top: 10px !important; /* Ensure small top padding on mobile */
        padding-bottom: 40px;
    }

    .page-login__hero-image-wrapper {
        max-height: 300px;
        margin-bottom: 30px;
    }

    .page-login__main-title {
        font-size: clamp(2rem, 8vw, 2.5rem);
        margin-bottom: 15px;
    }

    .page-login__description {
        font-size: 1rem;
        margin-bottom: 25px;
        padding: 0 15px; /* Add padding to description for better readability */
    }

    /* Login Form */
    .page-login__form {
        padding: 30px;
        margin: 0 15px 30px; /* Add horizontal margin */
        max-width: calc(100% - 30px); /* Adjust max-width for padding */
    }

    .page-login__form-input {
        padding: 10px 12px;
        font-size: 0.95rem;
    }

    .page-login__login-button,
    .page-login__btn-primary,
    .page-login__btn-secondary,
    .page-login a[class*="button"],
    .page-login a[class*="btn"] {
        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;
        font-size: 1rem;
    }

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

    /* General Sections & Containers */
    .page-login__benefits-section,
    .page-login__games-preview-section,
    .page-login__faq-section,
    .page-login__cta-section {
        padding: 40px 15px;
    }

    .page-login__section-title {
        font-size: clamp(1.8rem, 7vw, 2.2rem);
        margin-bottom: 30px;
    }

    /* Benefits Grid */
    .page-login__benefits-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
    }

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

    .page-login__benefit-icon {
        width: 80px;
        height: 80px;
    }

    /* Games Grid */
    .page-login__games-grid {
        grid-template-columns: 1fr; /* Single column on mobile */
        gap: 20px;
        margin-bottom: 30px;
    }

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

    .page-login__game-title {
        font-size: 1.2rem;
        padding: 15px;
    }

    /* CTA Buttons (for multiple buttons) */
    .page-login__cta-buttons {
        flex-direction: column; /* Stack buttons vertically */
        gap: 15px;
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    
    .page-login__cta-buttons .page-login__btn-primary,
    .page-login__cta-buttons .page-login__btn-secondary {
        max-width: 100% !important;
        width: 100% !important;
    }


    /* FAQ Section */
    .page-login__faq-question {
        padding: 15px;
        font-size: 1.1rem;
    }

    .page-login__faq-answer {
        padding: 15px;
        font-size: 0.95rem;
    }

    /* Ensure all content containers are responsive */
    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__form,
    .page-login__benefits-grid,
    .page-login__games-grid,
    .page-login__faq-list {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }
    /* Specific override for elements that already have padding in their mobile specific styles to avoid double padding */
    .page-login__form {
        padding-left: 30px; /* Keep form's internal padding */
        padding-right: 30px;
    }
    .page-login__hero-content {
        padding-left: 15px;
        padding-right: 15px;
    }
}

/* Tablet styles (optional, can be similar to desktop or an intermediate step) */
@media (min-width: 769px) and (max-width: 1024px) {
    .page-login__hero-image-wrapper {
        max-height: 400px;
    }
    .page-login__main-title {
        font-size: clamp(2.8rem, 4.5vw, 3.2rem);
    }
    .page-login__description {
        font-size: 1.05rem;
    }
    .page-login__form {
        max-width: 400px;
    }
    .page-login__benefits-grid,
    .page-login__games-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
    }
    .page-login__game-image {
        height: 180px;
    }
    .page-login__cta-buttons {
        gap: 15px;
    }
}