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

:root {
    --purple-dark   : #5c122b;
    --purple-light  : #fb7dc4;
    --white         : #ffffff;
    --offwhite      : #f8f9fa;
    --gold-light    : #fbe5ba;
    --gold-dark     : #c9a96e;
    --pink          : #e83fa0;
    --pink-light    : #fde8f4;
    --pink-mid      : #f4c2e0;
    --body-text     : #3a2540;
    --muted         : #8a7090;
    --border        : #ecd8e8;
    --error-bg      : #fee8f0;
    --error-text    : #c0185a;
    --success-bg    : #e8f7f0;
    --success-text  : #1a7a4a;
    --radius        : 12px;
    --radius-sm     : 8px;
    --teal          : #2e5f74;
    --teal-dark     : #1a3d4f;
    --teal-light    : #e8f4f8;
    --green         : #008000;
}

html {scroll-behavior: smooth;}

body {
    background: var(--purple-light);
    color: var(--body-text);
    font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
    font-size: 15px;
    line-height: 1.6;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Banner Component */
.BetaTestBanner {
    background: linear-gradient(135deg, #1a3d4f, #2e5f74);
    color: rgba(255, 255, 255, 0.92);
    text-align: center;
    padding: 10px 48px 10px 24px;
    font-size: 0.88rem;
    font-family: 'Lato', sans-serif;
    position: relative;
    z-index: 1001;
    line-height: 1.5;
}

.MainBanner {
    background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple-light) 60%, #3a7a94 100%);
    padding: 20px 24px;
    text-align: center;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

.MainBanner::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: radial-gradient(ellipse at center, rgba(251, 229, 186, 0.06) 0%, transparent 60%);
    pointer-events: none;
}

.MainBanner-content {
    position: relative;
    max-width: 800px;
    margin: 0 auto;
}

.MainBanner h1 {
    font-family: 'Merriweather', serif;
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--gold-light);
    line-height: 1.2;
    margin: 0 auto;
}

.MainBanner p {
    font-size: 1.15rem;
    font-weight: 300;
    color: rgba(255, 255, 255, 0.9);
    max-width: 600px;
    margin: 0 auto;
}

.stripe {
    height: 3px;
    background: linear-gradient(90deg, #C4205A 0%, var(--pink) 45%, #9B4B8A 100%);
    flex-shrink: 0;
}

/* Layout Content */
.MainContent {
    flex: 1;
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding: 48px 16px 64px;
}

.FormWrapper {
    border: 2px solid var(--purple-dark);
    border-radius: var(--radius);
    box-shadow: 0 4px 12px rgba(46, 95, 116, 0.15); /* Fixed plain color shadow */
    width: 100%;
    max-width: 480px;
    padding: 20px;
    background: var(--white);
}

.box {
    max-width: 400px;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: var(--radius);
    font-family: sans-serif;
}

/* Alerts System */
.alert {
    padding: 12px 16px;
    border-radius: var(--radius-sm);
    font-size: 14px;
    margin-bottom: 20px;
    line-height: 1.5;
}

.alert-error {
    background: var(--error-bg);
    color: var(--error-text);
    border-left: 3px solid var(--pink);
}

.alert-success {
    background: var(--success-bg);
    color: var(--success-text);
    border-left: 3px solid var(--success-text);
}

.alert-info {
    background: var(--pink-light);
    color: var(--teal);
    border-left: 3px solid var(--pink);
}

.age-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--pink-light);
    border: 1px solid var(--teal);
    color: var(--pink);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.06em;
    padding: 5px 12px;
    border-radius: 20px;
    margin-bottom: 20px;
}

/* Social Login Providers */
.social-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    width: 100%;
    padding: 11px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: opacity .15s;
    margin-bottom: 10px;
}

.social-btn:hover {
    opacity: .88;
}

.social-btn-google {
    background: #fff;
    color: #3C4043;
    border: 1.5px solid #DADCE0;
}

