/* FTUE (First Time User Experience) Scoped Styles */
/* All styles are scoped under .ftue-page to prevent global CSS bleed */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&display=swap');

.ftue-page {
    min-height: 100vh;
    height: 100vh;
    background: #FCFCFD;
    /* neutral light background */
    position: relative;
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    /* Ensure FTUE starts at top of viewport, ignoring any body padding */
    margin-top: 0 !important;
    padding-top: 0 !important;
    top: 0;
    left: 0;
    width: 100%;
}

/* Hide global nav and footer on FTUE pages only */
.ftue-page #homenav,
.ftue-page footer {
    display: none !important;
}

/* Remove any top offsets used for fixed nav on FTUE pages only */
.ftue-page {
    padding-top: 0 !important;
}

/* Skip Button */
.ftue-page .skip-button {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    max-width: 390px;
    width: 100%;
    z-index: 1000;
    pointer-events: none;
    text-align: left;
    padding-left: 8px;
    /* Add padding to keep X button away from left edge of card */
}

.ftue-page .skip-button .btn {
    pointer-events: all;
}

.ftue-page .skip-button .btn,
.ftue-page .skip-button .btn-link {
    background: transparent !important;
    background-color: transparent !important;
    border: none !important;
    color: #72757A !important;
    width: auto !important;
    height: auto !important;
    min-width: 0 !important;
    min-height: 0 !important;
    padding: 0 0 0 5px !important;
    /* Add left padding to keep X away from edge */
    margin: 0 !important;
    font-size: 1.2rem !important;
    line-height: 1 !important;
    position: relative !important;
    left: auto !important;
    right: auto !important;
    top: auto !important;
    bottom: auto !important;
    pointer-events: all;
    border-radius: 0 !important;
    box-shadow: none !important;
    display: inline-block !important;
    text-decoration: none !important;
    vertical-align: baseline !important;
}

.ftue-page .skip-button .btn:hover,
.ftue-page .skip-button .btn-link:hover {
    background: transparent !important;
    background-color: transparent !important;
    opacity: 0.7;
    transform: none !important;
    text-decoration: none !important;
    border: none !important;
}

/* Progress Bar */
.ftue-page .progress-container {
    position: absolute;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    background: transparent;
    padding: 0 10px 0 40px;
    text-align: center;
    max-width: 390px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: stretch;
    /* Ensure progress bar doesn't overlap content */
    pointer-events: none;
}

.ftue-page .progress {
    height: 5px;
    background-color: rgba(0, 0, 0, 0.1);
    border-radius: 2px;
    overflow: hidden;
    margin: 0 auto;
    width: 100%;
    margin-top: 8px;
}

.ftue-page .progress-bar {
    background: #3FDC9A;
    transition: width 0.5s ease;
}

.ftue-page .progress-text {
    font-size: 12px;
    color: #666;
    text-align: center;
    margin-top: 6px;
    font-weight: 500;
}

/* Step Container */
.ftue-page .step-container {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    min-height: 100vh;
    height: 100vh;
    padding: 0;
    margin: 0;
    /* Ensure container starts at top, ignoring body padding */
    position: relative;
    top: 0;
    width: 100%;
}

.ftue-page .step {
    width: 100%;
    max-width: 390px;
    min-height: 100vh;
    height: 100vh;
    flex-direction: column;
    /* Hide all steps by default except welcome */
    display: none;
}

/* Make welcome step visible immediately to prevent layout shift */
/* Use initial display: flex, but allow JS to override with display: none */
.ftue-page #step-welcome {
    display: flex;
}

/* Step Content */
.ftue-page .step-content {
    background: transparent !important;
    padding: 0 10px !important;
    text-align: center;
    flex: 1 1 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    border-radius: 0 !important;
    box-shadow: none !important;
    border: none !important;
    /* Account for fixed button at bottom - use margin instead of padding to preserve centering */
    margin-bottom: 220px;
    /* Allow scrolling when content exceeds available space */
    overflow-y: auto;
    overflow-x: hidden;
    /* Ensure content area respects button space but can shrink */
    min-height: 0;
    max-height: calc(100vh - 220px);
}

/* Wrapper for content to enable vertical centering */
.ftue-page .step-content>* {
    flex-shrink: 0;
}

/* Add top padding to content that needs to avoid progress bar (not welcome step) */
.ftue-page .step:not(#step-welcome) .step-content {
    padding-top: 60px !important;
}

/* Welcome content block - wraps image, title, subtitle as one unit for centering */
.ftue-page .welcome-content-block {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 390px;
}

