/*
Theme Name: GeneratePress Child
Template: generatepress
Version: 2.9
*/

/* === MyPool 24/7 Landing Page Styles === */

/* Root hero container */
.mypool-hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "Helvetica Neue", Arial, sans-serif;
    color: #e5f6ff;
}

/* Background: pool photo + teal overlay */
.mypool-hero::before {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -2;
    background-image: url("https://mypool247.com/wp-content/uploads/2025/11/pool-bg.jpg");
    background-size: cover !important;
    background-position: center calc(50% - 930px) !important;
    background-repeat: no-repeat;
    opacity: 0.8;
}
.mypool-hero::after {
    content: "";
    position: fixed;
    inset: 0;
    z-index: -1;
    background: rgba(12, 74, 110, 0.4);
}

/* Content wrapper */
.mypool-hero-content {
    position: relative;
    z-index: 1;
    max-width: 1120px;
    margin: 0 auto;
    padding: 24px 16px 40px;
}

/* HEADER + FOOTER PILL BARS */
.mypool-landing-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 22px;
    border-radius: 12px;
    background: linear-gradient(135deg, #046a8f, #00779a);
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.55);
    margin: 0 auto 44px;
    backdrop-filter: blur(14px);
}

/* Brand group */
.mypool-brand {
    display: flex;
    align-items: center;
    gap: 12px;
}

/* Rounded-square icon container — bigger now */
.mypool-brand-icon {
    width: 36px;
    height: 36px;
    border-radius: 11px;
    background: rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(191, 219, 254, 0.75);
    box-shadow: 0 0 0 1px rgba(15, 118, 178, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Droplet SVG — bigger to match Replit feel */
.mypool-brand-icon svg {
    width: 24px;
    height: 24px;
    stroke: #ffffff;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* === LOGO TEXT (HEADER + FOOTER) === */

.mypool-brand-text {
    display: flex;
    flex-direction: column;
    line-height: 1.1;
}

/* Container for all parts of the wordmark */
.mypool-logo-wordmark {
    display: inline-flex;
    align-items: baseline;
    font-size: 1.35rem;
    letter-spacing: 0.04em;
    /* Slight but clear shadow so it reads like a logo */
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.65),
        0 0 4px rgba(15, 23, 42, 0.5);
}

/* "My" – normal weight (not bold) */
.mypool-logo-my {
    font-weight: 400;
    color: #ffffff;
}

/* "Pool" – extra-bold so it pops */
.mypool-logo-pool {
    font-weight: 900;
    color: #ffffff;
}

/* "24/7" – same colour, slightly lighter weight than Pool */
.mypool-logo-247 {
    font-weight: 700;
    color: #ffffff;
}

/* Tagline under the logo – brighter + clearer now */
.mypool-brand-tagline {
    font-size: 0.75rem;
    font-weight: 500;
    color: #e5f6ff;
    letter-spacing: 0.03em;
    margin-top: 2px;
    text-shadow:
        0 1px 2px rgba(0, 0, 0, 0.55),
        0 0 3px rgba(15, 23, 42, 0.5);
}

/* Right side of header nav */
.mypool-nav-right {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.88rem;
}
.mypool-nav-email {
    color: #e0f2fe;
    opacity: 0.9;
}
.mypool-nav-actions {
    display: flex;
    gap: 8px;
}

/* Buttons */
.mypool-btn {
    border-radius: 8px; /* less-round buttons */
    padding: 7px 14px;
    font-size: 0.88rem;
    font-weight: 600;
    border: 1px solid rgba(148, 163, 184, 0.4);
    background: transparent;
    color: #e5f6ff;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease,
        transform 0.1s ease;
}
.mypool-btn:hover {
    background: rgba(15, 23, 42, 0.45);
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.45);
    transform: translateY(-0.5px);
}
.mypool-btn-primary {
    border-color: transparent;
    background: linear-gradient(to right, #38bdf8, #0ea5e9);
    color: #0f172a;
}
.mypool-btn-primary:hover {
    background: linear-gradient(to right, #0ea5e9, #0369a1);
    color: #f9fafb;
}

/* Main two-column layout */
.mypool-landing-main {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(0, 2.7fr);
    gap: 40px;
    align-items: center;
    margin-top: 28px;
}

/* LEFT HERO TEXT (contrast tuned) */
.mypool-hero-left-eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.16em;
    font-size: 0.8rem;
    color: #e5f0ff;
    margin-bottom: 14px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.6);
}

.mypool-hero-title {
    font-size: clamp(2.64rem, 4.4vw, 3.74rem);
    line-height: 1.03;
    font-weight: 700;
    color: #ffffff;
    margin-bottom: 14px;
    max-width: 16ch;
    text-shadow:
        0 2px 6px rgba(0, 0, 0, 0.7),
        0 0 4px rgba(15, 23, 42, 0.6);
}

.mypool-hero-subtitle {
    font-size: 1rem;
    line-height: 1.6;
    color: #f4f7ff;
    max-width: 35ch;
    margin-bottom: 18px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

.mypool-hero-bullets {
    list-style: none;
    padding: 0;
    margin: 0 0 22px;
    font-size: 1rem;
    color: #f4f7ff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}
.mypool-hero-bullets li {
    margin-bottom: 6px;
    position: relative;
    padding-left: 14px;
}
.mypool-hero-bullets li::before {
    content: "•";
    position: absolute;
    left: 2px;
    top: 0;
    color: #7dd3fc;
}

.mypool-hero-cta-note {
    font-size: 0.77rem;
    color: #e3f2ff;
    margin-top: 8px;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.7);
}

/* RIGHT PREVIEW CARD */
.mypool-card-wrapper {
    display: flex;
    justify-content: flex-end;
}
.mypool-preview-card {
    width: 100%;
    max-width: 420px;
    background: rgba(241, 245, 249, 0.98);
    border-radius: 24px;
    padding: 18px 18px 20px;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.65);
    color: #0f172a;
}

/* Card header */
.mypool-card-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 14px;
}
.mypool-card-title {
    font-size: 0.86rem;
    font-weight: 600;
    color: #0f172a;
}
.mypool-card-subtitle {
    font-size: 0.77rem;
    color: #64748b;
}
.mypool-pill {
    font-size: 0.77rem;
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.08);
    color: #059669;
    border: 1px solid rgba(34, 197, 94, 0.35);
}

