/* style/register.css */

/* Base styles for the register page */
.page-register {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background */
    background-color: transparent; /* Body background is handled by shared.css (#121212) */
}

.page-register__section-spacing {
    padding: 60px 0;
}

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

.page-register__section-title {
    font-size: 2.5em;
    color: #FFFFFF; /* White for contrast on dark background */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* Hero Section */
.page-register__hero-section {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px; /* Adjust as needed */
    padding-top: var(--header-offset, 120px); /* Fixed header offset */
    overflow: hidden;
    background-color: #0d0d0d; /* Slightly lighter dark background for hero */
}

.page-register__hero-image-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.page-register__hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.3; /* Subtle background image */
}

.page-register__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 900px;
    padding: 20px;
    background: rgba(0, 0, 0, 0.6); /* Semi-transparent overlay for readability */
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-register__hero-title {
    font-size: 3.5em;
    color: #FFFF00; /* Yellow for high impact on dark background */
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

.page-register__hero-description {
    font-size: 1.3em;
    color: #ffffff;
    margin-bottom: 40px;
}

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

/* Buttons */
.page-register__btn-register,
.page-register__btn-login,
.page-register__btn-submit,
.page-register__btn-verify,
.page-register__btn-contact {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease, transform 0.2s ease;
    cursor: pointer;
    text-align: center;
    white-space: nowrap; /* Prevent text wrapping on desktop */
}

.page-register__btn-register,
.page-register__btn-submit {
    background-color: #C30808; /* Đăng ký color */
    color: #FFFF00; /* Đăng ký font color */
    border: 2px solid #C30808;
}

.page-register__btn-register:hover,
.page-register__btn-submit:hover {
    background-color: #a00606;
    transform: translateY(-2px);
}

.page-register__btn-login {
    background-color: #C30808; /* Đăng nhập color */
    color: #FFFF00; /* Đăng nhập font color */
    border: 2px solid #C30808;
}

.page-register__btn-login:hover {
    background-color: #a00606;
    transform: translateY(-2px);
}

.page-register__btn-contact {
    background-color: #017439; /* Main brand color */
    color: #FFFFFF; /* Auxiliary color */
    border: 2px solid #017439;
}

.page-register__btn-contact:hover {
    background-color: #005f2c;
    transform: translateY(-2px);
}

.page-register__btn-verify {
    background-color: #017439;
    color: #FFFFFF;
    border: none;
    padding: 10px 20px;
    border-radius: 5px;
    margin-left: 10px;
    transition: background-color 0.3s ease;
}

.page-register__btn-verify:hover {
    background-color: #005f2c;
}

.page-register__btn-large {
    padding: 18px 35px;
    font-size: 1.1em;
}

/* Form Section */
.page-register__form-section {
    background-color: #1a1a1a; /* Darker background for form section */
    padding: 60px 0;
}

.page-register__form {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent card-like background */
    padding: 40px;
    border-radius: 10px;
    max-width: 600px;
    margin: 40px auto 20px auto;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.4);
}

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

.page-register__form-label {
    display: block;
    margin-bottom: 10px;
    font-weight: bold;
    color: #ffffff;
    font-size: 1.1em;
}

.page-register__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #017439; /* Brand color border */
    border-radius: 5px;
    background-color: #333333; /* Dark input background */
    color: #ffffff; /* White text in input */
    font-size: 1em;
    box-sizing: border-box;
}

.page-register__form-input::placeholder {
    color: #cccccc;
}

.page-register__verification-input-group {
    display: flex;
    align-items: center;
}

.page-register__form-input--short {
    flex-grow: 1;
    margin-right: 10px;
}

.page-register__form-checkbox {
    margin-bottom: 25px;
    display: flex;
    align-items: center;
}

.page-register__checkbox-input {
    margin-right: 10px;
    width: 18px;
    height: 18px;
    accent-color: #017439; /* Brand color for checkbox */
}

.page-register__checkbox-label {
    color: #ffffff;
    font-size: 0.95em;
}

