/* style/register.css */

/* Base styles for the page content */
.page-register {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #ffffff; /* Default text color for dark body background (#0a0a0a from shared.css) */
    background-color: transparent; /* Body background is handled by shared.css */
    padding-top: var(--header-offset); /* Fixed header offset from shared.css */
}

.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: #FFFFFF; /* Light text for dark sections */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* Specific color for light background sections */
.page-register__light-bg .page-register__section-title,
.page-register__light-bg .page-register__section-description,
.page-register__light-bg .page-register__feature-title,
.page-register__light-bg .page-register__feature-text,
.page-register__light-bg .page-register__game-title,
.page-register__light-bg .page-register__game-text,
.page-register__light-bg .page-register__security-subtitle,
.page-register__light-bg .page-register__security-paragraph {
    color: #333333; /* Dark text for light background */
}

/* Card styles */
.page-register__card {
    background: rgba(255, 255, 255, 0.1); /* Semi-transparent white for dark background */
    border-radius: 8px;
    padding: 30px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%; /* Ensure cards in a grid have equal height */
    box-sizing: border-box;
}

.page-register__light-bg .page-register__card {
    background: #ffffff; /* White background for light sections */
    color: #333333; /* Dark text for light background */
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-register__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.3);
}

/* Buttons */
.page-register__btn-primary,
.page-register__btn-secondary,
.page-register__btn-link,
.page-register__btn-download {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
    box-sizing: border-box;
}

/* Specific button colors based on custom palette */
.page-register__btn-primary {
    background-color: #C30808; /* Register button color */
    /* Original '注册和登录字体: #FFFF00' has poor contrast on #C30808. Overriding for WCAG AA compliance. */
    color: #FFFFFF; /* Using white for sufficient contrast on #C30808 background */
    border: 2px solid #C30808;
    margin-right: 15px;
}

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

.page-register__btn-secondary {
    background-color: transparent;
    color: #FFFFFF;
    border: 2px solid #FFFFFF;
}

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

.page-register__btn-link {
    background-color: transparent;
    color: #017439; /* Brand primary color for links in light sections */
    border: none;
    padding: 8px 0;
    font-size: 1em;
    text-decoration: underline;
}

.page-register__light-bg .page-register__btn-link {
    color: #017439;
}

.page-register__btn-link:hover {
    color: #005f2c; /* Darker shade of primary color */
    text-decoration: none;
}

.page-register__btn-download {
    background-color: #C30808; /* Download button color, same as register/login */
    color: #FFFFFF; /* Using white for contrast on #C30808 */
    border: 2px solid #C30808;
    padding: 15px 30px;
    font-size: 1.1em;
}

.page-register__btn-download:hover {
    background-color: #a30606;
    border-color: #a30606;
}

.page-register__btn-large {
    padding: 15px 30px;
    font-size: 1.1em;
}

/* Image styles */
.page-register img {
    max-width: 100%;
    height: auto;
    display: block; /* Ensure images behave as block elements for layout */
    border-radius: 8px;
    object-fit: cover;
}

/* Hero Section */
.page-register__hero-section {
    position: relative;
    padding: 80px 0;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 600px;
    background-color: #0a0a0a; /* Dark background, similar to body */
    color: #ffffff;
    padding-top: var(--header-offset); /* Ensure hero starts below header */
}

.page-register__hero-section .page-register__container {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 40px;
    text-align: left;
    max-width: 1200px;
}

.page-register__hero-content {
    flex: 1;
    min-width: 50%;
}

.page-register__hero-image-wrapper {
    flex: 1;
    min-width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-register__hero-title {
    font-size: 3.5em;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #FFFF00; /* Custom font color for register/login, good contrast on dark background */
}

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

/* Why Join Section */
.page-register__why-join-section {
    padding: 80px 0;
    background-color: #FFFFFF; /* White background */
    color: #333333;
}

.page-register__why-join-section .page-register__section-title,
.page-register__why-join-section .page-register__section-description {
    color: #333333;
}

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

.page-register__feature-title {
    font-size: 1.5em;
    margin-bottom: 15px;
    color: #017439; /* Brand color for titles */
}

.page-register__feature-card {
    background: #f8f8f8;
    color: #333333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* How to Register Section */
.page-register__how-to-register-section {
    padding: 80px 0;
    background-color: #0a0a0a; /* Dark background */
    color: #ffffff;
}

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

.page-register__step-item {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.page-register__step-image {
    width: 100%;
    height: 200px; /* Fixed height for consistency */
    object-fit: cover;
    margin-bottom: 20px;
}

.page-register__step-title {
    font-size: 1.4em;
    margin-bottom: 10px;
    color: #FFFF00; /* Custom font color for titles */
}

.page-register__step-text {
    color: #f0f0f0;
}

.page-register__cta-bottom {
    text-align: center;
    margin-top: 50px;
}

/* Games Promo Section */
.page-register__games-promo-section {
    padding: 80px 0;
    background-color: #FFFFFF;
    color: #333333;
}

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

.page-register__game-card {
    text-align: center;
    background: #f8f8f8;
    color: #333333;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

.page-register__game-image {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin-bottom: 20px;
}

.page-register__game-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #017439;
}

.page-register__game-title a {
    color: #017439;
    text-decoration: none;
}

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

/* Promotion Section */
.page-register__promotion-section {
    padding: 80px 0;
    background-color: #0a0a0a;
    color: #ffffff;
}

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

.page-register__promo-card {
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

.page-register__promo-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
    margin-bottom: 20px;
}

.page-register__promo-title {
    font-size: 1.5em;
    margin-bottom: 10px;
    color: #FFFF00;
}

/* Security Section */
.page-register__security-section {
    padding: 80px 0;
    background-color: #FFFFFF;
    color: #333333;
}

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

.page-register__security-text {
    flex: 1;
    min-width: 40%;
}

.page-register__security-image-wrapper {
    flex: 1;
    min-width: 40%;
    display: flex;
    justify-content: center;
    align-items: center;
}

.page-register__security-subtitle {
    font-size: 1.8em;
    margin-bottom: 15px;
    color: #017439;
}

.page-register__security-paragraph {
    margin-bottom: 20px;
}

/* FAQ Section */
.page-register__faq-section {
    padding: 80px 0;
    background-color: #0a0a0a;
    color: #ffffff;
}

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

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

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 25px;
    font-size: 1.2em;
    font-weight: bold;
    cursor: pointer;
    background-color: #017439; /* Brand primary color for question background */
    color: #FFFFFF;
    transition: background-color 0.3s ease;
}

.page-register__faq-question:hover {
    background-color: #005f2c; /* Darker shade on hover */
}

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