/**
 * Bundler — Login + Dashboard + Settings styling
 *
 * Scoped to bundler-only classes (.bundler-login-page, .bundler-recent-bundles,
 * .bundler-settings-card, etc.) so it loads alongside admin.css without
 * overriding shared chrome.
 */

/* ── Login page ──────────────────────────────────────────────── */

body.bundler-login-page {
    margin: 0;
    /* iOS Safari: 100vh ignores the dynamic browser chrome and causes layout
       jumps when the address bar collapses on scroll. 100dvh tracks the
       actually-visible viewport. Fallback to 100vh for older browsers. */
    min-height: 100vh;
    min-height: 100dvh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem 1rem;
    background:
        radial-gradient(ellipse at 20% 0%, rgba(13, 148, 136, 0.18), transparent 55%),
        radial-gradient(ellipse at 100% 100%, rgba(45, 212, 191, 0.12), transparent 55%),
        linear-gradient(135deg, #0f172a 0%, #1e293b 70%, #134e4a 130%);
    color: #fff;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    -webkit-text-size-adjust: 100%;
}

.bundler-login-card {
    width: 100%;
    max-width: 940px;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    background: #fff;
    color: #0f172a;
    border-radius: 18px;
    overflow: hidden;
    box-shadow:
        0 20px 50px rgba(15, 23, 42, 0.4),
        0 0 0 1px rgba(255, 255, 255, 0.04);
}

/* ── Rail (left side) — animated document stack ──────────────── */

.bundler-login-rail {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 3rem 2rem;
    background:
        radial-gradient(circle at 30% 20%, rgba(94, 234, 212, 0.18), transparent 50%),
        linear-gradient(160deg, #0D9488 0%, #0f766e 50%, #115e59 100%);
    color: #fff;
    overflow: hidden;
}

.bundler-rail-stack {
    position: relative;
    width: 240px;
    height: 280px;
    margin-bottom: 2rem;
}

.bundler-rail-doc {
    position: absolute;
    top: 18px;
    left: 50%;
    width: 180px;
    height: 232px;
    margin-left: -90px;
    background: #ffffff;
    border-radius: 10px;
    padding: 22px 20px;
    box-sizing: border-box;
    box-shadow: 0 14px 36px rgba(15, 23, 42, 0.28);
    animation-duration: 7s;
    animation-iteration-count: infinite;
    animation-timing-function: ease-in-out;
}

/* Back document — leans left, dimmed slightly */
.bundler-rail-doc-3 {
    background: #5eead4;
    z-index: 1;
    animation-name: bundler-float-back;
}

/* Middle document */
.bundler-rail-doc-2 {
    background: #ecfdf5;
    z-index: 2;
    animation-name: bundler-float-mid;
    animation-delay: -1.5s;
}

/* Front document — top of stack, slight right tilt */
.bundler-rail-doc-1 {
    background: #ffffff;
    z-index: 3;
    animation-name: bundler-float-front;
    animation-delay: -3s;
}

.bundler-rail-doc .line {
    display: block;
    height: 4px;
    border-radius: 2px;
    background: #cbd5e1;
    margin-bottom: 9px;
}
.bundler-rail-doc .line-title {
    height: 6px;
    width: 56%;
    background: #0D9488;
    margin-bottom: 16px;
}
.bundler-rail-doc .line-1 { width: 86%; }
.bundler-rail-doc .line-2 { width: 70%; }
.bundler-rail-doc .line-3 { width: 78%; }
.bundler-rail-doc .line-4 { width: 50%; }
.bundler-rail-cta {
    display: block;
    width: 70px;
    height: 22px;
    border-radius: 5px;
    background: #0D9488;
    margin-top: 16px;
}

/* The "binder" — a horizontal accent below the stack representing
   the bundle being formed. Subtle, doesn't compete with the docs. */
.bundler-rail-binder {
    position: absolute;
    left: 50%;
    bottom: 6px;
    width: 200px;
    height: 6px;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.4);
    border-radius: 3px;
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.15);
}