.page-register__text-link {
    color: #FFFF00; /* Yellow for links */
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-register__text-link:hover {
    color: #ffd700;
    text-decoration: underline;
}

.page-register__form-footer-text {
    text-align: center;
    margin-top: 20px;
    color: #ffffff;
}

/* Benefits Section */
.page-register__benefits-section {
    background-color: #121212; /* Body background color */
}

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

.page-register__benefit-card {
    background: rgba(255, 255, 255, 0.15); /* Semi-transparent white on dark background */
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff; /* White text for contrast */
}

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

.page-register__benefit-icon {
    width: 100px; /* Larger icons as per requirement */
    height: 100px;
    margin-bottom: 20px;
    object-fit: contain;
}

.page-register__benefit-title {
    font-size: 1.5em;
    color: #FFFF00; /* Yellow for titles */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-register__benefit-text {
    font-size: 1em;
    color: #f0f0f0;
}

/* Game Showcase Section */
.page-register__game-showcase-section {
    background-color: #1a1a1a; /* Darker background */
}

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

.page-register__game-card {
    background: rgba(255, 255, 255, 0.15); /* Semi-transparent white on dark background */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    color: #ffffff;
}

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

.page-register__game-image {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
}

.page-register__game-title {
    font-size: 1.3em;
    color: #FFFF00; /* Yellow for titles */
    padding: 15px 15px 5px 15px;
    font-weight: bold;
}

.page-register__game-title a {
    color: inherit; /* Inherit yellow color */
    text-decoration: none;
}

.page-register__game-title a:hover {
    text-decoration: underline;
}

.page-register__game-text {
    font-size: 0.95em;
    color: #f0f0f0;
    padding: 0 15px 20px 15px;
}

/* FAQ Section */
.page-register__faq-section {
    background-color: #121212; /* Body background color */
}

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

.page-register__faq-item {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    margin-bottom: 15px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    color: #ffffff;
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    cursor: pointer;
    font-size: 1.15em;
    font-weight: bold;
    color: #FFFF00; /* Yellow for questions */
    background-color: rgba(0, 0, 0, 0.3); /* Slightly darker background for question */
    transition: background-color 0.3s ease;
}

.page-register__faq-question:hover {
    background-color: rgba(0, 0, 0, 0.5);
}

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

.page-register__faq-item.active .page-register__faq-toggle {
    transform: rotate(45deg);
}

.page-register__faq-answer {
    max-height: 0;
    overflow: hidden;
    padding: 0 25px;
    transition: max-height 0.3s ease, padding 0.3s ease;
    color: #f0f0f0;
}

.page-register__faq-item.active .page-register__faq-answer {
    max-height: 1000px !important; /* Sufficiently large to show content */
    padding: 15px 25px 25px 25px;
}

.page-register__faq-answer p {
    margin: 0;
    line-height: 1.8;
}

/* CTA Section */
.page-register__cta-section {
    background-color: #017439; /* Brand primary color for CTA */
    text-align: center;
    padding: 80px 0;
}

.page-register__cta-content {
    max-width: 900px;
}

.page-register__cta-section .page-register__section-title {
    color: #FFFFFF;
}

.page-register__cta-section .page-register__section-description {
    color: #e0e0e0;
    margin-bottom: 50px;
}

.page-register__cta-buttons {
    display: flex;
    gap: 25px;
    justify-content: center;
    flex-wrap: wrap; /* Allow wrapping on smaller screens */
}


/* Responsive Design */
@media (max-width: 1024px) {
    .page-register__hero-title {
        font-size: 3em;
    }
    .page-register__hero-description {
        font-size: 1.1em;
    }
    .page-register__section-title {
        font-size: 2em;
    }
}

@media (max-width: 768px) {
    .page-register__hero-section {
        min-height: 500px;
        padding-top: var(--header-offset, 120px) !important; /* Ensure mobile header offset */
    }
    .page-register__hero-title {
        font-size: 2.5em;
    }
    .page-register__hero-description {
        font-size: 1em;
    }
    .page-register__hero-buttons {
        flex-direction: column;
        gap: 15px;
    }
    .page-register__btn-register,
    .page-register__btn-login,
    .page-register__btn-submit,
    .page-register__btn-verify,
    .page-register__btn-contact,
    .page-register a[class*="button"],
    .page-register 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;
    }
    .page-register__cta-buttons {
        flex-direction: column;
        gap: 15px;
    }

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

    .page-register__benefits-grid,
    .page-register__game-grid {
        grid-template-columns: 1fr;
    }

    .page-register__benefit-card,
    .page-register__game-card,
    .page-register__form {
        margin-left: 15px;
        margin-right: 15px;
        padding: 25px;
    }
    .page-register__form-section,
    .page-register__benefits-section,
    .page-register__game-showcase-section,
    .page-register__faq-section,
    .page-register__cta-section {
        padding: 40px 0;
    }
    .page-register__container {
        padding: 0 15px;
    }

    /* Mobile image responsiveness */
    .page-register img {
        max-width: 100% !important;
        height: auto !important;
        display: block !important;
    }
    .page-register__section,
    .page-register__card,
    .page-register__container,
    .page-register__hero-section,
    .page-register__form-section,
    .page-register__benefits-section,
    .page-register__game-showcase-section,
    .page-register__faq-section,
    .page-register__cta-section,
    .page-register__hero-image-wrapper {
        max-width: 100% !important;
        width: 100% !important;
        box-sizing: border-box !important;
        overflow-x: hidden !important; /* Prevent horizontal scroll */
    }
    .page-register__faq-answer {
        padding: 0 15px; /* Adjust padding for mobile */
    }
    .page-register__faq-item.active .page-register__faq-answer {
        padding: 15px !important;
    }
    .page-register__faq-question {
        padding: 15px 20px;
        font-size: 1em;
    }
}

@media (max-width: 480px) {
    .page-register__hero-title {
        font-size: 2em;
    }
    .page-register__hero-description {
        font-size: 0.9em;
    }
    .page-register__hero-content {
        padding: 15px;
    }
    .page-register__btn-large {
        padding: 12px 25px;
        font-size: 1em;
    }
    .page-register__section-title {
        font-size: 1.5em;
    }
}