.social-btn-facebook {
    background: #1877F2;
    color: #fff;
}

.social-btn-twitter {
    background: #000;
    color: #fff;
}

.social-age-note {
    font-size: 11px;
    text-align: center;
    color: var(--muted);
    margin-top: -6px;
    margin-bottom: 10px;
}

.social-divider {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 24px 0;
    font-size: 12px;
    color: var(--muted);
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.social-divider::before, .social-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--border);
}

/* Forms Elements */
.form-group {
    margin-bottom: 15px;
}

.form-group input {
    width: 100%;
    padding: 10px 12px;
    border: 1.5px solid var(--border);
    border-radius: var(--radius-sm);
    font-family: inherit;
    font-size: 14px;
    outline: none;
    transition: border-color 0.2s ease;
}

input:focus {
    border-color: var(--pink);
}

input::placeholder {
    color: #C0A8C0;
}

.btn {
    display: block;
    width: 100%;
    padding: 13px 24px;
    border: none;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    cursor: pointer;
    text-align: center;
    text-decoration: none;
    font-family: inherit;
    transition: opacity .15s, transform .1s;
}

.btn:active {
    transform: scale(.98);
}

.btn-primary {
    background: var(--teal);
    color: #fff;
}

.btn-primary:hover {
    opacity: .88;
}

.btn-pink {
    background: var(--pink);
    color: #fff;
}

.btn-pink:hover {
    opacity: .88;
}

/* Password Features */
.password-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 100%;
}

.password-wrapper input {
    padding-right: 42px;
}

.password-toggle {
    position: absolute;
    right: 12px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    line-height: 1;
    color: var(--muted);
    display: flex;
    align-items: center;
}

.password-toggle:focus-visible {
    outline: 2px solid var(--pink);
    border-radius: 4px;
}

.password-toggle svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.strength-bar {
    height: 5px;
    background: #ECD8E8;
    border-radius: 99px;
    margin-top: 8px;
    overflow: hidden;
}

.strength-segments {
    display: flex;
    gap: 3px;
    height: 100%;
}

.strength-segments span {
    flex: 1;
    border-radius: 99px;
    background: #ECD8E8;
    transition: background 0.3s ease;
}

.strength-label-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 5px;
}

.strength-label-row .input-hint {
    margin: 0;
    font-size: 11px;
    color: var(--muted);
    transition: color 0.3s;
}

.strength-label-row .strength-score-text {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    transition: color 0.3s;
}

.checkbox-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 20px;
}

.checkbox-row input[type=checkbox] {
    width: 18px;
    height: 18px;
    margin-top: 2px;
    accent-color: var(--pink);
    flex-shrink: 0;
    cursor: pointer;
}

.checkbox-label {
    font-size: 13px;
    color: var(--body-text);
    line-height: 1.5;
    cursor: pointer;
}

.checkbox-label strong {
    color: var(--teal);
}

.card-footer {
    text-align: center;
    margin-top: 24px;
    font-size: 13px;
    color: var(--muted);
}

.card-footer a {
    color: var(--pink);
    text-decoration: none;
    font-weight: 600;
}

.card-footer a:hover {
    text-decoration: underline;
}

/* Modal UI Elements */
.social-open-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    padding: 12px 16px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    border: 1.5px solid var(--border);
    background: var(--pink-light);
    color: var(--pink);
    font-family: inherit;
    transition: opacity .15s, background .15s;
    margin-bottom: 0;
    text-align: center;
}

.social-open-btn:hover {
    background: var(--pink-mid);
    opacity: 1;
}

.social-open-btn svg {
    flex-shrink: 0;
}

.social-modal-overlay {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .45);
    backdrop-filter: blur(3px);
    -webkit-backdrop-filter: blur(3px);
    z-index: 9000;
    align-items: center;
    justify-content: center;
    padding: 16px;
}