.bundler-rail-caption {
    margin: 0;
    font-size: 0.85rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
}

@keyframes bundler-float-front {
    0%, 100% { transform: translate(22px, 0) rotate(4deg); }
    50%      { transform: translate(22px, -7px) rotate(4.5deg); }
}
@keyframes bundler-float-mid {
    0%, 100% { transform: translate(0, 6px) rotate(-1.5deg); }
    50%      { transform: translate(0, 1px) rotate(-1deg); }
}
@keyframes bundler-float-back {
    0%, 100% { transform: translate(-26px, 14px) rotate(-7deg); }
    50%      { transform: translate(-26px, 8px) rotate(-6.5deg); }
}

/* Respect users who'd rather not see motion */
@media (prefers-reduced-motion: reduce) {
    .bundler-rail-doc { animation: none !important; }
}

/* ── Form (right side) ───────────────────────────────────────── */

.bundler-login-form {
    padding: 3rem 3.25rem;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.bundler-login-header {
    margin-bottom: 1.75rem;
}

.bundler-login-logo {
    height: 26px;
    width: auto;
    display: block;
    margin-bottom: 1.5rem;
}

.bundler-login-eyebrow {
    display: inline-block;
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: #0D9488;
    margin-bottom: 0.45rem;
}

.bundler-login-form h1 {
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0 0 0.5rem;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.bundler-login-subtitle {
    color: #64748b;
    margin: 0;
    font-size: 0.95rem;
}

/* Error alert */
.bundler-login-form .alert-error {
    background: #fef2f2;
    color: #b91c1c;
    border: 1px solid #fecaca;
    padding: 0.7rem 0.9rem;
    border-radius: 8px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

/* Passkey block — prominent, primary action when available */
.bundler-passkey-block {
    margin-bottom: 0;
}

.btn-passkey-primary {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.55rem;
    width: 100%;
    padding: 0.85rem 1rem;
    background: #0D9488;
    color: #fff;
    border: none;
    border-radius: 10px;
    font: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s, box-shadow 0.15s;
    box-shadow: 0 4px 12px rgba(13, 148, 136, 0.25);
}
.btn-passkey-primary:hover {
    background: #0f766e;
    box-shadow: 0 6px 18px rgba(13, 148, 136, 0.32);
}
.btn-passkey-primary:active {
    transform: translateY(1px);
}

.bundler-passkey-block .webauthn-login-error {
    color: #b91c1c;
    font-size: 0.85rem;
    margin: 0.5rem 0 0;
    min-height: 1em;
}

/* Divider between passkey and password */
.bundler-divider {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin: 1.25rem 0;
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}
.bundler-divider::before,
.bundler-divider::after {
    content: "";
    flex: 1;
    height: 1px;
    background: #e2e8f0;
}

/* Email + password fields */
.bundler-login-fields .form-group {
    margin-bottom: 0.9rem;
}
.bundler-login-fields label {
    display: block;
    font-size: 0.82rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.4rem;
}
.bundler-login-fields input[type="email"],
.bundler-login-fields input[type="password"] {
    width: 100%;
    padding: 0.75rem 0.9rem;
    border: 1px solid #cbd5e1;
    border-radius: 9px;
    font: inherit;
    /* iOS Safari auto-zooms inputs with font-size < 16px on focus, jerking
       the layout sideways. Force at least 16px to keep zoom disabled. */
    font-size: 16px;
    color: #0f172a;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
    box-sizing: border-box;
}
.bundler-login-fields input:focus {
    outline: none;
    border-color: #0D9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.btn-primary-login {
    display: block;
    width: 100%;
    padding: 0.85rem 1rem;
    background: #0f172a;
    color: #fff;
    border: none;
    border-radius: 10px;
    font: inherit;
    font-weight: 600;
    font-size: 0.95rem;
    cursor: pointer;
    transition: background 0.15s, transform 0.1s;
    margin-top: 0.5rem;
}
.btn-primary-login:hover {
    background: #1e293b;
}
.btn-primary-login:active {
    transform: translateY(1px);
}

/* Secondary actions — demoted to small text links */
.bundler-login-secondary {
    margin-top: 1rem;
    text-align: center;
    font-size: 0.82rem;
    color: #94a3b8;
}
.bundler-login-secondary a {
    color: #64748b;
    text-decoration: none;
    transition: color 0.15s;
}
.bundler-login-secondary a:hover {
    color: #0D9488;
    text-decoration: underline;
}
.bundler-login-secondary span {
    margin: 0 0.5rem;
}

/* Footer — signup line, currently disabled */
.bundler-login-footer {
    margin-top: 2rem;
    padding-top: 1.25rem;
    border-top: 1px solid #f1f5f9;
    text-align: center;
}
.bundler-login-signup-line {
    font-size: 0.85rem;
    color: #64748b;
}
.bundler-login-signup-link {
    color: #cbd5e1;
    text-decoration: none;
    font-weight: 600;
    cursor: not-allowed;
    pointer-events: auto;
    margin-left: 0.25rem;
}
.bundler-login-signup-link:hover {
    color: #cbd5e1;
    text-decoration: line-through;
}

/* ── Mobile ──────────────────────────────────────────────────── */

@media (max-width: 760px) {
    body.bundler-login-page {
        padding: 1rem 0.75rem;
        align-items: flex-start;
        overflow-x: hidden;
    }
    .bundler-login-card {
        grid-template-columns: 1fr;
        max-width: 440px;
        border-radius: 14px;
    }
    .bundler-login-rail {
        min-height: 0;
        padding: 1.75rem 1.5rem 1.25rem;
    }
    .bundler-rail-stack {
        width: 180px;
        height: 200px;
        margin-bottom: 1rem;
    }
    .bundler-rail-doc {
        width: 140px;
        height: 170px;
        margin-left: -70px;
        padding: 16px 14px;
    }
    .bundler-rail-doc .line { margin-bottom: 7px; }
    .bundler-rail-doc .line-title { margin-bottom: 12px; }
    .bundler-rail-cta { margin-top: 12px; height: 18px; width: 56px; }
    .bundler-rail-binder { width: 160px; }
    /* Tone down the float distance on mobile so the docs don't visually
       bump near the rail edges */
    @keyframes bundler-float-front {
        0%, 100% { transform: translate(16px, 0) rotate(3deg); }
        50%      { transform: translate(16px, -4px) rotate(3.5deg); }
    }
    @keyframes bundler-float-mid {
        0%, 100% { transform: translate(0, 4px) rotate(-1deg); }
        50%      { transform: translate(0, 1px) rotate(-0.5deg); }
    }
    @keyframes bundler-float-back {
        0%, 100% { transform: translate(-18px, 10px) rotate(-5deg); }
        50%      { transform: translate(-18px, 6px) rotate(-4.5deg); }
    }
    .bundler-login-form {
        padding: 2rem 1.5rem 1.75rem;
    }
    .bundler-login-form h1 {
        font-size: 1.5rem;
    }
    .bundler-login-footer {
        margin-top: 1.5rem;
    }
}

/* ── Dashboard page ─────────────────────────────────────────── */

.bundler-recent-bundles {
    margin-top: 2rem;
    background: #fff;
    border-radius: 12px;
    border: 1px solid #e2e8f0;
    padding: 1.25rem 1.5rem 1.5rem;
}

.bundler-recent-bundles .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1rem;
}

.bundler-recent-bundles h2 {
    font-size: 1.05rem;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
}

.bundler-recent-bundles .link-muted {
    color: #64748b;
    font-size: 0.85rem;
    text-decoration: none;
}

.bundler-recent-bundles .link-muted:hover {
    color: #0D9488;
}

/* Per-row open link — small, discrete pill that nudges to teal on hover. */
.bundler-open-link {
    display: inline-flex;
    align-items: center;
    padding: 0.3rem 0.65rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #475569;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    text-decoration: none;
    transition: color 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.bundler-open-link:hover {
    color: #0D9488;
    background: #ecfdf5;
    border-color: #99f6e4;
    text-decoration: none;
}
.bundler-open-link:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.18);
}

.bundler-recent-bundles .empty-state {
    padding: 2rem 0;
    text-align: center;
    color: #64748b;
}

.bundler-recent-bundles .empty-state p {
    margin: 0 0 1rem;
}

/* ── Settings page ─────────────────────────────────────────── */

.bundler-settings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.bundler-settings-card {
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 1.25rem 1.5rem 1.5rem;
}

.bundler-settings-card-header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 1rem;
    color: #0D9488;
}