/* Welcome page specific background */
.ftue-page #step-welcome {
    background: #3FDC9A;
    max-width: 100%;
    width: 100%;
}

.ftue-page #step-welcome .step-content {
    max-width: 390px;
    margin: 0 auto;
}

/* All other steps keep default background */
.ftue-page .step:not(#step-welcome) {
    background: #FCFCFD;
}

/* Welcome image styling */
.ftue-page .welcome-image {
    max-width: 100px;
    width: 100%;
    height: auto;
    margin: 0 auto 20px;
    display: block;
    flex-shrink: 0;
    /* Prevent layout shift by reserving space before image loads */
    min-height: 100px;
    object-fit: contain;
}

.ftue-page .step-title {
    font-size: 2.0rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 1rem;
    line-height: 1.2;
    flex-shrink: 0;
}

.ftue-page .step-subtitle {
    font-size: 1.0rem;
    color: #828282;
    margin-bottom: 2rem;
    line-height: 1.5;
    flex-shrink: 0;
}

/* Welcome page specific subtitle styling */
.ftue-page #step-welcome .step-subtitle {
    color: #2d3748;
}

/* Options Container */
.ftue-page .options-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-bottom: 2rem;
    text-align: left;
    flex-shrink: 0;
    width: 100%;
    position: relative;
    z-index: 10;
    pointer-events: auto;
}

.ftue-page .option-item {
    display: flex;
    align-items: center;
    padding: 16px 20px;
    border: 2px solid rgba(221, 223, 229, 0.5);
    border-radius: 35px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    z-index: 10;
}

.ftue-page .option-item:hover {
    border-color: rgba(221, 223, 229, 1);
    background: rgba(63, 220, 154, 0.3);
}

.ftue-page .option-item.selected {
    border-color: #262135;
    background: rgba(63, 220, 154, 0.3);
}

.ftue-page .option-item.selected:hover {
    border-color: #262135;
    background: rgba(63, 220, 154, 0.3);
}

.ftue-page .option-item input[type="radio"] {
    display: none;
}

.ftue-page .option-item label {
    cursor: pointer;
    font-size: 1rem;
    font-weight: 500;
    color: #2d3748;
    flex: 1;
    margin: 0;
}

/* Subjects Container */
.ftue-page .subjects-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
    margin-bottom: 2rem;
    flex-shrink: 0;
    width: 100%;
    position: relative;
    z-index: 10;
    pointer-events: auto;
    /* Prevent unwanted scrollbar */
    overflow: visible;
}

.ftue-page .subject-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 20px;
    border: 2px solid rgba(221, 223, 229, 0.5);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.3s ease;
    background: white;
    position: relative;
    z-index: 10;
}

.ftue-page .subject-item:hover {
    border-color: rgba(221, 223, 229, 1);
    background: rgba(63, 220, 154, 0.3);
}

.ftue-page .subject-item.selected {
    border-color: rgba(221, 223, 229, 0.5);
    background: white;
}

.ftue-page .subject-item.selected:hover {
    border-color: rgba(221, 223, 229, 1);
    background: rgba(63, 220, 154, 0.3);
}

.ftue-page .subject-item input[type="checkbox"] {
    margin: 0;
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    cursor: pointer;
    align-self: flex-start;
    appearance: none;
    -webkit-appearance: none;
    border: 2px solid #000000;
    border-radius: 4px;
    background: white;
    position: relative;
}

.ftue-page .subject-item input[type="checkbox"]:checked {
    background: #000000;
    border-color: #000000;
}

.ftue-page .subject-item input[type="checkbox"]:checked::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 14px;
    font-weight: bold;
}

.ftue-page .subject-item label {
    display: none;
}

.ftue-page .subject-content {
    flex: 1;
    text-align: left;
    margin-right: 12px;
}

.ftue-page .subject-name {
    font-size: 1rem;
    font-weight: 700;
    color: #2d3748;
    margin-bottom: 4px;
}

.ftue-page .subject-description {
    font-size: 0.85rem;
    font-weight: 400;
    color: #718096;
    line-height: 1.3;
}

/* Error Messages */
.ftue-page .error-message {
    color: #e53e3e;
    font-size: 0.9rem;
    margin-top: 10px;
    text-align: center;
    font-weight: 500;
}

/* Step Actions */
.ftue-page .step-actions {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    position: fixed;
    bottom: 150px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 390px;
    z-index: 50;
    pointer-events: none;
    /* Prevent button from jumping - ensure it's positioned immediately */
    will-change: transform;
}

.ftue-page .step-actions>* {
    pointer-events: auto;
}