/* Sliders */
.mypool-field-group {
    margin-bottom: 10px;
}
.mypool-field-label-row {
    display: flex;
    justify-content: space-between;
    font-size: 0.8rem;
    color: #475569;
    margin-bottom: 4px;
}
.mypool-field-slider-track {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: #e2e8f0;
    overflow: hidden;
}
.mypool-field-slider-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(to right, #22c55e, #0ea5e9);
}

/* Notes + summary */
.mypool-notes-field {
    margin-top: 12px;
}
.mypool-input-notes {
    width: 100%;
    border-radius: 10px;
    border: 1px solid #cbd5f5;
    padding: 7px 9px;
    font-size: 0.83rem;
    resize: none;
    min-height: 54px;
    color: #0f172a;
    background: #f9fafc;
}
.mypool-section-label {
    margin-top: 12px;
    font-size: 0.77rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #64748b;
}
.mypool-summary-text {
    font-size: 0.83rem;
    color: #4b5563;
    margin-top: 4px;
}

/* Step */
.mypool-step {
    margin-top: 10px;
    border-radius: 14px;
    border: 1px solid #e2e8f0;
    padding: 8px 10px;
    background: #f8fafc;
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 8px;
    align-items: flex-start;
}
.mypool-step-number {
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: #0ea5e9;
    color: white;
    font-size: 0.78rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}
.mypool-step-text-strong {
    font-size: 0.86rem;
    font-weight: 600;
    margin-bottom: 2px;
}
.mypool-step-text-body {
    font-size: 0.8rem;
    color: #4b5563;
}