.bundler-settings-card-header h2 {
    font-size: 1rem;
    font-weight: 700;
    margin: 0;
    color: #0f172a;
}

.bundler-settings-meta {
    margin: 0;
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 0.4rem 1rem;
    font-size: 0.9rem;
}

.bundler-settings-meta dt {
    color: #64748b;
    font-weight: 500;
}

.bundler-settings-meta dd {
    margin: 0;
    color: #0f172a;
}

.bundler-settings-card .form-group {
    margin-bottom: 0.9rem;
}

.bundler-settings-card label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    margin-bottom: 0.35rem;
}

.bundler-settings-card input[type="password"] {
    width: 100%;
    padding: 0.65rem 0.85rem;
    border: 1px solid #cbd5e1;
    border-radius: 8px;
    font: inherit;
    color: #0f172a;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.bundler-settings-card input[type="password"]:focus {
    outline: none;
    border-color: #0D9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.bundler-settings-status {
    margin: 0.4rem 0 0.6rem;
    font-size: 0.85rem;
    min-height: 1.1em;
    color: #64748b;
}

.bundler-settings-status-success {
    color: #15803d;
}

.bundler-settings-status-error {
    color: #b91c1c;
}

.bundler-settings-status-progress {
    color: #475569;
}

/* Help paragraph above forms inside settings cards */
.bundler-settings-help {
    color: #475569;
    font-size: 0.85rem;
    line-height: 1.5;
    margin: 0 0 0.85rem;
}

