/* style/register.css */

/* Base styles for the page */
.page-register {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #FFF5E1; /* Text Main color for dark body background */
    background-color: #B71C1C; /* Body Background color */
}

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

/* Hero Section */
.page-register__hero-section {
    position: relative;
    padding-top: 10px; /* Small top padding, assuming shared.css handles body padding-top */
    margin-bottom: 40px;
    overflow: hidden; /* Ensure image doesn't overflow */
}

.page-register__hero-image-wrapper {
    width: 100%;
    overflow: hidden;
}

.page-register__hero-image {
    width: 100%;
    height: auto;
    display: block;
    object-fit: cover; /* Desktop: cover to fill space */
    object-position: center;
    max-height: 600px; /* Limit height on desktop */
}

.page-register__hero-content {
    text-align: center;
    padding: 40px 20px;
    background-color: #7A0E0E; /* Deep Red for contrast */
    color: #FFF5E1;
}

.page-register__main-title {
    font-size: clamp(2rem, 4vw + 1rem, 3.5rem); /* Responsive font size */
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 20px;
    color: #FFCC66; /* Glow color for main title */
}

.page-register__description {
    font-size: 1.15rem;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

/* General Section Styling */
.page-register__section-title {
    font-size: clamp(1.8rem, 3vw + 1rem, 2.8rem);
    font-weight: 700;
    text-align: center;
    margin-bottom: 20px;
    color: #FFCC66; /* Glow color for section titles */
}

.page-register__section-description {
    font-size: 1.1rem;
    text-align: center;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #FFF5E1;
}

.page-register__dark-section {
    background-color: #C91F17; /* Main color for dark sections */
    padding: 60px 0;
    margin-bottom: 40px;
}

/* Form Section */
.page-register__form-section {
    padding: 60px 0;
    margin-bottom: 40px;
    background-color: #B71C1C; /* Background color */
}

.page-register__registration-form {
    max-width: 600px;
    margin: 0 auto;
    background-color: #D32F2F; /* Card BG */
    padding: 40px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
    border: 1px solid #F2B544; /* Border color */
}

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

.page-register__form-label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #FFF5E1; /* Text Main */
}

.page-register__form-input {
    width: calc(100% - 20px);
    padding: 12px 10px;
    border: 1px solid #F2B544; /* Border color */
    border-radius: 5px;
    background-color: #7A0E0E; /* Deep Red for input background */
    color: #FFF5E1;
    font-size: 1rem;
}

.page-register__form-input::placeholder {
    color: rgba(255, 245, 225, 0.7);
}

.page-register__captcha-wrapper {
    display: flex;
    align-items: center;
    gap: 10px;
}

.page-register__captcha-input {
    flex-grow: 1;
}

.page-register__captcha-image {
    width: 200px; /* Min width */
    height: 200px; /* Min height */
    max-width: 200px;
    max-height: 200px;
    border: 1px solid #F2B544;
    border-radius: 5px;
    object-fit: contain;
    background-color: #7A0E0E; /* Deep Red */
}

.page-register__captcha-refresh-button {
    background-color: #E53935; /* Auxiliary color */
    color: #FFF5E1;
    border: none;
    padding: 10px 15px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background-color 0.3s ease;
}

.page-register__captcha-refresh-button:hover {
    background-color: #C91F17; /* Main color */
}

.page-register__form-checkbox {
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    color: #FFF5E1;
}

.page-register__checkbox {
    margin-right: 10px;
}

.page-register__checkbox-label .page-register__text-link {
    color: #F4D34D; /* Gold color for links */
    text-decoration: underline;
}

.page-register__login-prompt {
    text-align: center;
    margin-top: 20px;
    color: #FFF5E1;
}

.page-register__login-prompt .page-register__text-link {
    color: #F4D34D; /* Gold color for links */
    text-decoration: underline;
}

/* Buttons */
.page-register__cta-button {
    display: block;
    width: fit-content;
    margin: 30px auto 0;
    padding: 15px 30px;
    border-radius: 30px;
    text-align: center;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.1rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    cursor: pointer;
    border: none;
    max-width: 100%; /* Ensure responsiveness */
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-register__btn-primary {
    background: linear-gradient(180deg, #FFD86A 0%, #E6B800 100%); /* Button color */
    color: #7A0E0E; /* Deep Red for text on gold button */
}

.page-register__btn-primary:hover {
    filter: brightness(1.1);
    transform: translateY(-2px);
}

.page-register__submit-button {
    width: 100%; /* Full width for form submit button */
    padding: 15px;
    border-radius: 5px;
    font-size: 1.2rem;
    margin-top: 20px;
}

.page-register__btn-secondary {
    background-color: #ffffff; /* White background */
    color: #C91F17; /* Main color for text */
    border: 2px solid #C91F17; /* Main color for border */
}

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

.page-register__btn-large {
    padding: 18px 40px;
    font-size: 1.25rem;
}

.page-register__btn-xl {
    padding: 20px 50px;
    font-size: 1.4rem;
}

/* 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 {
    text-align: center;
    background-color: #D32F2F; /* Card BG */
    padding: 30px;
    border-radius: 10px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #F2B544; /* Border color */
    color: #FFF5E1;
}

.page-register__benefit-icon {
    width: 200px; /* Min width */
    height: 200px; /* Min height */
    margin-bottom: 15px;
    object-fit: contain;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

.page-register__benefit-title {
    font-size: 1.4rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: #F4D34D; /* Gold color */
}

.page-register__benefit-text {
    font-size: 1rem;
    color: #FFF5E1;
}

/* Games Preview Section */
.page-register__games-preview-section {
    padding: 60px 0;
    margin-bottom: 40px;
    background-color: #B71C1C; /* Background color */
}

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

.page-register__category-card {
    background-color: #D32F2F; /* Card BG */
    border-radius: 10px;
    overflow: hidden;
    text-decoration: none;
    color: #FFF5E1;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #F2B544; /* Border color */
    transition: transform 0.3s ease;
}

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

.page-register__category-image {
    width: 100%;
    height: 250px; /* Fixed height for consistent grid */
    object-fit: cover;
    display: block;
}

.page-register__category-title {
    font-size: 1.3rem;
    font-weight: 600;
    text-align: center;
    padding: 15px;
    color: #F4D34D; /* Gold color */
}

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

.page-register__promotion-card {
    background-color: #D32F2F; /* Card BG */
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.2);
    border: 1px solid #F2B544; /* Border color */
    color: #FFF5E1;
}

.page-register__promotion-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    display: block;
}

.page-register__promotion-content {
    padding: 20px;
}