/* === FOOTER PILL BAR (FLOATING) === */

.mypool-footer {
    margin-top: 0;
}

.mypool-footer-nav {
    position: fixed;
    left: 50%;
    bottom: 20px;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 1120px;
    z-index: 20;
    margin: 0;
}

.mypool-footer-right {
    display: flex;
    align-items: center;
    gap: 16px;
    font-size: 0.8rem;
    color: #e0f2fe;
    flex-wrap: wrap;
}

.mypool-footer-copy {
    opacity: 0.9;
}

.mypool-footer-links {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.mypool-footer-links a {
    color: #bae6fd;
    text-decoration: none;
    font-size: 0.8rem;
}

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

/* === Responsive background position tweaks === */
@media (max-width: 1800px) {
    .mypool-hero::before {
        background-position: center calc(50% - 750px) !important;
    }
}
@media (max-width: 1600px) {
    .mypool-hero::before {
        background-position: center calc(50% - 580px) !important;
    }
}
@media (max-width: 1400px) {
    .mypool-hero::before {
        background-position: center calc(50% - 420px) !important;
    }
}
@media (max-width: 1200px) {
    .mypool-hero::before {
        background-position: center calc(50% - 260px) !important;
    }
}
@media (max-width: 1024px) {
    .mypool-hero::before {
        background-position: center !important;
    }
}

/* Layout tweaks */
@media (max-width: 960px) {
    .mypool-hero-content {
        padding: 16px 16px 32px;
    }
    .mypool-landing-nav {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
        border-radius: 16px;
    }
    .mypool-nav-right {
        width: 100%;
        justify-content: space-between;
    }
    .mypool-landing-main {
        grid-template-columns: minmax(0, 1fr);
        gap: 28px;
        margin-top: 16px;
    }
    .mypool-card-wrapper {
        justify-content: center;
    }
    .mypool-footer-right {
        flex-direction: column;
        align-items: flex-start;
    }
}
@media (max-width: 640px) {
    .mypool-hero-title {
        max-width: none;
    }
}

/* === HIDE DEFAULT GENERATEPRESS HEADER/FOOTER ON HOME === */
body.home .site-header,
body.front-page .site-header,
body.home .site-footer,
body.front-page .site-footer {
    display: none;
}

body.home .site-content,
body.front-page .site-content {
    padding-top: 0;
    margin-top: 0;
}

/* === MyPool 24/7 App Template (page-mypool-app.php) === */

/* Reuse hero background + pills; just hide default header/footer on these pages */
.page-template-page-mypool-app .site-header,
.page-template-page-mypool-app .site-footer {
    display: none;
}

.page-template-page-mypool-app .site-content {
    margin-top: 0;
    padding-top: 0;
}

/* Centre the app content card inside the hero */
.page-template-page-mypool-app .mypool-app-main {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: calc(100vh - 230px); /* leaves room for top & bottom pills */
    padding: 40px 0 80px;
}

/* Let plugin shortcodes use the hero background, not a white box */
.page-template-page-mypool-app .mypool-ai-page {
    background: transparent;
    padding: 0;
    min-height: auto;
}

.page-template-page-mypool-app .mypool-ai-page-inner {
    max-width: 420px;
    margin: 0 auto;
}

/* === MyPool 24/7: make signup / login CTA buttons more square === */
/* Applies to all app pages using the MyPool app template */
.page-template-page-mypool-app .mypool-app-main button,
.page-template-page-mypool-app .mypool-app-main input[type="submit"],
.page-template-page-mypool-app .mypool-app-main .button,
.page-template-page-mypool-app .mypool-app-main .wp-element-button,
.page-template-page-mypool-app .mypool-app-main .wp-block-button__link,
.page-template-page-mypool-app .mypool-app-main a[class*="button"],
.page-template-page-mypool-app .mypool-app-main [class*="btn"] {
    border-radius: 8px !important;   /* same radius as top-pill buttons */
}

/* === MyPool: flatten "Sign up free" / "Log in" buttons on Test Water (generic) === */
.page-test-water a,
.page-test-water button,
.page-test-water input[type="submit"],
.page-test-water .button,
.page-test-water .wp-element-button,
.page-test-water .wp-block-button__link {
    border-radius: 8px !important;   /* match top-pill buttons */
}

/* === MyPool: ultra-specific override for Test Water card CTAs === */
/* This beats aggressive plugin rules for the "Sign up free" / "Log in" links */
.page-test-water.page-test-water.page-test-water .entry-content a,
.page-test-water.page-test-water.page-test-water .entry-content button,
.page-test-water.page-test-water.page-test-water .entry-content input[type="submit"],
.page-test-water.page-test-water.page-test-water .entry-content .button,
.page-test-water.page-test-water.page-test-water .entry-content .wp-element-button,
.page-test-water.page-test-water.page-test-water .entry-content .wp-block-button__link {
    border-radius: 8px !important;
}

/* =========================================================
   MyPool 24/7 – WordPress login page styling
   ====================================================== */

body.login {
    /* Use the same pool background as the app pages */
    background-image: url("https://mypool247.com/wp-content/uploads/2025/11/pool-bg.jpg");
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text",
        "Helvetica Neue", Arial, sans-serif;
}

body.login:before {
    /* Teal overlay to match the home page */
    content: "";
    position: fixed;
    inset: 0;
    background: rgba(12, 74, 110, 0.55);
    z-index: -1;
}

/* Position the login box */
body.login #login {
    width: 360px;
    padding-top: 60px;
    padding-bottom: 40px;
}

