/* style/register.css */

/* --- General Page Styling --- */
.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 (#0a0a0a) */
}

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

.page-register__section-title {
    font-size: 2.5em;
    color: #26A9E0; /* Primary brand color */
    text-align: center;
    margin-bottom: 20px;
    font-weight: bold;
}

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

/* --- Hero Section --- */
.page-register__hero-section {
    position: relative;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 100px 20px; /* Adjusted padding */
    padding-top: var(--header-offset, 120px); /* Ensures content is not hidden by fixed header */
    min-height: 600px;
    overflow: hidden;
}

.page-register__hero-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: -1;
    filter: brightness(0.4); /* Darken image for text readability */
}

.page-register__hero-title {
    font-size: 3.5em;
    color: #FFFFFF;
    margin-bottom: 20px;
    font-weight: bold;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    max-width: 900px;
}

.page-register__hero-description {
    font-size: 1.3em;
    color: #f0f0f0;
    margin-bottom: 40px;
    max-width: 700px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
}

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

.page-register__btn-primary,
.page-register__btn-secondary {
    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;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
    text-align: center;
}

.page-register__btn-primary {
    background-color: #26A9E0; /* Primary brand color */
    color: #FFFFFF;
    border: 2px solid #26A9E0;
}

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

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

.page-register__btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    border-color: #FFFFFF;
}

/* --- Form Section --- */
.page-register__form-section {
    background-color: #0a0a0a; /* Dark background */
    padding: 80px 20px;
    color: #ffffff; /* Light text for dark background */
}

.page-register__form-wrapper {
    background-color: rgba(255, 255, 255, 0.08); /* Slightly lighter card background */
    padding: 40px;
    border-radius: 12px;
    max-width: 600px;
    margin: 40px auto 0 auto;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
}

.page-register__registration-form {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.page-register__form-group {
    display: flex;
    flex-direction: column;
}

.page-register__form-label {
    margin-bottom: 8px;
    font-weight: bold;
    color: #f0f0f0;
    font-size: 0.95em;
}

.page-register__form-input {
    padding: 12px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 6px;
    background-color: rgba(0, 0, 0, 0.4);
    color: #ffffff;
    font-size: 1em;
    transition: border-color 0.3s ease, background-color 0.3s ease;
}

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

.page-register__form-input:focus {
    border-color: #26A9E0;
    background-color: rgba(0, 0, 0, 0.6);
    outline: none;
}

.page-register__captcha-group {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
}

.page-register__captcha-input {
    flex-grow: 1;
    margin-right: 10px;
    max-width: 200px; /* Adjust for better alignment */
}

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

.page-register__captcha-image {
    border-radius: 4px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    min-width: 200px; /* Enforce min size */
    min-height: 50px; /* Enforce min size */
}

.page-register__captcha-refresh-btn {
    background-color: #EA7C07; /* Login/Other color */
    color: #FFFFFF;
    padding: 8px 15px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    font-size: 0.9em;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-register__captcha-refresh-btn:hover {
    background-color: #c96706;
}

.page-register__checkbox-group {
    flex-direction: row;
    align-items: flex-start;
    gap: 10px;
}

.page-register__form-checkbox {
    margin-top: 5px; /* Align checkbox with text */
    min-width: 18px; /* Ensure checkbox is visible */
    min-height: 18px;
}

.page-register__terms-link {
    color: #26A9E0;
    text-decoration: none;
    transition: color 0.3s ease;
}

.page-register__terms-link:hover {
    text-decoration: underline;
    color: #1a7eb0;
}

.page-register__submit-button {
    background-color: #26A9E0;
    color: #FFFFFF;
    padding: 15px 25px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: bold;
    margin-top: 20px;
    transition: background-color 0.3s ease;
    box-sizing: border-box;
    white-space: normal;
    word-wrap: break-word;
}

.page-register__submit-button:hover {
    background-color: #1a7eb0;
}

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

.page-register__login-link {
    color: #EA7C07; /* Login color */
    text-decoration: none;
    font-weight: bold;
    transition: color 0.3s ease;
}

.page-register__login-link:hover {
    text-decoration: underline;
    color: #c96706;
}

/* --- Benefits Section --- */
.page-register__benefits-section {
    background-color: #0a0a0a; /* Dark background */
    padding: 80px 20px;
    color: #f0f0f0; /* Light text */
}

.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: rgba(255, 255, 255, 0.08); /* Slightly lighter card background */
    padding: 30px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    align-items: center;
}

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

.page-register__benefit-icon {
    width: 100%; /* Occupy full card width */
    max-width: 400px; /* Limit max size */
    height: auto;
    object-fit: cover;
    margin-bottom: 20px;
    border-radius: 8px;
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

.page-register__benefit-title {
    font-size: 1.5em;
    color: #26A9E0; /* Primary brand color */
    margin-bottom: 15px;
    font-weight: bold;
}

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

/* --- Why Choose Us Section --- */
.page-register__why-choose-us-section {
    background-color: #0d0d0d; /* Slightly different dark background */
    padding: 80px 20px;
    color: #f0f0f0;
}

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

.page-register__reason-card {
    background-color: rgba(255, 255, 255, 0.05);
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}

.page-register__reason-title {
    font-size: 1.6em;
    color: #EA7C07; /* Login/Other color */
    margin-bottom: 15px;
    font-weight: bold;
}

.page-register__reason-text {
    font-size: 1em;
    color: #cccccc;
}

.page-register__why-choose-us-image {
    display: block;
    width: 100%;
    max-width: 800px;
    height: auto;
    object-fit: cover;
    margin: 40px auto 0 auto;
    border-radius: 12px;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.4);
    min-width: 200px; /* Enforce min size */
    min-height: 200px; /* Enforce min size */
}

/* --- CTA Section --- */
.page-register__cta-section {
    background-color: #26A9E0; /* Primary brand color background */
    padding: 60px 20px;
    text-align: center;
    color: #FFFFFF;
}

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

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

.page-register__cta-section .page-register__section-description {
    color: #e0e0e0;
}

.page-register__large-btn {
    padding: 18px 40px;
    font-size: 1.3em;
    margin-top: 30px;
    border-color: #FFFFFF; /* White border for contrast */
}

.page-register__large-btn:hover {
    background-color: #1a7eb0;
    border-color: #f0f0f0;
}

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

.page-register__faq-list {
    max-width: 800px;
    margin: 40px auto 0 auto;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.page-register__faq-item {
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.page-register__faq-question {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 0;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

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