/* Web-specific fixes for onboarding alignment */

/* Missing color variables */
:root {
    --text-light: #ffffff;
}

/* Web-optimized onboarding container - only for larger screens */
@media (min-width: 1024px) {
    .onboarding-container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 60px 40px;
        display: grid;
        grid-template-rows: auto 1fr auto;
        min-height: 100vh;
        align-items: center;
    }
}

/* Logo section improvements for web - only for larger screens */
@media (min-width: 1024px) {
    .logo-section {
        position: absolute;
        top: 40px;
        left: 50%;
        transform: translateX(-50%);
        margin-bottom: 0;
        z-index: 10;
    }
}

.logo-container {
    display: flex;
    align-items: center;
    gap: 12px;
    justify-content: center;
}

.logo-icon {
    display: flex;
    align-items: center;
    justify-content: center;
}

.logo-primary {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-light);
}

/* Main content layout for web - only for larger screens */
@media (min-width: 1024px) {
    .onboarding-main-content {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 80px;
        align-items: center;
        margin-top: 80px;
        margin-bottom: 40px;
    }
}

/* Illustration section for web - only for larger screens */
@media (min-width: 1024px) {
    .illustration-section {
        display: flex;
        justify-content: center;
        align-items: center;
        padding: 40px;
    }

    .illustration-container {
        max-width: 400px;
        width: 100%;
    }

    .content-section {
        display: flex;
        flex-direction: column;
        justify-content: center;
        padding: 40px;
    }

    .content-title {
        font-size: 48px;
        font-weight: 800;
        line-height: 1.1;
        margin-bottom: 24px;
        color: var(--text-light);
    }

    .content-subtitle {
        font-size: 20px;
        line-height: 1.4;
        color: var(--text-muted);
        margin-bottom: 40px;
    }

    /* Bottom section positioning for desktop */
    .bottom-section {
        grid-column: 1 / -1;
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 0 40px;
    }

    .bottom-section.centered {
        justify-content: center;
    }
}

/* Ensure images scale properly on all devices */
.illustration-container img {
    width: 100%;
    height: auto;
    object-fit: contain;
    max-width: 100%;
}

/* Progress indicator improvements - enhanced for all screens */
.progress-indicator {
    display: flex;
    gap: 12px;
    align-items: center;
}

.progress-dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: var(--progress-inactive);
    transition: all 0.3s ease;
}

.progress-dot.active {
    background: var(--progress-fill);
    transform: scale(1.2);
}

/* Button improvements - enhanced for all screens */
.btn-next {
    background: var(--button-primary-bg);
    color: var(--button-primary-text);
    border: none;
    border-radius: 12px;
    padding: 16px 32px;
    font-size: 18px;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 12px;
    min-width: 140px;
    justify-content: center;
}

@media (min-width: 1024px) {
    .btn-next:hover {
        background: var(--button-primary-hover);
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
    }
}

.btn-next.block {
    width: 100%;
    max-width: 300px;
    padding: 20px 40px;
    font-size: 20px;
}

/* Mobile-specific fixes */
@media (max-width: 767px) {
    /* Ensure mobile uses original layout */
    .onboarding-container {
        padding: 40px 24px !important;
        display: flex !important;
        flex-direction: column !important;
        grid-template-rows: unset !important;
    }

    .onboarding-main-content {
        display: flex !important;
        flex-direction: column !important;
        grid-template-columns: unset !important;
        gap: 40px !important;
        margin-top: 20px !important;
        margin-bottom: 40px !important;
    }

    .logo-section {
        position: relative !important;
        top: 0 !important;
        left: 0 !important;
        transform: none !important;
        margin-bottom: 40px !important;
    }

    .illustration-section {
        padding: 0 !important;
        flex: 1 !important;
    }

    .content-section {
        padding: 0 !important;
        text-align: center;
    }

    .bottom-section {
        padding: 0 !important;
        grid-column: unset !important;
    }
}

/* Responsive design for tablets */
@media (max-width: 1023px) and (min-width: 768px) {
    .onboarding-main-content {
        display: flex !important;
        flex-direction: column !important;
        gap: 40px;
        text-align: center;
        margin-top: 40px;
        margin-bottom: 40px;
    }

    .content-title {
        font-size: 36px;
    }

    .content-subtitle {
        font-size: 18px;
    }

    .bottom-section {
        padding: 0 20px;
    }

    .logo-section {
        position: relative;
        top: 0;
        left: 0;
        transform: none;
        margin-bottom: 40px;
    }
}
