* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Sarabun', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    background: #16171b;
    color: #f5f5f5;
    margin: 0;
    padding: 0;
    line-height: 1.6;
}

.page-wrapper {
    min-height: 100vh;
    background: linear-gradient(135deg, #1b1c20 0%, #1a2332 50%, #1e1b2e 100%);
}

.container {
    display: grid;
    grid-template-columns: 1.75fr 1fr;
    max-width: 1400px;
    margin: 0 auto;
    padding: 40px 40px;
    gap: 80px;
}

/* ===== LEFT SECTION - SIGNUP ===== */
.signup-section {
    display: flex;
    align-items: center;
    justify-content: center;
}

.signup-content {
    max-width: 840px;
    width: 100%;
}

.header-centered {
    text-align: center;
    margin-bottom: 48px;
}

.logo-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-bottom: 12px;
}

.logo {
    font-size: 80px;
    font-weight: 600;
    letter-spacing: -0.02em;
}

.beta-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: transparent;
    border: 1px solid #5a7a9a;
    color: #7a9dc8;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 400;
    text-transform: capitalize;
    letter-spacing: 0.02em;
    white-space: nowrap;
    transition: color 0.2s, box-shadow 0.2s;
}

.tagline {
    font-size: 24px;
    color: #a3a3a3; /* Improved contrast from #8a8a8a */
    margin: 0;
    font-weight: 400;
}

.highlight {
    color: #7a9dc8;
}

/* ===== FORM STYLES ===== */
.signup-form {
    margin-bottom: 40px;
}

.form-section {
    margin-bottom: 24px;
}

.form-section label {
    display: block;
    font-size: 16px;
    margin-bottom: 8px;
    color: #f5f5f5;
}

input[type="email"],
textarea {
    width: 100%;
    background: #20252b;
    border: 1px solid #404252;
    border-radius: 6px;
    padding: 12px 16px;
    color: #f5f5f5;
    font-size: 16px;
    font-family: inherit;
    transition: border-color 0.2s, background 0.2s;
}

input[type="email"]:focus,
textarea:focus {
    outline: none;
    border-color: #5a7a9a;
    background: #20252b;
}

input[type="email"]::placeholder,
textarea::placeholder {
    color: #737373;
}

textarea {
    resize: vertical;
    min-height: 100px;
}

.checkbox-group {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 32px;
}

input[type="checkbox"] {
    margin-top: 4px;
    width: 18px;
    height: 18px;
    cursor: pointer;
    accent-color: #5a7a9a;
}

.checkbox-group label {
    color: #a3a3a3;
    font-size: 16px;
    cursor: pointer;
    line-height: 1.5;
}

.submit-btn {
    width: 100%;
    background: #436a88;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    padding: 14px 24px;
    font-size: 18px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s, transform 0.1s;
    font-family: inherit;
}

.submit-btn:hover {
    background: #3a5a78;
}

.submit-btn:active {
    transform: scale(0.98);
}

.submit-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.movement-text {
    font-size: 36px;
    font-weight: 400;
    color: #b3b3b3;
    text-align: center;
    margin: 24px 0 0;
    line-height: 1.5;
}

/* ===== MESSAGE STYLES ===== */
.message {
    display: none;
    padding: 14px;
    border-radius: 6px;
    margin-bottom: 24px;
    font-size: 16px;
}

.message.show {
    display: block;
}

.message.success {
    background: rgba(34, 197, 94, 0.1);
    border: 1px solid rgba(34, 197, 94, 0.3);
    color: #4ade80;
}

.message.error {
    background: rgba(239, 68, 68, 0.1);
    border: 1px solid rgba(239, 68, 68, 0.3);
    color: #f87171;
}

/* ===== FOOTER ===== */
.footer {
    border-top: 1px solid rgba(50, 55, 70, 0.3);
    padding: 40px 0;
    margin-top: 20px;
}

.footer-content {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 24px;
}

.social-links a {
    color: #8a8a8a; /* Improved contrast from #737373 */
    transition: color 0.2s;
    display: flex;
    padding: 8px; /* Larger tap target for mobile */
}

.social-links a:hover {
    color: #7a9dc8;
}

.footer-info {
    text-align: center;
    color: #8a8a8a; /* Improved contrast from #737373 */
    font-size: 15px;
}

.footer-info a {
    color: #7a9dc8;
    text-decoration: none;
    transition: color 0.2s;
}

.footer-info a:hover {
    color: #8aadcc;
}

/* ===== RIGHT SECTION - INFO ===== */
.info-section {
    display: flex;
    align-items: center;
}

.info-content {
    width: 100%;
}