/* Style the login form like a MyPool card */
body.login #loginform {
    background: rgba(248, 250, 252, 0.98);
    border-radius: 24px;
    box-shadow: 0 22px 55px rgba(15, 23, 42, 0.65);
    padding: 26px 24px 28px;
    border: none;
}

/* Labels + inputs */
body.login #loginform label {
    font-size: 13px;
    color: #0f172a;
}

body.login #loginform input[type="text"],
body.login #loginform input[type="password"] {
    border-radius: 10px;
    border: 1px solid #cbd5f5;
    box-shadow: none;
    padding: 8px 10px;
    font-size: 14px;
}

body.login #loginform input[type="text"]:focus,
body.login #loginform input[type="password"]:focus {
    border-color: #0ea5e9;
    box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.4);
}

/* Primary login button – match MyPool buttons */
body.login .wp-core-ui .button-primary {
    background: linear-gradient(to right, #38bdf8, #0ea5e9);
    border-color: transparent;
    border-radius: 8px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.45);
    text-shadow: none;
    font-weight: 600;
    padding: 7px 18px;
}

body.login .wp-core-ui .button-primary:hover {
    background: linear-gradient(to right, #0ea5e9, #0369a1);
    border-color: transparent;
}

/* Keep secondary buttons simple but consistent */
body.login .wp-core-ui .button-secondary {
    border-radius: 8px;
}

/* Logo: use text-based MyPool 24/7 mark instead of WP logo */
body.login h1 a {
    background-image: none !important;
    text-indent: 0;
    width: auto;
    height: auto;
    font-size: 24px;
    font-weight: 800;
    color: #ffffff;
    text-decoration: none;
    text-shadow:
        0 2px 5px rgba(0, 0, 0, 0.7),
        0 0 4px rgba(15, 23, 42, 0.7);
}

body.login h1 {
    text-align: center;
}

/* Links under the form */
body.login #nav a,
body.login #backtoblog a {
    color: #e0f2fe;
}

body.login #nav a:hover,
body.login #backtoblog a:hover {
    color: #ffffff;
    text-decoration: underline;
}

/* ================================
   MyPool 24/7 – Create Account card
   ================================ */

/* Full-screen layout similar to Test Water */
.page-mypool-register .mypool-register-screen {
    min-height: calc(100vh - 120px); /* leave room for header/footer */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 120px 16px 80px;
    box-sizing: border-box;
}

