/* style/login.css */

/* Base styles for the login page */
.page-login {
    background-color: #08160F; /* Background */
    color: #F2FFF6; /* Text Main */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    padding-bottom: 60px; /* Ensure space above footer */
}

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

/* Hero Section */
.page-login__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding, body handles header offset */
    overflow: hidden; /* Ensure content doesn't spill */
}

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

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

.page-login__hero-content {
    max-width: 800px;
    margin-top: 20px;
    z-index: 1;
}

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

.page-login__hero-description {
    font-size: 1.1em;
    color: #A7D9B8; /* Text Secondary */
    margin-bottom: 30px;
}

/* Section Titles & Descriptions */
.page-login__section-title {
    font-size: 2.5em;
    font-weight: 700;
    color: #F2FFF6; /* Text Main */
    text-align: center;
    margin-bottom: 20px;
    padding-top: 40px;
}

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

/* Login Form Section */
.page-login__form-section {
    padding: 60px 20px;
    background-color: #08160F; /* Background */
}

.page-login__login-form {
    background-color: #11271B; /* Card BG */
    padding: 40px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    max-width: 500px;
    margin: 0 auto;
    border: 1px solid #2E7A4E; /* Border */
}

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

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

.page-login__form-input {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 8px;
    background-color: #0A4B2C; /* Deep Green for input background */
    color: #F2FFF6; /* Text Main */
    font-size: 1em;
}

.page-login__form-input::placeholder {
    color: #A7D9B8; /* Text Secondary */
}

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

.page-login__checkbox-label {
    color: #A7D9B8; /* Text Secondary */
    font-size: 0.95em;
    display: flex;
    align-items: center;
}

.page-login__checkbox {
    margin-right: 8px;
    accent-color: #11A84E; /* Accent color from main palette */
}

.page-login__forgot-password-link {
    color: #22C768; /* Auxiliary color for links */
    text-decoration: none;
    font-size: 0.95em;
}

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