.info-title {
    font-size: 36px;
    font-weight: 300;
    margin-bottom: 32px;
    color: #f5f5f5;
}

.info-cards {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.info-card {
    background: #1a1d26;
    border: 1px solid #404252;
    border-radius: 8px;
    padding: 24px;
}

.info-card h3 {
    font-size: 20px;
    font-weight: 500;
    margin-bottom: 16px;
    color: #e5e5e5;
}

.info-card .stat {
    font-size: 17px;
    color: #a3a3a3;
    margin-bottom: 8px;
    line-height: 1.5;
}

.info-card .number {
    font-size: 22px;
    font-weight: 600;
    color: #7a9dc8;
    margin-right: 4px;
}

.info-card .description {
    font-size: 17px;
    color: #f5f5f5;
    margin-bottom: 8px;
    font-weight: 500;
}

.info-card .subtext {
    font-size: 16px;
    color: #8a8a8a; /* Improved contrast from #737373 */
    font-weight: 300;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .container {
        grid-template-columns: 1fr;
        gap: 60px;
        padding: 40px 24px;
    }
}

@media (max-width: 768px) {
    .logo {
        font-size: 48px;
    }

    .tagline {
        font-size: 18px;
    }

    .movement-text {
        font-size: 28px;
    }

    .info-title {
        font-size: 28px;
    }

    .container {
        padding: 32px 20px;
    }
}

@media (max-width: 480px) {
    .logo {
        font-size: 40px;
    }

    .beta-badge {
        font-size: 10px;
        padding: 3px 8px;
    }

    .movement-text {
        font-size: 24px;
    }

    .info-title {
        font-size: 24px;
    }

    .social-links a {
        padding: 12px; /* Even larger tap target on mobile */
        margin: 0 4px;
    }
}

/* ===== ACCESSIBILITY ===== */
/* Skip to main content link */
.skip-link {
    position: absolute;
    top: -40px;
    left: 0;
    background: #436a88;
    color: white;
    padding: 8px 16px;
    text-decoration: none;
    z-index: 100;
    border-radius: 0 0 4px 0;
}

.skip-link:focus {
    top: 0;
}

/* Focus indicators for keyboard navigation */
*:focus-visible {
    outline: 2px solid #7a9dc8;
    outline-offset: 2px;
}

input:focus-visible,
textarea:focus-visible,
button:focus-visible,
a:focus-visible {
    outline: 2px solid #7a9dc8;
    outline-offset: 2px;
}

/* Screen reader only content */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border-width: 0;
}

/* ===== FORM ENHANCEMENTS ===== */
/* Required field indicator */
.required {
    color: #f87171;
    margin-left: 4px;
}

/* Character counter */
.char-count {
    float: right;
    font-size: 14px;
    color: #737373;
    font-weight: 300;
}

/* Form hint text */
.form-hint {
    display: block;
    font-size: 13px;
    color: #737373;
    margin-top: 6px;
    font-style: italic;
}

/* Error messages */
.error-message {
    display: block;
    color: #f87171;
    font-size: 14px;
    margin-top: 6px;
}

.error-message:not([hidden]) {
    display: block;
}

/* Input error state */
input[aria-invalid="true"],
textarea[aria-invalid="true"] {
    border-color: #f87171;
}

/* Privacy notice */
.privacy-notice {
    margin-top: 16px;
    text-align: center;
    font-size: 13px;
    color: #a3a3a3;
}

.privacy-notice a {
    color: #7a9dc8;
    text-decoration: underline;
    transition: color 0.2s;
}

.privacy-notice a:hover {
    color: #8aadcc;
}

/* ===== LOADING SPINNER ===== */
.btn-spinner {
    display: inline-flex;
    align-items: center;
    margin-left: 8px;
}

.spinner {
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    from {
        transform: rotate(0deg);
    }
    to {
        transform: rotate(360deg);
    }
}

/* Button loading state */
.submit-btn[aria-busy="true"] .btn-text {
    opacity: 0.7;
}

/* ===== ANIMATIONS ===== */
/* Message slide down animation */
.message.show {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Smooth placeholder transitions */
input::placeholder,
textarea::placeholder {
    transition: opacity 0.2s;
}

input:focus::placeholder,
textarea:focus::placeholder {
    opacity: 0.5;
}

/* ===== CLOUDFLARE TURNSTILE ===== */
.cf-turnstile {
    margin: 24px 0;
    display: flex;
    justify-content: center;
}

/* ===== MOBILE IMPROVEMENTS ===== */
@media (max-width: 768px) {
    .checkbox-group label {
        padding: 8px 0; /* Easier to tap */
    }

    .char-count {
        font-size: 12px;
    }

    .form-hint {
        font-size: 12px;
    }
}
