/* style/login.css */
:root {
    --primary-color: #11A84E;
    --secondary-color: #22C768;
    --button-gradient: linear-gradient(180deg, #2AD16F 0%, #13994A 100%);
    --card-bg: #11271B;
    --background-color-page: #08160F;
    --text-main-color: #F2FFF6;
    --text-secondary-color: #A7D9B8;
    --border-color: #2E7A4E;
    --glow-color: #57E38D;
    --gold-color: #F2C14E;
    --divider-color: #1E3A2A;
    --deep-green-color: #0A4B2C;
}

.page-login {
    font-family: Arial, sans-serif;
    color: var(--text-main-color); /* Default text color for dark background */
    background-color: var(--background-color-page);
}

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

.page-login__section-title {
    font-weight: bold;
    text-align: center;
    margin-bottom: 20px;
    color: var(--text-main-color);
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.page-login__section-description {
    text-align: center;
    margin-bottom: 40px;
    color: var(--text-secondary-color);
    line-height: 1.5;
}

/* Hero Section */
.page-login__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    padding-top: 10px; /* Small top padding as body handles header offset */
    background-color: var(--background-color-page);
    overflow: hidden;
}

.page-login__hero-image-wrapper {
    width: 100%;
    max-width: 100%;
    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 {
    text-align: center;
    max-width: 800px;
}

.page-login__main-title {
    font-weight: 900;
    color: var(--gold-color);
    line-height: 1.1;
    letter-spacing: -0.03em;
    margin-bottom: 20px;
}

.page-login__hero-description {
    color: var(--text-secondary-color);
    margin-bottom: 30px;
    line-height: 1.6;
}

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

.page-login__btn-primary,
.page-login__btn-secondary {
    padding: 14px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: all 0.3s ease;
    white-space: nowrap;
    box-sizing: border-box;
    max-width: 100%;
}

.page-login__btn-primary {
    background: var(--button-gradient);
    color: #ffffff;
    border: none;
    box-shadow: 0 4px 15px rgba(42, 209, 111, 0.4);
}

.page-login__btn-primary:hover {
    opacity: 0.9;
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(42, 209, 111, 0.6);
}

.page-login__btn-secondary {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.page-login__btn-secondary:hover {
    background-color: var(--primary-color);
    color: #ffffff;
    transform: translateY(-2px);
}

/* Intro Section */
.page-login__intro-section {
    padding: 80px 0;
}

.page-login__dark-section {
    background-color: var(--card-bg);
    color: var(--text-main-color);
}

.page-login__dark-section .page-login__section-title {
    color: var(--text-main-color);
}

.page-login__dark-section .page-login__section-description {
    color: var(--text-secondary-color);
}

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

.page-login__feature-item {
    background-color: var(--deep-green-color);
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.page-login__feature-title {
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-login__feature-text {
    color: var(--text-secondary-color);
    line-height: 1.6;
}

/* Video Section */
.page-login__video-section {
    padding: 80px 0;
    padding-top: 10px; /* Small top padding for video section */
    text-align: center;
}

.page-login__video-link-wrapper {
    display: block;
    margin: 40px auto;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
    cursor: pointer;
}

.page-login__video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 Aspect Ratio */
    height: 0;
    overflow: hidden;
    background-color: #000;
    border-radius: 12px;
    max-width: 100%;
    width: 100%;
    box-sizing: border-box;
}

.page-login__video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.page-login__cta-buttons--video {
    margin-top: 30px;
}

/* Guide Section */
.page-login__guide-section {
    padding: 80px 0;
    background-color: var(--background-color-page);
}

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

.page-login__step-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid var(--border-color);
}

.page-login__step-title {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-login__step-text {
    color: var(--text-secondary-color);
    line-height: 1.6;
}

.page-login__note-block {
    background-color: var(--deep-green-color);
    padding: 25px;
    border-radius: 12px;
    margin-top: 40px;
    border: 1px solid var(--border-color);
}

.page-login__note-title {
    color: var(--gold-color);
    margin-bottom: 10px;
    font-weight: bold;
}

.page-login__note-text {
    color: var(--text-secondary-color);
    line-height: 1.6;
}

/* Features Section (post-login) */
.page-login__features-section {
    padding: 80px 0;
}

.page-login__card {
    background-color: var(--deep-green-color);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid var(--border-color);
    display: flex;
    flex-direction: column;
    align-items: center;
    color: var(--text-secondary-color);
}

.page-login__card-image {
    width: 100%;
    height: auto;
    max-height: 250px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 20px;
    display: block;
    min-width: 200px;
    min-height: 200px;
}

.page-login__card-title {
    color: var(--gold-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-login__card-text {
    line-height: 1.6;
    margin-bottom: 20px;
}

.page-login__game-list {
    list-style: none;
    padding: 0;
    margin-bottom: 20px;
    text-align: left;
    width: 100%;
    color: var(--text-secondary-color);
}

.page-login__game-list li {
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.page-login__game-list li::before {
    content: '•';
    color: var(--primary-color);
    position: absolute;
    left: 0;
    font-weight: bold;
}

.page-login__card-link {
    color: var(--primary-color);
    text-decoration: none;
    font-weight: bold;
    margin-top: auto; /* Pushes link to bottom */
    display: inline-block;
    padding: 8px 15px;
    border: 1px solid var(--primary-color);
    border-radius: 5px;
    transition: background-color 0.3s ease, color 0.3s ease;
}

.page-login__card-link:hover {
    background-color: var(--primary-color);
    color: #ffffff;
}

/* Troubleshoot Section */
.page-login__troubleshoot-section {
    padding: 80px 0;
    background-color: var(--background-color-page);
}

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

.page-login__troubleshoot-item {
    background-color: var(--card-bg);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    text-align: center;
    border: 1px solid var(--border-color);
}

.page-login__troubleshoot-title {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-weight: bold;
}

.page-login__troubleshoot-text {
    color: var(--text-secondary-color);
    line-height: 1.6;
    margin-bottom: 20px;
}

/* Register CTA Section */
.page-login__register-cta-section {
    padding: 80px 0;
}

/* FAQ Section */
.page-login__faq-section {
    padding: 80px 0;
    background-color: var(--background-color-page);
}

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

.page-login__faq-item {
    background-color: var(--card-bg);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    margin-bottom: 15px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.page-login__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-weight: bold;
    color: var(--text-main-color);
    cursor: pointer;
    transition: background-color 0.3s ease;
    user-select: none;
    list-style: none; /* For details/summary */
}

.page-login__faq-question::-webkit-details-marker {
    display: none;
}

.page-login__faq-question:hover {
    background-color: var(--deep-green-color);
}

.page-login__faq-qtext {
    flex-grow: 1;
    color: var(--primary-color);
}

.page-login__faq-toggle {
    font-size: 1.5em;
    line-height: 1;
    color: var(--gold-color);
    margin-left: 15px;
}

.page-login__faq-answer {
    padding: 0 25px 20px;
    color: var(--text-secondary-color);
    line-height: 1.6;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
}

.page-login__faq-item[open] .page-login__faq-answer {
    max-height: 500px; /* Sufficiently large for content */
    transition: max-height 0.5s ease-in;
}

/* Conclusion Section */
.page-login__conclusion-section {
    padding: 80px 0;
}

/* Responsive Design */
@media (max-width: 992px) {
    .page-login__hero-section {
        padding: 40px 20px;
    }

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

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

    .page-login__features-grid,
    .page-login__steps-grid,
    .page-login__troubleshoot-content {
        grid-template-columns: 1fr;
    }
}

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

    .page-login__hero-section {
        padding: 30px 15px;
    }

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

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

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

    .page-login__section-description {
        font-size: 0.95em;
    }

    .page-login__btn-primary,
    .page-login__btn-secondary {
        width: 100% !important;
        max-width: 100% !important;
        white-space: normal !important;
        word-wrap: break-word !important;
        padding: 12px 20px;
    }

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

    .page-login img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        min-width: 200px !important;
        min-height: 200px !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__section,
    .page-login__card,
    .page-login__container {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        padding-left: 15px;
        padding-right: 15px;
    }

    .page-login__video-section {
        padding-top: 10px !important; /* body đã xử lý --header-offset */
    }

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

    .page-login__faq-answer {
        padding: 0 20px 15px;
        font-size: 0.9em;
    }
}

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

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

    .page-login__feature-item,
    .page-login__step-item,
    .page-login__card,
    .page-login__troubleshoot-item {
        padding: 20px;
    }
}