/* style/login.css */
.page-login {
    color: #ffffff; /* Body background is dark, so text is light */
    font-family: Arial, sans-serif;
    line-height: 1.6;
    background-color: #000000; /* Ensure consistency with body background */
}

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

.page-login__section {
    padding: 60px 0;
    position: relative;
    z-index: 1;
}

.page-login__hero-section {
    position: relative;
    width: 100%;
    min-height: 700px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #ffffff;
    overflow: hidden;
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    box-sizing: border-box;
}

.page-login__hero-background-img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -2;
}

.page-login__hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7); /* Dark overlay for text readability */
    z-index: -1;
}

.page-login__hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
}

.page-login__main-title {
    font-size: 3.2em;
    margin-bottom: 20px;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.5);
}

.page-login__intro-text {
    font-size: 1.2em;
    margin-bottom: 40px;
    color: #f0f0f0;
}

.page-login__form-wrapper {
    background: rgba(255, 255, 255, 0.1);
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.5);
    max-width: 450px;
    margin: 40px auto 0;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

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

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

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

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

.page-login__form-input::placeholder {
    color: rgba(255, 255, 255, 0.6);
}

.page-login__form-options {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    font-size: 0.9em;
}

.page-login__remember-me {
    display: flex;
    align-items: center;
}

.page-login__checkbox {
    margin-right: 8px;
    accent-color: #26A9E0;
}

.page-login__checkbox-label {
    color: #f0f0f0;
}

.page-login__forgot-password {
    color: #26A9E0;
    text-decoration: none;
}

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

.page-login__submit-button {
    width: 100%;
    padding: 15px;
    border: none;
    border-radius: 5px;
    font-size: 1.1em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
    background-color: #EA7C07; /* Custom color for Login */
    color: #ffffff; /* Button text always white */
}

.page-login__submit-button:hover {
    background-color: #d16b06;
}

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

.page-login__register-link {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
}

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

.page-login__section-title {
    font-size: 2.5em;
    color: #ffffff;
    text-align: center;
    margin-bottom: 20px;
    position: relative;
    padding-bottom: 10px;
}

.page-login__section-title::after {
    content: '';
    position: absolute;
    left: 50%;
    bottom: 0;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background-color: #26A9E0;
    border-radius: 2px;
}

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

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

.page-login__benefit-item, .page-login__troubleshoot-item, .page-login__category-card, .page-login__promotion-card {
    background: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.page-login__benefit-item:hover, .page-login__troubleshoot-item:hover, .page-login__category-card:hover, .page-login__promotion-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.3);
}

.page-login__benefit-icon {
    width: 100%;
    height: auto;
    max-height: 200px;
    object-fit: contain;
    margin-bottom: 20px;
    border-radius: 8px;
}

.page-login__benefit-title, .page-login__troubleshoot-title, .page-login__category-title, .page-login__promotion-title, .page-login__guide-step-title, .page-login__security-feature-title {
    font-size: 1.5em;
    color: #26A9E0;
    margin-bottom: 15px;
}

.page-login__benefit-text, .page-login__troubleshoot-text, .page-login__category-text, .page-login__promotion-text, .page-login__guide-step-text, .page-login__security-feature-text {
    font-size: 1em;
    color: #f0f0f0;
}

.page-login__guide-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}

.page-login__guide-item {
    background: rgba(255, 255, 255, 0.05);
    padding: 25px 30px;
    margin-bottom: 20px;
    border-radius: 8px;
    border-left: 5px solid #26A9E0;
    color: #ffffff;
}

.page-login__guide-item:last-child {
    margin-bottom: 0;
}

.page-login__btn-secondary {
    display: inline-block;
    background: #ffffff;
    color: #26A9E0;
    padding: 10px 20px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s ease, color 0.3s ease;
    border: 2px solid #26A9E0;
}

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

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

.page-login__security-item {
    background: rgba(255, 255, 255, 0.08);
    padding: 30px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    color: #ffffff;
}

.page-login__faq-list {
    margin-top: 40px;
}

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

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    background-color: rgba(38, 169, 224, 0.2); /* #26A9E0 with opacity */
    transition: background-color 0.3s ease;
}

.page-login__faq-question:hover {
    background-color: rgba(38, 169, 224, 0.4);
}

.page-login__faq-question h3 {
    margin: 0;
    color: #ffffff;
}

.page-login__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    transition: transform 0.3s ease;
    color: #ffffff;
}

.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, padding 0.3s ease;
    color: #f0f0f0;
}

.page-login__faq-item.active .page-login__faq-answer {
    max-height: 1000px !important; /* Sufficient height for content */
    padding: 15px 25px 25px;
}

.page-login__cta-section {
    background-color: #26A9E0;
    padding: 80px 0;
    text-align: center;
}

.page-login__cta-section .page-login__section-title {
    color: #ffffff;
}

.page-login__cta-section .page-login__section-title::after {
    background-color: #ffffff;
}

.page-login__cta-section .page-login__section-description {
    color: #f0f0f0;
}

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

.page-login__btn-primary {
    background: #EA7C07;
    color: #ffffff;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease;
    border: none;
    cursor: pointer;
}

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

.page-login__cta-button {
    display: inline-block;
    box-sizing: border-box;
}

/* Responsive styles */
@media (max-width: 1024px) {
    .page-login__main-title {
        font-size: 2.8em;
    }

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

@media (max-width: 768px) {
    .page-login {
        font-size: 16px;
        line-height: 1.6;
    }

    .page-login__main-title {
        font-size: 2.2em;
        margin-bottom: 15px;
    }

    .page-login__intro-text {
        font-size: 1em;
        margin-bottom: 30px;
    }

    .page-login__form-wrapper {
        padding: 30px 20px;
        margin: 30px auto 0;
    }

    .page-login__form-title {
        font-size: 1.8em;
        margin-bottom: 20px;
    }

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

    .page-login__section-title {
        font-size: 1.8em;
        padding-bottom: 8px;
        margin-bottom: 15px;
    }

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

    .page-login__benefits-grid, .page-login__troubleshoot-grid, .page-login__game-categories, .page-login__promotions-grid, .page-login__security-list {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .page-login__benefit-item, .page-login__troubleshoot-item, .page-login__category-card, .page-login__promotion-card, .page-login__security-item {
        padding: 20px;
    }

    .page-login__benefit-title, .page-login__troubleshoot-title, .page-login__category-title, .page-login__promotion-title, .page-login__guide-step-title, .page-login__security-feature-title {
        font-size: 1.3em;
    }

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

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

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

    .page-login__cta-buttons {
        flex-direction: column;
        align-items: center;
        gap: 15px;
    }

    .page-login__cta-button {
        width: 100%;
        max-width: 300px; /* Constrain button width on small screens */
    }
    
    /* Mobile image, video, button responsive important styles */
    .page-login img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    
    .page-login__section,
    .page-login__container,
    .page-login__form-wrapper,
    .page-login__benefits-grid,
    .page-login__troubleshoot-grid,
    .page-login__game-categories,
    .page-login__promotions-grid,
    .page-login__security-list,
    .page-login__faq-list,
    .page-login__cta-buttons {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
        overflow-x: hidden;
    }

    .page-login__hero-section {
        padding-top: var(--header-offset, 120px) !important;
    }

    .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;
    }
}

@media (max-width: 480px) {
    .page-login__main-title {
        font-size: 1.8em;
    }

    .page-login__form-title {
        font-size: 1.5em;
    }

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

    .page-login__form-wrapper {
        padding: 25px 15px;
    }

    .page-login__form-options {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}