.social-modal-overlay.is-open {
    display: flex;
}

.social-modal {
    background: #fff;
    border-radius: var(--radius);
    padding: 0;
    width: 100%;
    max-width: 480px;
    position: relative;
    box-shadow: 0 20px 60px rgba(0, 0, 0, .18);
    animation: modalIn .2s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

@keyframes modalIn {
    from { transform: translateY(12px) scale(.97); opacity: 0; }
    to   { transform: translateY(0) scale(1); opacity: 1; }
}

.social-modal-header {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 18px 14px;
    border-bottom: 1px solid var(--border);
    background: var(--pink-light);
    flex-shrink: 0;
}

.social-modal-back {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    padding: 4px;
    line-height: 1;
    border-radius: 6px;
    flex-shrink: 0;
    transition: color .15s;
}

.social-modal-back:hover {
    color: var(--pink);
}

.social-modal-back svg {
    width: 18px;
    height: 18px;
    pointer-events: none;
}

.social-modal-back.visible {
    display: flex;
}

.social-modal-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--teal);
    margin: 0;
    flex: 1;
}

.social-modal-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--muted);
    padding: 4px;
    line-height: 1;
    border-radius: 6px;
    flex-shrink: 0;
    transition: color .15s, background .15s;
}

.social-modal-close:hover {
    color: var(--pink);
    background: rgba(0, 0, 0, .05);
}

.social-modal-close svg {
    width: 20px;
    height: 20px;
    pointer-events: none;
}

.social-modal-picker {
    padding: 20px 22px 22px;
}

.social-modal-sub {
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 16px;
}

.modal-age-note {
    font-size: 11px;
    text-align: center;
    color: var(--muted);
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--border);
    line-height: 1.5;
}

.social-modal-waiting {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 36px 24px 32px;
    text-align: center;
    gap: 0;
}

.social-modal-waiting.visible {
    display: flex;
}

.spinner {
    width: 36px;
    height: 36px;
    border: 3px solid var(--border);
    border-top-color: var(--pink);
    border-radius: 50%;
    animation: spin .8s linear infinite;
    margin-bottom: 18px;
}

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

.waiting-title {
    font-size: 15px;
    font-weight: 700;
    color: var(--teal);
    margin: 0 0 6px;
}

.waiting-sub {
    font-size: 12px;
    color: var(--muted);
    margin: 0 0 20px;
    line-height: 1.5;
}

.waiting-cancel {
    background: none;
    border: 1.5px solid var(--border);
    border-radius: 30px;
    padding: 8px 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--muted);
    cursor: pointer;
    font-family: inherit;
    transition: border-color .15s, color .15s;
}

.waiting-cancel:hover {
    border-color: var(--pink);
    color: var(--pink);
}

/* Static Sections Layout */
.SectionInner {
    max-width: 1200px;
    margin: 0 auto;
}

.SectionTitle {
    font-family: 'Merriweather', serif;
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--teal);
    text-decoration: underline solid var(--teal) 3px; /* Cleaned shorthand */
    text-underline-offset: 5px;
}

.SectionSubTitle {
    font-size: 1.05rem;
    color: var(--muted);
    margin-bottom: 40px;
    max-width: 600px;
}

/* ReCaptcha Specifics */
.grecaptcha-badge {
    visibility: visible !important;
}

.recaptcha-note {
    font-size: 11px;
    color: var(--muted);
    text-align: center;
    margin-top: 10px;
    line-height: 1.5;
}

.recaptcha-note a {
    color: inherit;
}

/* Responsive Breakpoints */
@media (max-width: 768px) {
    .MainBanner h1 {
        font-size: 2rem;
    }
    section {
        padding: 20px;
        background: var(--purple-light);
    }
}

@media (max-width: 540px) {
    .social-modal {
        max-width: 100%;
    }
    .box {
        padding: 28px 20px 24px;
    }
    section {
        padding: 24px 12px 48px;
    }
}