/* The white card */
.page-mypool-register .mypool-register-card {
    width: 100%;
    max-width: 520px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.40);
    padding: 28px 28px 24px;
    box-sizing: border-box;
}

/* Header row with icon + title */
.page-mypool-register .mypool-register-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

/* Round icon matches the other cards */
.page-mypool-register .mypool-register-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(145deg, #ffe38f, #ffc54d);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Title + subtitle */
.page-mypool-register .mypool-register-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #1b2733;
}

.page-mypool-register .mypool-register-subtitle {
    margin: 2px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: #5a6978;
}

/* Section label */
.page-mypool-register .mypool-register-section-label {
    margin: 12px 0 8px;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7c8a99;
}

/* Form fields */
.page-mypool-register .mypool-register-form {
    margin-top: 4px;
}

.page-mypool-register .mypool-field {
    display: block;
    width: 100%;
    margin-bottom: 10px;
}

.page-mypool-register .mypool-field-label {
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
    color: #4c5a67;
}

.page-mypool-register .mypool-field input[type="email"],
.page-mypool-register .mypool-field input[type="password"] {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(12, 42, 67, 0.16);
    padding: 10px 12px;
    font-size: 14px;
    box-sizing: border-box;
}

/* Two-column row for password / confirm password */
.page-mypool-register .mypool-register-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width: 640px) {
    .page-mypool-register .mypool-register-row {
        grid-template-columns: 1fr;
    }
}

/* Helper text */
.page-mypool-register .mypool-register-help {
    font-size: 11px;
    color: #7c8a99;
    margin: 4px 0 10px;
}

/* reCAPTCHA alignment */
.page-mypool-register .mypool-register-recaptcha {
    margin: 4px 0 16px;
}

/* Create account button – matches top-pill buttons */
.page-mypool-register .mypool-btn.mypool-btn-primary.mypool-btn-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-radius: 18px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(90deg, #00b4e6, #0094ff);
    border: none;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 150, 255, 0.5);
}

/* Error box */
.page-mypool-register .mypool-register-errors {
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 80, 80, 0.06);
    border: 1px solid rgba(255, 80, 80, 0.35);
    color: #b03030;
    font-size: 12px;
}

.page-mypool-register .mypool-register-errors ul {
    margin: 0;
    padding-left: 16px;
}

/* =========================================================
   MyPool 24/7 – FINAL Create Account card styles
   (apply everywhere the [mypool_register] shortcode is used)
   ====================================================== */

/* Layout wrapper */
/* Position Create Account card and avoid extra vertical height */
.mypool-register-screen {
    min-height: calc(100vh - 200px); /* slightly smaller to avoid overflow */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px 80px;
    box-sizing: border-box;
}
/* Lift the Create Account card slightly higher */
.mypool-register-card {
    position: relative;
    top: -24px; /* increase magnitude to move even higher, e.g. -32px */
}
/* Remove vertical scrolling on Create Account page (desktop / tall screens) */
body.page-mypool_register,
body.page-mypool-register {
    position: fixed;
    inset: 0;          /* top/right/bottom/left: 0 */
    width: 100%;
}

/* On shorter viewports, allow scrolling so nothing is cut off */
@media (max-height: 820px) {
    body.page-mypool_register,
    body.page-mypool-register {
        position: static;
    }
}
/* Hide vertical scroll on tall screens for Create Account page */
body.page-mypool_register,
body.page-mypool-register {
    overflow-y: hidden;
}

/* On shorter viewports, allow scrolling so content isn't cut off */
@media (max-height: 820px) {
    body.page-mypool_register,
    body.page-mypool-register {
        overflow-y: auto;
    }
}

/* White card */
.mypool-register-card {
    width: 100%;
    max-width: 520px;
    background: rgba(255, 255, 255, 0.96);
    border-radius: 24px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.40);
    padding: 28px 28px 24px;
    box-sizing: border-box;
}