/* Status row inside the AI access card. Soft slate box with optional
   yellow override (inline style) when the encryption key is missing. */
.bundler-ai-key-status {
    padding: 0.6rem 0.85rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.85rem;
    line-height: 1.5;
    color: #0f172a;
    margin-bottom: 0.85rem;
}

.bundler-settings-card select {
    width: 100%;
    padding: 0.5rem 0.7rem;
    border: 1px solid #e2e8f0;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #0f172a;
    background: #fff;
    transition: border-color 0.15s, box-shadow 0.15s;
}

.bundler-settings-card select:focus {
    outline: none;
    border-color: #0D9488;
    box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.15);
}

.bundler-passkey-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    padding: 0.65rem 0.75rem;
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 8px;
    margin-bottom: 0.5rem;
}

.bundler-passkey-info {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    font-size: 0.88rem;
}

.bundler-passkey-info strong {
    color: #0f172a;
    font-weight: 600;
}

.bundler-passkey-meta {
    color: #64748b;
    font-size: 0.75rem;
}

.bundler-passkey-delete {
    color: #94a3b8;
    background: transparent;
    border: 1px solid transparent;
    padding: 0.35rem;
}

.bundler-passkey-delete:hover {
    color: #b91c1c;
    background: #fee2e2;
}

/* Status pills — match bundler.css palette so list-page and dashboard agree */
.status-pill {
    display: inline-block;
    padding: 0.2rem 0.6rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}
