/* style/register.css */

/* Base styles for the page content, ensuring dark text on a light background */
.page-register {
    color: #333333; /* Dark text for readability on light background */
    font-family: 'Arial', sans-serif;
    line-height: 1.6;
    background-color: var(--background-color, #FFFFFF); /* Default to white if shared var is not set */
}

/* --- Section Styling --- */
.page-register__section {
    padding: 60px 20px;
    text-align: center;
}

.page-register__container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px; /* Consistent padding for content */
}

.page-register__section-title {
    font-size: 36px;
    font-weight: 700;
    margin-bottom: 20px;
    color: #26A9E0; /* Brand color for titles */
}

.page-register__section-intro {
    font-size: 18px;
    margin-bottom: 40px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #555555;
}

/* --- Color Theme Handling --- */
.page-register__dark-bg {
    background-color: #26A9E0; /* Primary brand color for dark sections */
    color: #ffffff; /* White text on primary brand color */
}
.page-register__dark-bg .page-register__section-title,
.page-register__dark-bg .page-register__section-intro,
.page-register__dark-bg h3,
.page-register__dark-bg p,
.page-register__dark-bg li {
    color: #ffffff; /* Ensure all text is white on dark background */
}

.page-register__light-bg {
    background-color: #FFFFFF; /* White background for light sections */
    color: #333333; /* Dark text on white background */
}
.page-register__light-bg .page-register__section-title {
    color: #26A9E0; /* Brand color for titles on light background */
}

/* --- Card Styling --- */
.page-register__card {
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 25px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    color: #333333; /* Dark text on card background */
}
.page-register__card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}
.page-register__card img {
    border-radius: 4px;
    margin-bottom: 15px;
    max-width: 100%;
    height: auto;
    display: block;
}
.page-register__card h3 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 10px;
    color: #26A9E0; /* Brand color for card titles */
}
.page-register__dark-bg .page-register__card {
    background: rgba(255, 255, 255, 0.15); /* Slightly transparent white on dark background */
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
}
.page-register__dark-bg .page-register__card h3 {
    color: #ffffff; /* White title on dark card */
}

/* --- Button Styling --- */
.page-register__cta-button,
.page-register__btn-primary,
.page-register__btn-secondary {
    display: inline-block;
    padding: 15px 30px;
    border-radius: 5px;
    font-size: 18px;
    font-weight: bold;
    text-decoration: none;
    transition: all 0.3s ease;
    cursor: pointer;
    text-align: center;
    max-width: 100%;
    box-sizing: border-box;
    white-space: normal; /* Allow text to wrap */
    word-wrap: break-word; /* Break long words */
}

.page-register__cta-button,
.page-register__btn-primary {
    background-color: #26A9E0; /* Primary brand color */
    color: #ffffff;
    border: 2px solid #26A9E0;
}
.page-register__cta-button:hover,
.page-register__btn-primary:hover {
    background-color: #1a8cc7; /* Slightly darker blue */
    border-color: #1a8cc7;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

.page-register__btn-secondary {
    background-color: #FFFFFF;
    color: #26A9E0; /* Primary brand color text */
    border: 2px solid #26A9E0;
}
.page-register__btn-secondary:hover {
    background-color: #e0f0f8; /* Light blue background */
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.page-register__login-link a {
    color: #26A9E0;
    text-decoration: none;
    font-weight: bold;
}
.page-register__login-link a:hover {
    text-decoration: underline;
}

/* --- HERO Section --- */
.page-register__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 60px 20px;
    padding-top: var(--header-offset, 120px); /* Ensure space for fixed header */
    overflow: hidden; /* Prevent image overflow */
}

.page-register__hero-container {
    position: relative;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
}

.page-register__hero-image {
    width: 100%;
    margin-bottom: 30px;
}

.page-register__hero-image img {
    width: 100%;
    height: auto;
    max-width: 100%;
    display: block;
    border-radius: 8px;
    object-fit: cover;
}

.page-register__hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    padding: 0 15px; /* Add padding for smaller screens */
}

.page-register__hero-title {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}

.page-register__hero-description {
    font-size: 20px;
    margin-bottom: 30px;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
    color: #f0f0f0;
}

.page-register__login-link {
    margin-top: 20px;
    font-size: 16px;
    color: #f0f0f0;
}

/* --- Why Join Section --- */
.page-register__why-join {
    background-color: #f8f9fa; /* Light grey background for contrast */
}
.page-register__features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

/* --- Registration Guide Section --- */
.page-register__registration-guide .page-register__container {
    padding-bottom: 0; /* Adjust padding for list */
}
.page-register__steps-list {
    list-style: none;
    padding: 0;
    margin-top: 40px;
}
.page-register__step-item {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 10px;
    padding: 30px;
    margin-bottom: 25px;
    text-align: left;
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}
.page-register__step-item:last-child {
    margin-bottom: 0;
}
.page-register__step-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 15px;
    color: #ffffff;
}
.page-register__step-item p {
    font-size: 16px;
    margin-bottom: 20px;
    color: #f0f0f0;
}
.page-register__step-item img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    display: block;
    margin: 20px auto;
}
.page-register__important-note {
    font-style: italic;
    margin-top: 40px;
    color: #f0f0f0;
    font-size: 16px;
}

/* --- Security & Privacy Section --- */
.page-register__security-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.page-register__security-item h3 {
    color: #26A9E0;
}

/* --- Promotions Section --- */
.page-register__promo-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
    margin-top: 40px;
}
.page-register__promo-item h3 {
    color: #26A9E0;
}