/* style/register.css */

/* --- General Page Styles --- */
.page-register {
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    color: #333333; /* Màu chữ mặc định cho nền sáng */
    background-color: #FFFFFF; /* Màu nền body mặc định */
}

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

.page-register__section-title {
    font-size: 2.5em;
    color: #017439; /* Màu chính của thương hiệu */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

.page-register__link {
    color: #017439;
    text-decoration: underline;
}

.page-register__dark-bg {
    background-color: #017439; /* Màu chính của thương hiệu */
    color: #ffffff;
    padding: 60px 0;
}

.page-register__dark-bg .page-register__section-title,
.page-register__dark-bg .page-register__section-description {
    color: #ffffff;
}

.page-register__light-bg {
    background-color: #ffffff;
    color: #333333;
    padding: 60px 0;
}

/* --- Hero Section --- */
.page-register__hero-section {
    position: relative;
    padding-top: var(--header-offset, 120px); /* Khoảng cách bù cho header cố định */
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 600px;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.page-register__hero-content {
    position: relative;
    z-index: 1;
    max-width: 900px;
    padding: 40px 20px;
    background-color: rgba(0, 0, 0, 0.4); /* Lớp phủ tối cho dễ đọc văn bản */
    border-radius: 10px;
}

.page-register__hero-title {
    font-size: 3.5em;
    color: #ffffff;
    margin-bottom: 20px;
    font-weight: bold;
    line-height: 1.2;
}

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

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

.page-register__btn-primary,
.page-register__btn-secondary,
.page-register__btn-submit {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    font-size: 1.1em;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    cursor: pointer;
    text-align: center;
    box-sizing: border-box;
}

.page-register__btn-primary {
    background-color: #C30808; /* Màu đỏ cho nút Đăng ký/Đăng nhập */
    color: #FFFF00; /* Màu vàng cho chữ nút Đăng ký/Đăng nhập */
    border: 2px solid #C30808;
}

.page-register__btn-primary:hover {
    background-color: #e00b0b;
    border-color: #e00b0b;
    color: #ffffff;
}

.page-register__btn-secondary {
    background-color: #ffffff;
    color: #017439; /* Màu chính của thương hiệu */
    border: 2px solid #017439;
}

.page-register__btn-secondary:hover {
    background-color: #017439;
    color: #ffffff;
}

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

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

.page-register__benefit-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    transition: transform 0.3s ease;
}

.page-register__benefit-card:hover {
    transform: translateY(-5px);
}

.page-register__card-title {
    font-size: 1.5em;
    color: #017439;
    margin-bottom: 15px;
    font-weight: bold;
}

.page-register__card-text {
    font-size: 1em;
    color: #555555;
}

.page-register__benefits-image {
    display: block;
    margin: 60px auto 0 auto;
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

/* --- Registration Form Section --- */
.page-register__form-section {
    padding: 80px 0;
}

.page-register__form-wrapper {
    display: flex;
    gap: 40px;
    align-items: flex-start;
    justify-content: center;
    margin-top: 40px;
    flex-wrap: wrap;
}

.page-register__registration-form {
    background-color: #ffffff;
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    max-width: 500px;
    flex-grow: 1;
    box-sizing: border-box;
}

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

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

.page-register__form-input {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #cccccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
}

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

.page-register__form-checkbox {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-register__form-checkbox input[type="checkbox"] {
    transform: scale(1.2);
}

.page-register__btn-submit {
    width: 100%;
    background-color: #C30808;
    color: #FFFF00;
    border: none;
    padding: 15px 20px;
    border-radius: 8px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.page-register__btn-submit:hover {
    background-color: #e00b0b;
    color: #ffffff;
}

.page-register__form-info {
    max-width: 400px;
    text-align: center;
    flex-shrink: 0;
}

.page-register__form-banner-image {
    max-width: 100%;
    height: auto;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.page-register__form-tip {
    font-size: 0.95em;
    color: #f0f0f0;
    line-height: 1.5;
}

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

.page-register__game-card {
    background-color: #f9f9f9;
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease;
}

.page-register__game-card:hover {
    transform: translateY(-5px);
}

.page-register__game-card .page-register__card-title {
    margin-top: 0;
}

.page-register__game-card .page-register__card-link {
    color: #017439;
    text-decoration: none;
    font-weight: bold;
}

.page-register__game-card .page-register__card-link:hover {
    text-decoration: underline;
}

/* --- Security Section --- */
.page-register__security-content {
    display: flex;
    align-items: center;
    gap: 40px;
    margin-top: 40px;
    flex-wrap: wrap;
    justify-content: center;
}

.page-register__security-image {
    max-width: 400px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
    flex-shrink: 0;
}

.page-register__security-list {
    list-style: none;
    padding: 0;
    margin: 0;
    flex-grow: 1;
    max-width: 600px;
}

.page-register__security-item {
    background-color: rgba(255, 255, 255, 0.1); /* Nền nhẹ cho các mục trong phần tối */
    padding: 15px 20px;
    margin-bottom: 15px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    gap: 15px;
    font-size: 1.1em;
    color: #ffffff;
}

.page-register__security-item strong {
    color: #FFFF00; /* Tô sáng văn bản quan trọng */
}

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

.page-register__security-item::before {
    content: '✅'; /* Biểu tượng dấu tích */
    font-size: 1.2em;
    line-height: 1;
    color: #FFFF00;
}

.page-register__section-text {
    text-align: center;
    margin-top: 40px;
    font-size: 1em;
    color: #f0f0f0;
}

.page-register__section-text .page-register__link {
    color: #FFFF00;
}

/* --- FAQ Section --- */
.page-register__faq-list {
    margin-top: 40px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

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

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    color: #017439;
    cursor: pointer;
    background-color: #e8f5e9; /* Màu nhạt hơn của màu thương hiệu */
    border-bottom: 1px solid #d4edda;
    user-select: none;
}

.page-register__faq-item[open] .page-register__faq-question {
    border-bottom: none;
}

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

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

.page-register__faq-item[open] .page-register__faq-toggle {
    transform: rotate(45deg); /* Thay đổi + thành X hoặc xoay */
}

.page-register__faq-item summary {
    list-style: none;
}
.page-register__faq-item summary::-webkit-details-marker {
    display: none;
}

.page-register__faq-answer {
    padding: 0 25px 20px 25px;
    font-size: 1em;
    color: #555555;
    background-color: #f9f9f9;
}

/* --- CTA Section --- */
.page-register__cta-section {
    padding: 80px 0;
    text-align: center;
}

.page-register__cta-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
}

.page-register__cta-image {
    max-width: 500px;
    height: auto;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.1);
}

.page-register__cta-text {
    max-width: 600px;
    text-align: left;
}

.page-register__cta-text .page-register__section-title {
    text-align: left;
    margin-bottom: 20px;
}

.page-register__cta-text .page-register__section-description {
    text-align: left;
    margin-left: 0;
    margin-right: 0;
    margin-bottom: 30px;
}

/* --- Responsive Adjustments --- */
@media (max-width: 1024px) {
    .page-register__hero-title {
        font-size: 3em;
    }
    .page-register__section-title {
        font-size: 2em;
    }
    .page-register__hero-section {
        min-height: 500px;
    }
}

@media (max-width: 768px) {
    .page-register__hero-section {
        padding-top: var(--header-offset, 120px) !important; /* Đảm bảo khoảng cách bù header trên di động */
        min-height: 400px;
    }

    .page-register__hero-title {
        font-size: 2.5em;
    }
    .page-register__hero-description {
        font-size: 1.1em;
    }
    .page-register__section-title {
        font-size: 1.8em;
    }
    .page-register__section-description {
        font-size: 1em;
        margin-bottom: 30px;
    }

    /* Nút responsive */
    .page-register__btn-primary,
    .page-register__btn-secondary,
    .page-register__btn-submit,
    .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__hero-cta-buttons,
    .page-register__form-wrapper,
    .page-register__security-content,
    .page-register__cta-content {
        flex-direction: column;
        gap: 20px;
    }

    .page-register__registration-form,
    .page-register__form-info,
    .page-register__security-image,
    .page-register__cta-image,
    .page-register__cta-text {
        max-width: 100% !important;
        width: 100% !important;
        padding: 0 15px; /* Thêm padding cho các container nội dung */
        box-sizing: border-box !important;
    }

    .page-register__cta-text .page-register__section-title,
    .page-register__cta-text .page-register__section-description {
        text-align: center;
    }

    /* Hình ảnh responsive */
    .page-register img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
        display: block !important;
        box-sizing: border-box !important;
        padding: 0 15px; /* Đảm bảo hình ảnh không tràn */
    }

    /* Container chung */
    .page-register__container {
        padding: 0 15px; /* Điều chỉnh padding container cho di động */
    }

    /* Điều chỉnh padding cho các section */
    .page-register__benefits-section,
    .page-register__form-section,
    .page-register__games-section,
    .page-register__security-section,
    .page-register__faq-section,
    .page-register__cta-section {
        padding: 40px 0;
    }

    .page-register__benefits-grid,
    .page-register__games-grid {
        grid-template-columns: 1fr;
    }
    
    .page-register__faq-question {
        font-size: 1.1em;
        padding: 15px 20px;
    }
    .page-register__faq-answer {
        padding: 0 20px 15px 20px;
    }

    /* Container nút responsive */
    .page-register__cta-buttons,
    .page-register__button-group,
    .page-register__btn-container {
      max-width: 100% !important;
      width: 100% !important;
      box-sizing: border-box !important;
      padding-left: 15px;
      padding-right: 15px;
      flex-wrap: wrap !important;
      gap: 10px;
    }

    .page-register__cta-buttons {
      display: flex;
      flex-direction: column;
    }
}