.ftue-page .btn {
    padding: 0 32px !important;
    font-size: 1.1rem !important;
    font-weight: 600 !important;
    border-radius: 35px !important;
    border: none !important;
    transition: all 0.3s ease !important;
    min-width: 200px !important;
    height: 60px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: normal !important;
}

.ftue-page .btn-primary {
    background: #3FDC9A !important;
    background-image: none !important;
    color: #000000 !important;
    border-color: #3FDC9A !important;
}

.ftue-page .btn-primary:hover {
    opacity: 0.9 !important;
    background: #3FDC9A !important;
    background-image: none !important;
    color: #000000 !important;
    border-color: #3FDC9A !important;
    box-shadow: none !important;
    transform: none !important;
}

/* Welcome page specific button styling */
.ftue-page #step-welcome .btn-primary {
    background: #FCFCFD !important;
    background-image: none !important;
    color: #000000 !important;
    border-color: #FCFCFD !important;
}

.ftue-page #step-welcome .btn-primary:hover {
    background: #FCFCFD !important;
    background-image: none !important;
    color: #000000 !important;
    border-color: #FCFCFD !important;
}

.ftue-page .btn-lg {
    height: 60px !important;
    font-size: 1.2rem !important;
}

.ftue-page .skip-link {
    color: #718096;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.ftue-page .skip-link:hover {
    color: #667eea;
}

.ftue-page .login-link {
    margin-top: 1rem;
    position: fixed;
    bottom: 100px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 390px;
    text-align: center;
    z-index: 50;
    pointer-events: none;
}

.ftue-page .login-link>* {
    pointer-events: auto;
}

.ftue-page .login-link a {
    color: #718096;
    text-decoration: none;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.ftue-page .login-link a:hover {
    color: #4a5568;
    text-decoration: underline;
}

/* Info Box */
.ftue-page .info-box {
    background: #f7fafc;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    padding: 20px;
    margin: 2rem 0;
    font-size: 0.9rem;
    color: #4a5568;
}

/* Progress Items */
.ftue-page .progress-items {
    display: flex;
    flex-direction: column;
    gap: 20px;
    margin: 2rem 0;
}

.ftue-page .progress-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    background: #f7fafc;
    border-radius: 12px;
    transition: all 0.3s ease;
}

.ftue-page .progress-item.completed {
    background: #f0fff4;
    border: 1px solid #9ae6b4;
}

.ftue-page .progress-spinner {
    width: 24px;
    height: 24px;
    border: 3px solid #e2e8f0;
    border-top: 3px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

.ftue-page .progress-spinner.completed {
    animation: none;
    border: 3px solid #38a169;
    background: #38a169;
    position: relative;
}

.ftue-page .progress-spinner.completed::after {
    content: '✓';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-weight: bold;
    font-size: 12px;
}

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Selected Subjects List */
.ftue-page .selected-subjects {
    text-align: left;
    margin: 2rem 0;
}

.ftue-page .selected-subjects ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.ftue-page .selected-subjects li {
    padding: 12px 20px;
    background: #f0f4ff;
    border: 1px solid #cbd5e0;
    border-radius: 8px;
    margin-bottom: 8px;
    font-weight: 500;
    color: #2d3748;
}

/* Toast Notifications */
.ftue-page .toast-container {
    z-index: 9999;
}

.ftue-page .toast {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
}

.ftue-page .toast .toast-header {
    background: #f7fafc;
    border-bottom: 1px solid #e2e8f0;
    border-radius: 12px 12px 0 0;
}

/* Responsive Design */
@media (max-width: 768px) {
    .ftue-page .step {
        max-width: 100%;
        width: 100%;
    }

    .ftue-page .step-content {
        padding: 0 10px 100px 10px !important;
        /* Mobile: button at bottom: 20px, button height: 60px, plus gap = ~100px */
    }

    .ftue-page .step-title {
        font-size: 1.8rem;
    }

    .ftue-page .step-subtitle {
        font-size: 0.95rem;
    }

    .ftue-page .subjects-container {
        grid-template-columns: 1fr;
    }

    .ftue-page .progress-container {
        padding: 0 10px 0 40px;
    }
}

@media (max-width: 480px) {
    .ftue-page .step-content {
        /* Mobile: button at bottom: 20px (or 80px for welcome), button height: 60px, plus gap */
        padding: 0 10px !important;
        margin-bottom: 100px;
        max-height: calc(100vh - 100px);
    }

    /* Welcome step has button at 80px, so needs more bottom margin */
    .ftue-page[data-step="1"] .step-content {
        margin-bottom: 160px;
        max-height: calc(100vh - 160px);
    }

    /* Other steps need top padding for progress bar */
    .ftue-page .step:not(#step-welcome) .step-content {
        padding-top: 60px !important;
        max-height: calc(100vh - 60px - 100px);
    }

    .ftue-page .step-title {
        font-size: 1.6rem;
    }

    .ftue-page .step-actions {
        bottom: 20px;
    }

    /* Page 1 (welcome step) keeps higher position on mobile */
    .ftue-page[data-step="1"] .step-actions {
        bottom: 80px;
    }

    .ftue-page .login-link {
        bottom: 35px;
    }

    .ftue-page .btn {
        height: 60px;
        font-size: 1rem;
        min-width: 180px;
    }
}

/* =====================================================
   Daily Lessons Welcome Back Overlay Styles
   ===================================================== */

#daily-lessons-overlay.ftue-overlay {
    position: fixed !important;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

#daily-lessons-overlay .ftue-overlay-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.2);
    max-width: 500px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
}