.status-pill-draft    { background: #f1f5f9; color: #475569; }
.status-pill-merging  { background: #fef3c7; color: #92400e; }
.status-pill-ready    { background: #dcfce7; color: #166534; }
.status-pill-failed   { background: #fee2e2; color: #991b1b; }
.status-pill-archived { background: #e2e8f0; color: #475569; }

/* ── DocumentBundler login redesign — tabs + brand pitch ─────── */

/* Re-tone the page + rail to the brand palette. */
body.bundler-login-page {
    background:
        radial-gradient(circle at 12% 20%, rgba(107, 107, 255, 0.22), transparent 55%),
        radial-gradient(circle at 90% 80%, rgba(107, 107, 255, 0.10), transparent 60%),
        linear-gradient(135deg, #0E1320 0%, #1A2138 70%, #0E1320 130%) !important;
}
.bundler-login-card {
    max-width: 1080px !important;
    grid-template-columns: 1.1fr 1fr !important;
}

/* Left rail: dark navy with brand-purple accents and the pitch stack on top. */
.bundler-login-rail {
    padding: 2.75rem 2.5rem !important;
    background:
        radial-gradient(circle at 25% 15%, rgba(107, 107, 255, 0.30), transparent 55%),
        linear-gradient(160deg, #0E1320 0%, #1A2138 60%, #0E1320 130%) !important;
    color: var(--brand-cream, #EEF2FA) !important;
    align-items: stretch !important;
    justify-content: space-between !important;
}

/* Pitch block — brand lockup + tagline + 3 feature bullets. */
.bundler-login-pitch {
    display: flex;
    flex-direction: column;
    gap: 1.1rem;
}
.bundler-login-pitch-logo {
    width: 220px;
    max-width: 80%;
    height: auto;
    margin-bottom: 0.4rem;
}
.bundler-login-pitch-tagline {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: 1.3rem;
    line-height: 1.35;
    color: var(--brand-cream, #EEF2FA);
}
.bundler-login-pitch-bullets {
    list-style: none;
    margin: 0.4rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
    font-size: 0.92rem;
    color: rgba(238, 242, 250, 0.82);
}
.bundler-login-pitch-bullets li {
    display: flex;
    align-items: flex-start;
    gap: 0.7rem;
    line-height: 1.4;
}
.bundler-login-pitch-bullets li svg {
    flex-shrink: 0;
    margin-top: 0.15rem;
    color: var(--brand-purple, #6B6BFF);
}

/* Decorative document stack — tone it down so it sits under the pitch. */
.bundler-login-rail .bundler-rail-stack {
    margin-top: 1.5rem;
    margin-bottom: 0;
    opacity: 0.88;
    transform: scale(0.85);
    transform-origin: center bottom;
}

/* Right side: tabbed forms. */
.bundler-login-form {
    padding: 2.75rem 2.75rem 2.25rem !important;
    display: flex;
    flex-direction: column;
    gap: 1.4rem;
}
.bundler-login-tabs {
    display: flex;
    border-bottom: 1px solid var(--border, #e2e8f0);
}
.bundler-login-tab {
    flex: 1;
    background: transparent;
    border: 0;
    border-bottom: 2px solid transparent;
    padding: 0.85rem 0.5rem 0.95rem;
    font: inherit;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--text-light, #64748b);
    cursor: pointer;
    transition: color 0.15s ease, border-color 0.15s ease;
    margin-bottom: -1px;       /* overlap the parent border so the active tab tracks it */
}
.bundler-login-tab:hover { color: var(--text, #0f172a); }
.bundler-login-tab[aria-selected="true"] {
    color: var(--brand-purple, #6B6BFF);
    border-bottom-color: var(--brand-purple, #6B6BFF);
}

.bundler-login-panel { display: flex; flex-direction: column; gap: 1.1rem; }
.bundler-login-panel[hidden] { display: none; }

.bundler-login-title {
    margin: 0;
    font-family: Georgia, 'Times New Roman', serif;
    font-style: italic;
    font-size: 1.85rem;
    font-weight: 400;
    color: var(--text, #0f172a);
    letter-spacing: -0.01em;
}

/* Minimal form: no labels, just placeholders + a single primary button.
   Less is more (per the user's brief — ChatGPT / Claude.ai shape). */
.bundler-login-fields {
    display: flex;
    flex-direction: column;
    gap: 0.7rem;
}
.bundler-login-fields .form-group { display: none; } /* legacy markup we removed */
.bundler-login-fields input[type="email"],
.bundler-login-fields input[type="password"] {
    width: 100%;
    padding: 0.85rem 1rem;
    border: 1px solid var(--border, #e2e8f0);
    border-radius: 10px;
    font: inherit;
    font-size: 0.95rem;
    background: #fff;
    transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.bundler-login-fields input:focus {
    outline: none;
    border-color: var(--brand-purple, #6B6BFF);
    box-shadow: 0 0 0 3px rgba(107, 107, 255, 0.18);
}

.btn-primary-login {
    width: 100%;
    margin-top: 0.4rem;
    padding: 0.9rem 1rem;
    border: 0;
    border-radius: 10px;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 600;
    color: #fff;
    background: var(--brand-purple, #6B6BFF);
    cursor: pointer;
    transition: background 0.15s ease, transform 0.05s ease;
}
.btn-primary-login:hover { background: #5757e6; }
.btn-primary-login:active { transform: translateY(1px); }

.bundler-login-secondary {
    text-align: center;
    font-size: 0.82rem;
    color: var(--text-light, #64748b);
}
.bundler-login-secondary a {
    color: var(--text-light, #64748b);
    text-decoration: none;
}
.bundler-login-secondary a:hover {
    color: var(--brand-purple, #6B6BFF);
    text-decoration: underline;
}

.bundler-login-fineprint {
    margin: 0;
    font-size: 0.78rem;
    line-height: 1.5;
    color: var(--text-light, #64748b);
}

/* Stack on narrow viewports — pitch on top, form below. */
@media (max-width: 760px) {
    .bundler-login-card {
        grid-template-columns: 1fr !important;
    }
    .bundler-login-rail {
        padding: 2rem 1.5rem !important;
    }
    .bundler-login-rail .bundler-rail-stack {
        display: none;            /* save vertical space on phones */
    }
    .bundler-login-pitch-logo { width: 180px; }
    .bundler-login-pitch-tagline { font-size: 1.15rem; }
    .bundler-login-form { padding: 1.75rem !important; }
}


/* ── Google sign-in button (single button used in both tabs) ─────── */
.bundler-google-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.625rem;
    width: 100%;
    padding: 0.85rem 1rem;
    margin-bottom: 0.75rem;
    background: #fff;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    color: #0f172a;
    font: inherit;
    font-size: 0.95rem;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.15s ease, border-color 0.15s ease;
}
.bundler-google-btn:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    text-decoration: none;
    color: #0f172a;
}
.bundler-google-btn svg { flex: 0 0 18px; }

/* ── Prominent Create-account CTA below sign-in form ─────────────── */
.bundler-create-cta {
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    font-size: 0.92rem;
    color: var(--text-light, #64748b);
}
.bundler-create-cta-btn {
    background: none;
    border: 0;
    padding: 0.25rem 0.5rem;
    color: var(--brand-purple, #6B6BFF);
    font: inherit;
    font-weight: 600;
    font-size: 0.92rem;
    cursor: pointer;
    border-radius: 6px;
    transition: background 0.15s ease;
}
.bundler-create-cta-btn:hover { background: rgba(107, 107, 255, 0.08); }
.bundler-create-cta-btn:focus-visible {
    outline: 2px solid var(--brand-purple, #6B6BFF);
    outline-offset: 2px;
}