/* Header row (icon + title) */
.mypool-register-header {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 18px;
}

/* Round icon badge */
.mypool-register-icon {
    width: 32px;
    height: 32px;
    border-radius: 999px;
    background: linear-gradient(145deg, #ffe38f, #ffc54d);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Title + subtitle */
.mypool-register-title {
    font-size: 18px;
    font-weight: 600;
    margin: 0;
    color: #1b2733;
}

.mypool-register-subtitle {
    margin: 2px 0 0;
    font-size: 13px;
    line-height: 1.5;
    color: #5a6978;
}

/* Section label */
.mypool-register-section-label {
    margin: 12px 0 8px;
    font-size: 11px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #7c8a99;
}

/* Fields */
.mypool-register-form {
    margin-top: 4px;
}

.mypool-field {
    display: block;
    width: 100%;
    margin-bottom: 10px;
}

.mypool-field-label {
    display: block;
    font-size: 12px;
    margin-bottom: 4px;
    color: #4c5a67;
}

.mypool-field input[type="email"],
.mypool-field input[type="password"] {
    width: 100%;
    border-radius: 12px;
    border: 1px solid rgba(12, 42, 67, 0.16);
    padding: 10px 12px;
    font-size: 14px;
    box-sizing: border-box;
}

/* Two-column row for password + confirm (desktop) */
.mypool-register-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
}

@media (max-width: 640px) {
    .mypool-register-row {
        grid-template-columns: 1fr;
    }
}

/* Helper text */
.mypool-register-help {
    font-size: 11px;
    color: #7c8a99;
    margin: 4px 0 10px;
}

/* reCAPTCHA block inside the card */
.mypool-register-recaptcha {
    margin: 4px 0 16px;
}

/* Primary button – same radius as top-pill buttons */
.mypool-btn.mypool-btn-primary.mypool-btn-large {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    border-radius: 8px; /* matches your top pill buttons */
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 600;
    background: linear-gradient(90deg, #00b4e6, #0094ff);
    border: none;
    color: #ffffff;
    cursor: pointer;
    box-shadow: 0 4px 10px rgba(0, 150, 255, 0.5);
}

/* Error messages */
.mypool-register-errors {
    margin-bottom: 14px;
    padding: 10px 12px;
    border-radius: 10px;
    background: rgba(255, 80, 80, 0.06);
    border: 1px solid rgba(255, 80, 80, 0.35);
    color: #b03030;
    font-size: 12px;
}

.mypool-register-errors ul {
    margin: 0;
    padding-left: 16px;
}
/* Lift Create Account card slightly higher on the screen */
.mypool-register-card {
    position: relative;
    top: -50px; /* adjust -/+ if you want more or less lift */
}
/* Remove vertical scrollbar on the Create Account page */
body[class*="mypool_register"],
body[class*="mypool-register"] {
    height: 100vh;
    overflow-y: hidden;
}

/* On short viewports, allow scrolling so nothing gets cut off */
@media (max-height: 820px) {
    body[class*="mypool_register"],
    body[class*="mypool-register"] {
        height: auto;
        overflow-y: auto;
    }
}
/* =========================================================
   FINAL Create Account layout + scroll fix
   (works no matter what the page slug is)
   ====================================================== */

/* Register screen wrapper */
.mypool-register-screen {
    min-height: calc(100vh - 220px); /* fits between top + bottom pills */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px 16px 90px;        /* more padding at bottom than top */
    box-sizing: border-box;
}

/* Lift the card a bit higher */
.mypool-register-card {
    position: relative;
    top: -40px; /* tweak this: -30px/-50px if you want a bit lower/higher */
}

/* Hide vertical scrollbar on pages that show the register screen */
body:has(.mypool-register-screen) {
    height: 100vh;
    overflow-y: hidden;
}

/* On shorter viewports, allow scrolling so form isn't cut off */
@media (max-height: 820px) {
    body:has(.mypool-register-screen) {
        height: auto;
        overflow-y: auto;
    }
}