#daily-lessons-overlay .ftue-overlay-content {
    padding: 2rem;
    text-align: center;
}

#daily-lessons-overlay .ftue-overlay-title {
    font-size: 1.8rem;
    font-weight: 600;
    color: #333;
    margin-bottom: 1rem;
    line-height: 1.3;
}

#daily-lessons-overlay .ftue-overlay-subtitle {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 1.5rem;
    line-height: 1.4;
    font-weight: 400;
}

#daily-lessons-overlay .ftue-streak-circles {
    display: flex !important;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

#daily-lessons-overlay .ftue-streak-circle {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex !important;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.9rem;
    color: #666;
    background-color: #f8f9fa;
    border: 2px solid #e9ecef;
    transition: all 0.2s ease;
}

#daily-lessons-overlay .ftue-streak-circle.ftue-streak-today {
    border-color: #007bff;
    background-color: #e3f2fd;
    color: #007bff;
    box-shadow: 0 0 0 2px rgba(0, 123, 255, 0.2);
}

#daily-lessons-overlay .ftue-streak-circle.ftue-streak-completed {
    background-color: #28a745;
    border-color: #28a745;
    color: white;
}

/* Phase 6: Broken streak indicator - red X for missed days when streak is broken */
#daily-lessons-overlay .ftue-streak-circle.ftue-streak-broken {
    position: relative;
    opacity: 0.6;
}

#daily-lessons-overlay .ftue-streak-circle.ftue-streak-broken::after {
    content: '✕';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-size: 1.8rem;
    font-weight: bold;
    color: #dc3545;
    text-shadow: 0 0 3px rgba(220, 53, 69, 0.5);
}

/* Phase 6: Grace day indicator - halo effect for forgiven missed days */
#daily-lessons-overlay .ftue-streak-circle.ftue-streak-grace {
    position: relative;
}

#daily-lessons-overlay .ftue-streak-circle.ftue-streak-grace::before {
    content: '';
    position: absolute;
    top: -13px;
    left: 50%;
    transform: translateX(-50%);
    width: 25px;
    height: 11px;
    border-radius: 50%;
    border: 2px solid rgba(255, 215, 0, 0.9);
    background: transparent;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.8),
        0 0 15px rgba(255, 165, 0, 0.5),
        inset 0 0 5px rgba(255, 215, 0, 0.4);
    animation: grace-glow 2s ease-in-out infinite;
}

@keyframes grace-glow {

    0%,
    100% {
        opacity: 0.6;
        transform: translateX(-50%) scale(1);
    }

    50% {
        opacity: 1;
        transform: translateX(-50%) scale(1.1);
    }
}

/* Phase 6: Smaller title for completed streak */
.streak-title-completed {
    font-size: 1.6rem !important;
}

/* Phase 6: MP Bonus message styling and animation */
.mp-bonus-text {
    font-size: 1.5rem;
    font-weight: normal;
    color: #FF8A00;
    opacity: 0;
    transform: scale(0.5);
}

.mp-bonus-text.mp-bonus-animate {
    animation: mp-bonus-pop 1s ease-out forwards;
}

@keyframes mp-bonus-pop {
    0% {
        opacity: 0;
        transform: scale(0.5);
    }

    50% {
        opacity: 1;
        transform: scale(1.3);
    }

    70% {
        transform: scale(0.95);
    }

    100% {
        opacity: 1;
        transform: scale(1);
    }
}

#daily-lessons-overlay .ftue-overlay-body {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 2rem;
    line-height: 1.5;
}

#daily-lessons-overlay .ftue-overlay-buttons {
    display: flex !important;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

#daily-lessons-overlay .ftue-btn {
    padding: 12px 24px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* =====================================================
   Today Page Styles
   ===================================================== */