.page-login__btn-primary {
    display: block;
    width: 100%;
    padding: 14px 25px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(180deg, #2AD16F 0%, #13994A 100%); /* Button gradient */
    color: #F2FFF6; /* Text Main */
    font-size: 1.1em;
    font-weight: 700;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: background 0.3s ease;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__btn-primary:hover {
    background: linear-gradient(180deg, #13994A 0%, #2AD16F 100%);
}

.page-login__register-text {
    text-align: center;
    margin-top: 25px;
    color: #A7D9B8; /* Text Secondary */
}

.page-login__register-link {
    color: #22C768; /* Auxiliary color for links */
    text-decoration: none;
    font-weight: 600;
}

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

/* Benefits Section */
.page-login__benefits-section {
    padding: 60px 20px;
    background-color: #0A4B2C; /* Deep Green for section background */
}

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

.page-login__benefit-card {
    background-color: #11271B; /* Card BG */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #2E7A4E; /* Border */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-login__benefit-icon {
    width: 100%;
    height: auto;
    max-width: 250px;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Enforce min image size */
    min-height: 150px; /* Enforce min image size */
}

.page-login__benefit-title {
    font-size: 1.5em;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 15px;
    font-weight: 600;
}

.page-login__benefit-text {
    color: #A7D9B8; /* Text Secondary */
    font-size: 0.95em;
}

/* Security Section */
.page-login__security-section {
    padding: 60px 20px;
    background-color: #08160F; /* Background */
}

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

.page-login__security-item {
    background-color: #11271B; /* Card BG */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    border: 1px solid #2E7A4E; /* Border */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.page-login__security-icon {
    width: 100%;
    height: auto;
    max-width: 180px;
    margin-bottom: 20px;
    border-radius: 8px;
    object-fit: cover;
    min-width: 200px; /* Enforce min image size */
    min-height: 150px; /* Enforce min image size */
}

.page-login__security-title {
    font-size: 1.4em;
    color: #F2FFF6; /* Text Main */
    margin-bottom: 10px;
    font-weight: 600;
}

.page-login__security-text {
    color: #A7D9B8; /* Text Secondary */
    font-size: 0.9em;
}

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

.page-login__btn-secondary {
    display: inline-block;
    padding: 12px 25px;
    border: 2px solid #2AD16F; /* Button border with primary green */
    border-radius: 8px;
    background-color: transparent;
    color: #2AD16F; /* Primary green for text */
    font-size: 1em;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-login__btn-secondary:hover {
    background-color: #2AD16F;
    color: #08160F; /* Dark background color for hover */
}

/* Games Overview Section */
.page-login__games-overview-section {
    padding: 60px 20px;
    background-color: #0A4B2C; /* Deep Green for section background */
}

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

.page-login__game-card {
    background-color: #11271B; /* Card BG */
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #2E7A4E; /* Border */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.page-login__game-image {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    min-width: 200px; /* Enforce min image size */
    min-height: 150px; /* Enforce min image size */
}

.page-login__game-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-login__game-title a {
    color: #F2FFF6; /* Text Main */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__game-title a:hover {
    color: #22C768; /* Auxiliary color for hover */
}

.page-login__game-text {
    color: #A7D9B8; /* Text Secondary */
    font-size: 0.9em;
}

/* Promotions Section */
.page-login__promotions-section {
    padding: 60px 20px;
    background-color: #08160F; /* Background */
}

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

.page-login__promo-card {
    background-color: #11271B; /* Card BG */
    padding: 25px;
    border-radius: 12px;
    border: 1px solid #2E7A4E; /* Border */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
    text-align: center;
}

.page-login__promo-image {
    width: 100%;
    height: auto;
    max-height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 15px;
    min-width: 200px; /* Enforce min image size */
    min-height: 112px; /* Enforce min image size (for 16:9 aspect ratio if min-width 200) */
}

.page-login__promo-title {
    font-size: 1.3em;
    margin-bottom: 10px;
    font-weight: 600;
}

.page-login__promo-title a {
    color: #F2FFF6; /* Text Main */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-login__promo-title a:hover {
    color: #22C768; /* Auxiliary color for hover */
}

.page-login__promo-text {
    color: #A7D9B8; /* Text Secondary */
    font-size: 0.9em;
}

/* FAQ Section */
.page-login__faq-section {
    padding: 60px 20px;
    background-color: #0A4B2C; /* Deep Green for section background */
}

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

.page-login__faq-item {
    background-color: #11271B; /* Card BG */
    border: 1px solid #2E7A4E; /* Border */
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
}

.page-login__faq-item summary {
    list-style: none; /* Hide default marker */
    cursor: pointer;
    padding: 20px 25px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.1em;
    font-weight: 600;
    color: #F2FFF6; /* Text Main */
    transition: background-color 0.3s ease;
}

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

.page-login__faq-item summary:hover {
    background-color: #1E3A2A; /* Divider color for hover */
}

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

.page-login__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    margin-left: 15px;
    color: #2AD16F; /* Primary green */
}

.page-login__faq-item[open] .page-login__faq-toggle {
    content: "−";
}

.page-login__faq-answer {
    padding: 0 25px 20px 25px;
    color: #A7D9B8; /* Text Secondary */
    font-size: 0.95em;
    line-height: 1.7;
}

.page-login__faq-answer p {
    margin-bottom: 0;
}

.page-login__faq-answer a {
    color: #22C768; /* Auxiliary color for links */
    text-decoration: none;
}

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

/* Responsive styles */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: clamp(2em, 5vw, 3em);
    }

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

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

    .page-login__hero-image-wrapper {
        margin-bottom: 20px;
    }

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

    .page-login__hero-description {
        font-size: 1em;
        margin-bottom: 25px;
    }

    .page-login__section-title {
        font-size: 1.8em;
        padding-top: 30px;
    }

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

    .page-login__form-section,
    .page-login__benefits-section,
    .page-login__security-section,
    .page-login__games-overview-section,
    .page-login__promotions-section,
    .page-login__faq-section {
        padding: 30px 15px;
    }

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

    .page-login__form-input {
        width: calc(100% - 20px) !important; /* Ensure full width */
        padding: 10px 10px;
    }

    .page-login__btn-primary,
    .page-login__btn-secondary {
        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__cta-area {
        margin-top: 30px;
    }

    .page-login__benefits-grid,
    .page-login__security-features,
    .page-login__games-grid,
    .page-login__promotions-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        margin-top: 25px;
    }

    .page-login__benefit-card,
    .page-login__security-item,
    .page-login__game-card,
    .page-login__promo-card {
        padding: 20px;
    }

    .page-login__benefit-icon,
    .page-login__security-icon,
    .page-login__game-image,
    .page-login__promo-image {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important; /* Enforce min image size */
        min-height: auto !important; /* Auto height for responsive images */
    }
    
    .page-login__faq-item summary {
        padding: 15px 20px;
        font-size: 1em;
    }

    .page-login__faq-answer {
        padding: 0 20px 15px 20px;
        font-size: 0.9em;
    }
    
    /* Ensure containers for images/videos/buttons are responsive */
    .page-login__section,
    .page-login__card,
    .page-login__container,
    .page-login__form-section,
    .page-login__benefits-section,
    .page-login__security-section,
    .page-login__games-overview-section,
    .page-login__promotions-section,
    .page-login__faq-section,
    .page-login__login-form,
    .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;
      overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    
    /* Remove redundant padding for sections that already have it from the container */
    .page-login__form-section,
    .page-login__benefits-section,
    .page-login__security-section,
    .page-login__games-overview-section,
    .page-login__promotions-section,
    .page-login__faq-section {
        padding-left: 0;
        padding-right: 0;
    }
    
    .page-login__hero-section {
        padding-left: 15px;
        padding-right: 15px;
    }
    
    /* Specific adjustment for hero image wrapper padding if needed */
    .page-login__hero-image-wrapper {
        padding-left: 0;
        padding-right: 0;
    }
}