/* Ensure Today page cards match All Cards styling */
.today-tile {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.today-tile:hover {
    transform: translateY(-2px);
}

/* Add more top padding for better spacing from navbar */
.container-marketing {
    padding-top: 1rem;
}

/* Override background image for Today page - use white background */
body.today {
    background: white !important;
}

/* Reduce navbar label spacing */
body.today .navbar-nav .nav-link span:last-child {
    margin-top: 0px !important;
}

/* Reduce vertical gap between rows to match horizontal gap */
.today-grid-container .col {
    margin-bottom: 0.25rem;
}

/* Mobile responsive: 2-across grid for Today page */
@media (max-width: 768px) {
    .today-grid-container .col {
        flex: 0 0 50% !important;
        max-width: 50% !important;
    }
}

/* Loading overlay - centered on page */
.loading-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}

.loading-content {
    text-align: center;
    min-width: 140px;
}

#daily-lessons-overlay .ftue-btn-primary {
    background-color: #007bff;
    color: white;
}

#daily-lessons-overlay .ftue-btn-primary:hover {
    background-color: #0056b3;
    transform: translateY(-1px);
}

#daily-lessons-overlay .ftue-btn-secondary {
    background-color: #6c757d;
    color: white;
}

#daily-lessons-overlay .ftue-btn-secondary:hover {
    background-color: #545b62;
    transform: translateY(-1px);
}

/* Mobile responsiveness */
@media (max-width: 576px) {
    #daily-lessons-overlay .ftue-overlay-content {
        padding: 1.5rem;
    }

    #daily-lessons-overlay .ftue-overlay-title {
        font-size: 1.5rem;
        margin-bottom: 1rem;
    }

    #daily-lessons-overlay .ftue-streak-circles {
        gap: 0.5rem;
        margin-bottom: 1rem;
    }

    #daily-lessons-overlay .ftue-streak-circle {
        width: 35px;
        height: 35px;
        font-size: 0.8rem;
    }

    #daily-lessons-overlay .ftue-overlay-buttons {
        flex-direction: column;
        align-items: center;
    }

    #daily-lessons-overlay .ftue-btn {
        width: 100%;
        max-width: 200px;
    }
}

/* =====================================================
   FTUE Signup Step Scoped Overrides (Section 5c7)
   - Do NOT modify signup.html; style only when embedded in FTUE
   ===================================================== */

/* Hide the hard-coded signup heading when embedded in FTUE */
#step-signup .step-content #signupFormContainer h1:first-child,
#step-signup .step-content #signupFormContainer h2:first-child,
#step-signup .step-content #signupFormContainer .signup-title:first-child {
    display: none !important;
}

/* Also hide common H3 heading used by embedded signup */
#step-signup #signupFormContainer h3[align="center"],
#step-signup #signupFormContainer .row.pb-3 h3 {
    display: none !important;
}

/* Hide overlay-style titles/subtitles inside embedded overlay form */
#step-signup #signupFormContainer .levelup_title,
#step-signup #signupFormContainer .normtextlitesm.text-center {
    display: none !important;
}

/* Minimize vertical spacing above/below the signup fields */
#step-signup .step-content {
    padding-top: 0.5rem;
    padding-bottom: 0.5rem;
}

#step-signup #signupFormContainer main {
    padding-top: 0 !important;
}

#step-signup #signupFormContainer .card,
#step-signup #signupFormContainer .panel,
#step-signup #signupFormContainer .container,
#step-signup #signupFormContainer .row:first-child {
    margin-top: 0.25rem !important;
    margin-bottom: 0.25rem !important;
    padding-top: 0.25rem !important;
    padding-bottom: 0.25rem !important;
}

/* Remove stray line breaks adding excess spacing */
#step-signup #signupFormContainer br {
    display: none !important;
}

/* Tighten common form-group spacings used in Bootstrap */
#step-signup #signupFormContainer .form-group,
#step-signup #signupFormContainer .mb-3,
#step-signup #signupFormContainer .mb-4 {
    margin-bottom: 0.5rem !important;
}

#step-signup #signupFormContainer .form-control {
    padding-top: 0.4rem;
    padding-bottom: 0.4rem;
}

/* Add more spacing before buttons in signup */
#step-signup #signupFormContainer .text-center:has(.signup-button) {
    margin-top: 4rem !important;
}

/* Override FTUE button styles for signup buttons */
#step-signup #signupFormContainer .btn {
    margin-top: 0.5rem;
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
}

#step-signup #signupFormContainer .signup-button,
#step-signup #signupFormContainer .signup-skip-button {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
}